rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
function openNewTabWith(url) { | function openNewTabWith(url) { urlSecurityCheck(url, document); var wintype = document.firstChild.getAttribute('windowtype'); | function openNewTabWith(url) { urlSecurityCheck(url, document); var wintype = document.firstChild.getAttribute('windowtype'); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the current document and u... |
urlSecurityCheck(url, document); var wintype = document.firstChild.getAttribute('windowtype'); | if (window && (wintype == "navigator:browser")) { var browser=getBrowser(); var t = browser.addTab(url); if (pref && !pref.getBoolPref("browser.tabs.loadInBackground")) browser.selectedTab = t; } | function openNewTabWith(url) { urlSecurityCheck(url, document); var wintype = document.firstChild.getAttribute('windowtype'); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the current document and u... |
if (window && (wintype == "navigator:browser")) { var browser=getBrowser(); var t = browser.addTab(url); if (pref && !pref.getBoolPref("browser.tabs.loadInBackground")) browser.selectedTab = t; } newWin.saveFileAndPos = true; } | newWin.saveFileAndPos = true; } | function openNewTabWith(url) { urlSecurityCheck(url, document); var wintype = document.firstChild.getAttribute('windowtype'); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the current document and u... |
var wintype = document.firstChild.getAttribute('windowtype'); | var wintype = document.documentElement.getAttribute('windowtype'); | function openNewTabWith(href, sourceURL, postData, event){ if (sourceURL) urlSecurityCheck(href, sourceURL); var prefSvc = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); prefSvc = prefSvc.getBranch(null); // should we open it i... |
function openNewTabWith(href, sourceURL, postData, event) | function openNewTabWith(href, sourceURL, postData, event, allowThirdPartyFixup) | function openNewTabWith(href, sourceURL, postData, event){ if (sourceURL) urlSecurityCheck(href, sourceURL); var prefSvc = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); prefSvc = prefSvc.getBranch(null); // should we open it i... |
browser.loadOneTab(href, referrerURI, originCharset, postData, loadInBackground); | browser.loadOneTab(href, referrerURI, originCharset, postData, loadInBackground, allowThirdPartyFixup || false); | function openNewTabWith(href, sourceURL, postData, event){ if (sourceURL) urlSecurityCheck(href, sourceURL); var prefSvc = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); prefSvc = prefSvc.getBranch(null); // should we open it i... |
function openNewWindowWith(aURL, aSendReferrer) | function openNewWindowWith(aURL, aDoc) | function openNewWindowWith(aURL, aSendReferrer){ openNewTabWindowOrExistingWith(kNewWindow, aURL, aSendReferrer, false);} |
openNewTabWindowOrExistingWith(kNewWindow, aURL, aSendReferrer, false); | openNewTabWindowOrExistingWith(kNewWindow, aURL, aDoc, false); | function openNewWindowWith(aURL, aSendReferrer){ openNewTabWindowOrExistingWith(kNewWindow, aURL, aSendReferrer, false);} |
const nsIStandardURL = Components.interfaces.nsIStandardURL; const nsIURI = Components.interfaces.nsIURI; const stdURL = Components.classes["@mozilla.org/network/standard-url;1"]; var sourceURL = stdURL.createInstance(nsIStandardURL); var focusedWindow = document.commandDispatcher.focusedWindow; var sourceWin = isDocu... | function openNewWindowWith( url ) { var newWin; var wintype = document.firstChild.getAttribute('windowtype'); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the current document and use it to ... | |
function openNewWindowWith(url) { | function openNewWindowWith(url) { urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); | function openNewWindowWith(url) { urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the cur... |
urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); | if (window && (wintype == "navigator:browser") && window._content && window._content.document) { var DocCharset = window._content.document.characterSet; var charsetArg = "charset="+DocCharset; | function openNewWindowWith(url) { urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the cur... |
if (window && (wintype == "navigator:browser") && window._content && window._content.document) { var DocCharset = window._content.document.characterSet; var charsetArg = "charset="+DocCharset; newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url, charsetArg, true ); } else { newWin = win... | newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url, charsetArg, true ); | function openNewWindowWith(url) { urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the cur... |
else { newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url, null, true ); } newWin.saveFileAndPos = true; } | function openNewWindowWith(url) { urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the cur... | |
var wintype = document.firstChild.getAttribute('windowtype'); | var wintype = document.documentElement.getAttribute('windowtype'); | function openNewWindowWith(href, sourceURL, postData){ if (sourceURL) urlSecurityCheck(href, sourceURL); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the current document and use it to // initialize the ... |
var newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | var newWin; var wintype = document.firstChild.getAttribute('windowtype'); if (window && (wintype == "navigator:browser") && window._content && window._content.document) { var DocCharset = window._content.document.characterSet; charsetArg = "charset="+DocCharset; dump("*** Current document charset: " + DocCharset + ... | function openNewWindowWith( url ) { var newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); // Fix new window. newWin.saveFileAndPos = true; } |
function openNewWindowWith(href, sourceURL, postData) | function openNewWindowWith(href, sourceURL, postData, allowThirdPartyFixup) | function openNewWindowWith(href, sourceURL, postData){ if (sourceURL) urlSecurityCheck(href, sourceURL); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the current document and use it to // initialize the ... |
window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", href, charsetArg, referrerURI, postData); | window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", href, charsetArg, referrerURI, postData, allowThirdPartyFixup); | function openNewWindowWith(href, sourceURL, postData){ if (sourceURL) urlSecurityCheck(href, sourceURL); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charset menu setting from the current document and use it to // initialize the ... |
var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS); | var url = BookmarksUtils.getProperty(aURI, gNC_NS+"URL", aDS); | openOneBookmark: function (aURI, aTargetBrowser, aDS) { var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS); // Ignore "NC:" and empty urls. if (url == "") return; openUILinkIn(url, aTargetBrowser); }, |
if (url == "" || url.substring(0,3) == "NC:") | if (url == "") | openOneBookmark: function (aURI, aTargetBrowser, aDS) { var w, browser var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS) // Ignore "NC:" and empty urls. if (url == "" || url.substring(0,3) == "NC:") return; switch (aTargetBrowser) { case "current": openTopWin(url); break; ... |
var w = getTopWin(); | w = getTopWin(); | openOneBookmark: function (aURI, aTargetBrowser, aDS) { var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS) // Ignore "NC:" and empty urls. if (url == "" || url.substring(0,3) == "NC:") return; switch (aTargetBrowser) { case "current": openTopWin(url); break; case "tab": ... |
w.focus(); var browser = w.document.getElementById("content"); var tab = browser.addTab(url); | browser = w.document.getElementById("content"); var tab = browser.addTab(url); | openOneBookmark: function (aURI, aTargetBrowser, aDS) { var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS) // Ignore "NC:" and empty urls. if (url == "" || url.substring(0,3) == "NC:") return; switch (aTargetBrowser) { case "current": openTopWin(url); break; case "tab": ... |
case "properties": openDialog("chrome: "", "centerscreen,chrome,resizable=no", url); | openOneBookmark: function (aURI, aTargetBrowser, aDS) { var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS) // Ignore "NC:" and empty urls. if (url == "" || url.substring(0,3) == "NC:") return; switch (aTargetBrowser) { case "current": openTopWin(url); break; case "tab": ... | |
var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS) | var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS); | openOneBookmark: function (aURI, aTargetBrowser, aDS) { var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS) // Ignore "NC:" and empty urls. if (url == "") return; var w = aTargetBrowser == "window"? null:getTopWin(); if (!w) { openDialog(getBrowserURL(), "_blank", "chrome,all,dialog... |
openUILinkIn(url, aTargetBrowser); | openUILinkIn(url, aTargetBrowser, false); | openOneBookmark: function (aURI, aTargetBrowser, aDS) { var url = BookmarksUtils.getProperty(aURI, gNC_NS+"URL", aDS); // Ignore "NC:" and empty urls. if (url == "") return; openUILinkIn(url, aTargetBrowser); }, |
if (!dir.isReadable()) { showErrorDialog("errorOpenFileDoesntExistTitle", "errorDirNotReadableMessage", dir); return false; } | function openOnOK(){ var dir = treeView.selectedFiles.queryElementAt(0, nsIFile); if (!dir.isReadable()) { showErrorDialog("errorOpenFileDoesntExistTitle", "errorDirNotReadableMessage", dir); return false; } if (dir) gotoDirectory(dir); retvals.fileList = new Array(di... | |
retvals.fileList = new Array(dir); retvals.buttonStatus = nsIFilePicker.returnCancel; var filterMenuList = document.getElementById("filterMenuList"); retvals.filterIndex = filterMenuList.selectedIndex; | function openOnOK(){ var dir = treeView.selectedFiles.queryElementAt(0, nsIFile); if (!dir.isReadable()) { showErrorDialog("errorOpenFileDoesntExistTitle", "errorDirNotReadableMessage", dir); return false; } if (dir) gotoDirectory(dir); retvals.fileList = new Array(di... | |
const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1"; const kWindowMediatorIID = Components.interfaces.nsIWindowMediator; const kWindowMediator = Components.classes[kWindowMediatorContractID].getService(kWindowMediatorIID); var lastPrefWindow = kWindowMediator.getMostRecentWindow("Mail:Options"); | var instantApply = false; var features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); | function openOptionsDialog(containerID, paneURL, itemID){ //check for an existing pref window and focus it; it's not application modal const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1"; const kWindowMediatorIID = Components.interfaces.nsIWindowMediator; const kWindowMediator = Components.c... |
if (lastPrefWindow) lastPrefWindow.focus(); | var win = wm.getMostRecentWindow("Mail:Preferences"); if (win) win.focus(); | function openOptionsDialog(containerID, paneURL, itemID){ //check for an existing pref window and focus it; it's not application modal const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1"; const kWindowMediatorIID = Components.interfaces.nsIWindowMediator; const kWindowMediator = Components.c... |
openDialog("chrome: "chrome,titlebar,resizable,modal", paneURL, containerID, itemID); | openDialog("chrome: | function openOptionsDialog(containerID, paneURL, itemID){ //check for an existing pref window and focus it; it's not application modal const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1"; const kWindowMediatorIID = Components.interfaces.nsIWindowMediator; const kWindowMediator = Components.c... |
var features = "chrome,titlebar,centerscreen" + (instantApply ? "" : ",modal"); | var features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal"); | function openPreferences(){ var instantApply = gPrefService.getBoolPref("browser.preferences.instantApply"); var features = "chrome,titlebar,centerscreen" + (instantApply ? "" : ",modal"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsI... |
function openPreferences() { openDialog("chrome: "chrome,titlebar,resizable,modal"); | function openPreferences() { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var win = wm.getMostRecentWindow("Calendar:Preferences"); var url = "chrome: var features = "chrome,titlebar,toolbar,centerscreen,dialog=no"; if (win) { win.focus(... | function openPreferences(){ openDialog("chrome://calendar/content/pref/pref.xul","PrefWindow", "chrome,titlebar,resizable,modal");} |
function openPreferences() | function openPreferences(paneID) | function openPreferences(){ var instantApply = getBoolPref("browser.preferences.instantApply", false); var features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.in... |
if (win) | if (win) { | function openPreferences(){ var instantApply = getBoolPref("browser.preferences.instantApply", false); var features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.in... |
else openDialog("chrome: "Preferences", features); | if (paneID) { var pane = win.document.getElementById(paneID); win.document.documentElement.showPane(pane); } } else openDialog("chrome: "Preferences", features, paneID); | function openPreferences(){ var instantApply = getBoolPref("browser.preferences.instantApply", false); var features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.in... |
if (!(user.nick in chan.users)) | if (!(user.canonicalName in chan.users)) | function openQueryTab(server, nick){ var user = server.addUser(nick); client.globalHistory.addPage(user.getURL()); if (!("messages" in user)) { var value = ""; var same = true; for (var c in server.channels) { var chan = server.channels[c]; if (!(user.nick i... |
user.displayHere (getMsg(MSG_QUERY_OPENED, user.properNick)); | user.displayHere (getMsg(MSG_QUERY_OPENED, user.unicodeName)); | function openQueryTab(server, nick){ var user = server.addUser(nick); client.globalHistory.addPage(user.getURL()); if (!("messages" in user)) { var value = ""; var same = true; for (var c in server.channels) { var chan = server.channels[c]; if (!(user.nick i... |
var usr = server.addUser(nick.toLowerCase()); | var usr = server.addUser(nick); | function openQueryTab (server, nick){ var usr = server.addUser(nick.toLowerCase()); if (!("messages" in usr)) usr.displayHere (getMsg("cli_imsgMsg3", usr.properNick), "INFO"); server.sendData ("WHO " + nick + "\n"); return usr;} |
var fallbackDefaultSearchURL = bundle.GetStringFromName("fallbackDefaultSearchURL"); | var fallbackDefaultSearchURL = gNavigatorBundle.getString("fallbackDefaultSearchURL"); | function OpenSearch(tabName, forceDialogFlag, searchStr){ var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = bundle.GetStringFromName("fallbackDefaultSearchURL"); // XXX This somehow causes a big leak, back to the old way // till we figure out why. See bug 61886. // v... |
loadURI(bundle.GetStringFromName("otherSearchURL")); | loadURI(gNavigatorBundle.getString("otherSearchURL")); | function OpenSearch(tabName, forceDialogFlag, searchStr){ var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = bundle.GetStringFromName("fallbackDefaultSearchURL"); // XXX This somehow causes a big leak, back to the old way // till we figure out why. See bug 61886. // v... |
var searchWindow = windowManager.GetMostRecentWindow("search:window"); | var searchWindow = windowManager.getMostRecentWindow("search:window"); | function OpenSearch(tabName, forceDialogFlag, searchStr){ var searchMode = 0; var searchEngineURI = null; var autoOpenSearchPanel = false; var defaultSearchURL = null; try { searchMode = pref.GetIntPref("browser.search.powermode"); autoOpenSearchPanel = pref.GetBoolPref("browser.search.opensidebarsearchpanel"); sear... |
var searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr); | var searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr, 0, 0, {value:0}); | function OpenSearch(tabName, forceDialogFlag, searchStr){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); // XXX This somehow causes a big leak, back to the old w... |
var escapedSearchStr = escape(searchStr); | var escapedSearchStr = encodeURIComponent(searchStr); | function OpenSearch(tabName, searchStr, newTabFlag){ //This function needs to be split up someday. //XXXnoririty I don't want any prefs switching open by tabs to window //XXXpch: this routine needs to be cleaned up. var defaultSearchURL = null; var navigatorRegionBundle = document.getElementById("bundle_browser_re... |
var escapedSearchStr = escape(searchStr); | var escapedSearchStr = encodeURIComponent(searchStr); | function OpenSearch(tabName, forceDialogFlag, searchStr, newWindowFlag){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); ensureSearchPref() //Check to see if sea... |
autoOpenSearchPanel = pref.GetBoolPref("browser.search.opensidebarsearchpanel"); defaultSearchURL = pref.getLocalizedUnicharPref("browser.search.defaulturl"); | autoOpenSearchPanel = pref.getBoolPref("browser.search.opensidebarsearchpanel"); defaultSearchURL = pref.getComplexValue("browser.search.defaulturl", Components.interfaces.nsIPrefLocalizedString); | function OpenSearch(tabName, forceDialogFlag, searchStr){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); // XXX This somehow causes a big leak, back to the old w... |
searchMode = pref.GetIntPref("browser.search.powermode"); | searchMode = pref.getIntPref("browser.search.powermode"); | function OpenSearch(tabName, forceDialogFlag, searchStr){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); // XXX This somehow causes a big leak, back to the old w... |
var searchEngineURI = pref.CopyCharPref("browser.search.defaultengine"); | var searchEngineURI = pref.getCharPref("browser.search.defaultengine"); | function OpenSearch(tabName, forceDialogFlag, searchStr){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); // XXX This somehow causes a big leak, back to the old w... |
function OpenSearch(tabName, forceDialogFlag, searchStr, newWindowFlag) | function OpenSearch(tabName, searchStr, newWindowFlag) | function OpenSearch(tabName, forceDialogFlag, searchStr, newWindowFlag){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); ensureSearchPref() //Check to see if sea... |
var searchMode = 0; try { searchMode = pref.getIntPref("browser.search.powermode"); } catch(ex) { } | if (searchStr) { var escapedSearchStr = encodeURIComponent(searchStr); defaultSearchURL += escapedSearchStr; var searchDS = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); | function OpenSearch(tabName, forceDialogFlag, searchStr, newWindowFlag){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); ensureSearchPref() //Check to see if sea... |
if (forceDialogFlag || searchMode == 1) { var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); | searchDS.RememberLastSearchText(escapedSearchStr); try { var searchEngineURI = pref.getCharPref("browser.search.defaultengine"); if (searchEngineURI) { var searchURL = getSearchUrl("actionButton"); if (searchURL) { defaultSearchURL = searchURL + escapedSearchStr; } else { searchURL = searchDS.GetInternetSearchURL(searc... | function OpenSearch(tabName, forceDialogFlag, searchStr, newWindowFlag){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); ensureSearchPref() //Check to see if sea... |
var searchWindow = windowManager.getMostRecentWindow("search:window"); if (!searchWindow) { openDialog("chrome: } else { searchWindow.focus(); if ("loadPage" in searchWindow) searchWindow.loadPage(tabName, searchStr); } } else { if (searchStr) { var escapedSearchStr = encodeURIComponent(searchStr); defaultSearchURL +... | if (!newWindowFlag) loadURI(defaultSearchURL); else window.open(defaultSearchURL, "_blank"); | function OpenSearch(tabName, forceDialogFlag, searchStr, newWindowFlag){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); ensureSearchPref() //Check to see if sea... |
window.openDialog("resource:/res/samples/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName); | window.openDialog("chrome: | function OpenSearch(tabName){ window.openDialog("resource:/res/samples/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName); return(true);} |
var escapedSearchStr = escape(aSearchStr); | var escapedSearchStr = encodeURIComponent(aSearchStr); | function OpenSearch(aSearchStr, engineURIs){ var searchEngineURI = nsPreferences.copyUnicharPref("browser.search.defaultengine", null); var defaultSearchURL = nsPreferences.getLocalizedUnicharPref("browser.search.defaulturl", null); if (!defaultSearchURL) { regionalBundle = document.getElementById("regionalBundle... |
loadURLInContent("chrome: | loadURLInContent(encodeURI("chrome: | function OpenSearch(aSearchStr, engineURIs){ var searchEngineURI = nsPreferences.copyUnicharPref("browser.search.defaultengine", null); var defaultSearchURL = nsPreferences.getLocalizedUnicharPref("browser.search.defaulturl", null); if (!defaultSearchURL) { regionalBundle = document.getElementById("regionalBundle... |
window.openDialog("resource:/res/samples/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName, searchStr); | window.openDialog("chrome: | function OpenSearch(tabName, searchStr){ dump("OpenSearch searchStr: '" + searchStr + "'\n\n"); window.openDialog("resource:/res/samples/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName, searchStr);} |
Components.interfaces.nsIPrefLocalizedString); | Components.interfaces.nsIPrefLocalizedString).data; | function OpenSearch(tabName, forceDialogFlag, searchStr){ //This function needs to be split up someday. var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = gNavigatorRegionBundle.getString("fallbackDefaultSearchURL"); // XXX This somehow causes a big leak, back to the old w... |
if (!(defaultSearchULR == fallbackDefaultURL)) | if (!(defaultSearchURL == fallbackDefaultURL)) | function OpenSearch(tabName, forceDialogFlag, searchStr){ var searchMode = 0; var searchEngineURI = null; var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = bundle.GetStringFromName("fallbackDefaultSearchURL"); var otherSearchURL = bundle.GetStringFromName("otherSearchURL");... |
var topWindowOfType = windowManagerInterface.getMostRecentWindow( "navigator:browser" ); if ( topWindowOfType ) { dump("setting page: " + topWindowOfType.content.location.href + "\n"); topWindowOfType.content.location.href = url; } else { dump(" No browser window. Should be disabling this button \n"); window.openDialog... | var topWindowOfType = windowManagerInterface.getMostRecentWindow( "navigator:browser" ); if ( topWindowOfType ) { dump("setting page: " + topWindowOfType.content.location.href + "\n"); topWindowOfType.focus(); topWindowOfType.content.location.href = url; } else { dump(" No browser window. Should be disabling this butto... | function openTopWin( url ){ /* note that this chrome url should probably change to not have all of the navigator controls */ /* also, do we want to limit the number of help windows that can be spawned? */ dump("SetPrefToCurrentPage("+ url +") \n "); if ((url == null) || (url == "")) return; ... |
openUILinkIn(url, where); | openUILinkIn(url, where, false); | function openUILink( url, e, ignoreButton, ignoreAlt ){ var where = whereToOpenLink(e, ignoreButton, ignoreAlt); openUILinkIn(url, where);} |
w._content.focus(); | w.content.focus(); | function openUILinkIn( url, where ){ if (!where) return; if ((url == null) || (url == "")) return; // xlate the URL if necessary if (url.indexOf("urn:") == 0) { url = xlateURL(url); // does RDF urn expansion } // avoid loading "", since this loads a directory listing if (url == "") { url ... |
function openUILinkIn( url, where ) | function openUILinkIn( url, where, allowThirdPartyFixup ) | function openUILinkIn( url, where ){ if (!where) return; if ((url == null) || (url == "")) return; // xlate the URL if necessary if (url.indexOf("urn:") == 0) { url = xlateURL(url); // does RDF urn expansion } // avoid loading "", since this loads a directory listing if (url == "") { url ... |
browser.loadOneTab(url, null, null, null, loadInBackground); | browser.loadOneTab(url, null, null, null, loadInBackground, allowThirdPartyFixup || false); | function openUILinkIn( url, where ){ if (!where) return; if ((url == null) || (url == "")) return; // xlate the URL if necessary if (url.indexOf("urn:") == 0) { url = xlateURL(url); // does RDF urn expansion } // avoid loading "", since this loads a directory listing if (url == "") { url ... |
w.content.focus(); | function openUILinkIn( url, where, allowThirdPartyFixup, postData ){ if (!where || !url) return; if (where == "save") { saveURL(url, null, null, true); return; } var w = getTopWin(); if (!w || where == "window") { openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url, null, nu... | |
focusElement(w.content); | function openUILinkIn( url, where, allowThirdPartyFixup, postData ){ if (!where || !url) return; if (where == "save") { saveURL(url, null, null, true); return; } var w = getTopWin(); if (!w || where == "window") { openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url, null, nu... | |
var newTab = gBrowser.loadOneTab("about:blank", null, null, null, loadInBackground); | var newTab = gBrowser.loadOneTab("about:blank", null, null, null, loadInBackground, false); | openURI : function(aURI, aOpener, aWhere, aContext) { var newWindow = null; var referrer = null; var isExternal = (aContext == nsCI.nsIBrowserDOMWindow.OPEN_EXTERNAL); if (isExternal && aURI && aURI.schemeIs("chrome")) { dump("use -chrome command-line option to load external chrome urls\n"); re... |
if (isContainer(gHistoryTree, currentIndex)) openDialog("chrome: "", "chrome,all,dialog=no", url, "newWindow"); else openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | function OpenURL(aInNewWindow){ var currentIndex = gHistoryTree.currentIndex; var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder); var url = builder.getResourceAtIndex(currentIndex).Value; if (aInNewWindow) { var count = gHistoryTree.treeBoxObject.view.se... |
dump("\n\nOpenURL from XUL\n\n\n"); | function OpenURL(url){ dump("\n\nOpenURL from XUL\n\n\n"); messenger.SetWindow(window, msgWindow); messenger.OpenURL(url);} | |
if (!checkURLSecurity(url)) return; | function OpenURL(aWhere, event){ var count = gHistoryTree.treeBoxObject.view.selection.count; if (count != 1) return; var currentIndex = gHistoryTree.currentIndex; if (isContainer(gHistoryTree, currentIndex)) return; var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuil... | |
if (treeitem.getAttribute('id') == 'NC:RelatedLinks' && treeitem.getAttribute('open') == 'true') { refetchRelatedLinks(Handler, ContentWindow.location); return; } | function openURL(treeitem, root){ // First, see if they're opening the related links node. If so, // we'll need to go out and fetch related links _now_. if (treeitem.getAttribute('id') == 'NC:RelatedLinks' && treeitem.getAttribute('open') == 'true') { refetchRelatedLinks(Handler, ContentWindow.location)... | |
var url = builder.getResourceAtIndex(currentIndex).Value; | var url = builder.getResourceAtIndex(currentIndex).ValueUTF8; | function OpenURL(aTarget){ var currentIndex = gHistoryTree.currentIndex; var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder); var url = builder.getResourceAtIndex(currentIndex).Value; var uri = Components.classes["@mozilla.org/network/standard-url;1"]. ... |
dump("history: url = " + url + "\n"); | function OpenURL(aTarget){ var currentIndex = gHistoryTree.currentIndex; var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder); var url = builder.getResourceAtIndex(currentIndex).Value; var uri = Components.classes["@mozilla.org/network/standard-url;1"]. ... | |
function OpenURL(event, node, root) | function OpenURL(aInNewWindow) | function OpenURL(event, node, root){ if ((event.button != 0) || (event.detail != 2) || (node.nodeName != "treeitem")) return false; if (node.getAttribute("container") == "true") return false; var url = node.id; if (event.ctrlKey) // if metaKey is down, open in a new browser windo... |
if ((event.button != 0) || (event.detail != 2) || (node.nodeName != "treeitem")) | var currentIndex = gHistoryOutliner.currentIndex; if (isContainer(gHistoryOutliner, currentIndex)) | function OpenURL(event, node, root){ if ((event.button != 0) || (event.detail != 2) || (node.nodeName != "treeitem")) return false; if (node.getAttribute("container") == "true") return false; var url = node.id; if (event.ctrlKey) // if metaKey is down, open in a new browser windo... |
if (node.getAttribute("container") == "true") return false; var url = node.id; if (event.ctrlKey) window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", id ); | if (aInNewWindow) window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | function OpenURL(event, node, root){ if ((event.button != 0) || (event.detail != 2) || (node.nodeName != "treeitem")) return false; if (node.getAttribute("container") == "true") return false; var url = node.id; if (event.ctrlKey) // if metaKey is down, open in a new browser windo... |
dump("history: url = " + url + "\n"); | function OpenURL(aTarget){ var currentIndex = gHistoryTree.currentIndex; var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder); var url = builder.getResourceAtIndex(currentIndex).ValueUTF8; var uri = Components.classes["@mozilla.org/network/standard-url;1"]. ... | |
var url = BookmarksUtils.getProperty(aResource, NC_NS+"URL", aDS); | var url = BookmarksUtils.getProperty(aResource, gNC_NS+"URL", aDS); | openWebPanel: function(aResource, aDS) { var url = BookmarksUtils.getProperty(aResource, NC_NS+"URL", aDS); // Ignore "NC:" and empty urls. if (url == "") return; var w = getTopWin(); if (!w) { openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url); return; } w.openWeb... |
w.openWebPanel(BookmarksUtils.getProperty(aResource, NC_NS+"Name"), url); | w.openWebPanel(BookmarksUtils.getProperty(aResource, gNC_NS+"Name"), url); | openWebPanel: function(aResource, aDS) { var url = BookmarksUtils.getProperty(aResource, NC_NS+"URL", aDS); // Ignore "NC:" and empty urls. if (url == "") return; var w = getTopWin(); if (!w) { openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url); return; } w.openWeb... |
var ignore1 = new Object; var ignore2 = new Object; var tmpFile = this.mLauncher.getDownloadInfo( ignore1, ignore2 ); | var tmpFile = this.mLauncher.targetFile; | openWithDefaultOK: function() { var result; // The checking is different on Windows... if ( this.mIsWin ) { // Windows presents some special cases. // We need to prevent use of "system default" when the file is // executable (so the user doesn't launch nasty pro... |
if (headerEntry.enclosingBox.getAttribute("id") == "expandedfromBox") { setFromBuddyIcon(addresses.value[index]); } | function OutputEmailAddresses(headerEntry, emailAddresses){ if (!emailAddresses) return; if (msgHeaderParser) { var addresses = {}; var fullNames = {}; var names = {}; var numAddresses = 0; numAddresses = msgHeaderParser.parseHeadersWithArray(emailAddresses, addresses, names, fullNames); var in... | |
numAddresses = msgHeaderParser.ParseHeadersWithArray(emailAddresses, addresses, names, fullNames); | numAddresses = msgHeaderParser.parseHeadersWithArray(emailAddresses, addresses, names, fullNames); | function OutputEmailAddresses(headerEntry, emailAddresses){ if ( !emailAddresses ) return; if (msgHeaderParser) { var addresses = {}; var fullNames = {}; var names = {}; var numAddresses = 0; numAddresses = msgHeaderParser.ParseHeadersWithArray(emailAddresses, addresses, names, fullNames); var ind... |
function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName) | function OutputEmailAddresses(headerEntry, emailAddresses) | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... |
if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } | if ( !emailAddresses ) return; | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... |
if (currentHeaderName == "to") numOfEmailsInToField = numOfEmailsInEnumerator; else if (currentHeaderName == "cc") numOfEmailsInCcField = numOfEmailsInEnumerator; | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... | |
if (includeShortLongToggle && optionalLongDiv) | if (headerEntry.useToggle && headerEntry.longTextNode) | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... |
InsertEmailAddressUnderEnclosingBox(parentBox, optionalLongDiv, true, emailAddress, fullAddress, name); | InsertEmailAddressUnderEnclosingBox(headerEntry, headerEntry.longTextNode, emailAddress, fullAddress, name); | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... |
if (!includeShortLongToggle || (numAddressesParsed < gNumAddressesToShow)) | if (!headerEntry.useToggle || (numAddressesParsed < gNumAddressesToShow)) | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... |
InsertEmailAddressUnderEnclosingBox(parentBox, defaultParentDiv, includeShortLongToggle, emailAddress, fullAddress, name); | InsertEmailAddressUnderEnclosingBox(headerEntry, headerEntry.textNode, emailAddress, fullAddress, name); | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... |
if (includeShortLongToggle && (numAddressesParsed > gNumAddressesToShow) && optionalToggleButton) | if (headerEntry.useToggle && headerEntry.toggleIcon) | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... |
optionalToggleButton.removeAttribute('collapsed'); | if (numAddressesParsed > gNumAddressesToShow) headerEntry.toggleIcon.removeAttribute('collapsed'); else headerEntry.toggleIcon.setAttribute('collapsed', true); | function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton, currentHeaderName){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgH... |
if (headerEntry.enclosingBox.getAttribute("id") == "expandedfromBox") { setFromBuddyIcon(addresses.value[index]); } | function OutputEmailAddresses(headerEntry, emailAddresses){ if ( !emailAddresses ) return; if (msgHeaderParser) { var addresses = {}; var fullNames = {}; var names = {}; var numAddresses = 0; numAddresses = msgHeaderParser.parseHeadersWithArray(emailAddresses, addresses, names, fullNames); var ind... | |
var imeEditor = window.editorShell.editor.QueryInterface(Components.interfaces.nsIEditorIMESupport); if (imeEditor) imeEditor.ForceCompositionEnd(); | var imeEditor = gEditor.QueryInterface(Components.interfaces.nsIEditorIMESupport); imeEditor.ForceCompositionEnd(); | function OutputFileWithPersistAPI(editorDoc, aDestinationLocation, aRelatedFilesParentDir, aMimeType){ gPersistObj = null; try { var imeEditor = window.editorShell.editor.QueryInterface(Components.interfaces.nsIEditorIMESupport); if (imeEditor) imeEditor.ForceCompositionEnd(); } catch (e) {} var isLoca... |
| webPersist.PERSIST_FLAGS_FIXUP_LINKS_TO_DESTINATION | function OutputFileWithPersistAPI(editorDoc, aDestinationLocation, aRelatedFilesParentDir, aMimeType){ gPersistObj = null; try { var imeEditor = window.editorShell.editor.QueryInterface(Components.interfaces.nsIEditorIMESupport); if (imeEditor) imeEditor.ForceCompositionEnd(); } catch (e) {} var isLoca... | |
dump("Set Message Format to " + target.getAttribute('id') + "\n"); if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { switch (target.getAttribute('id')) { case "1": break; case "2": msgCompFields.SetTheForcePlainText(true); msgCompFields.SetUseMultipartAlternativeFlag(false); break; case... | function OutputFormatMenuSelect(target){// dump(target.getAttribute('id') + "\n");} | |
dump("Set Message Format to " + target.getAttribute('id') + "\n"); | function OutputFormatMenuSelect(target){ dump("Set Message Format to " + target.getAttribute('id') + "\n"); if (gMsgCompose) { var msgCompFields = gMsgCompose.compFields; if (msgCompFields) { switch (target.getAttribute('id')) { case "1": gSendFormat = nsIMsgCompSendFo... | |
if (msgCompFields) { switch (target.getAttribute('id')) { case "1": gSendFormat = nsIMsgCompSendFormat.AskUser; break; case "2": gSendFormat = nsIMsgCompSendFormat.PlainText; break; case "3": gSendFormat = nsIMsgCompSendFormat.HTML; break; case "4": gSendFormat = nsIMsgCompSendFormat.Both; break; } ... | if (msgCompFields) switch (target.getAttribute('id')) { case "format_auto": gSendFormat = nsIMsgCompSendFormat.AskUser; break; case "format_plain": gSendFormat = nsIMsgCompSendFormat.PlainText; break; case "format_html": gSendFormat = nsIMsgCompSendFormat.HTML; break; case "format_both": gSendFormat = n... | function OutputFormatMenuSelect(target){ dump("Set Message Format to " + target.getAttribute('id') + "\n"); if (gMsgCompose) { var msgCompFields = gMsgCompose.compFields; if (msgCompFields) { switch (target.getAttribute('id')) { case "1": gSendFormat = nsIMsgCompSendFo... |
if (msgCompose) | if (gMsgCompose) | function OutputFormatMenuSelect(target){ dump("Set Message Format to " + target.getAttribute('id') + "\n"); if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { switch (target.getAttribute('id')) { case "1": sendFormat = msgCompSendFormat.A... |
var msgCompFields = msgCompose.compFields; | var msgCompFields = gMsgCompose.compFields; | function OutputFormatMenuSelect(target){ dump("Set Message Format to " + target.getAttribute('id') + "\n"); if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { switch (target.getAttribute('id')) { case "1": sendFormat = msgCompSendFormat.A... |
case "1": sendFormat = msgCompSendFormat.AskUser; break; case "2": sendFormat = msgCompSendFormat.PlainText; break; case "3": sendFormat = msgCompSendFormat.HTML; break; case "4": sendFormat = msgCompSendFormat.Both; break; | case "1": gSendFormat = nsIMsgCompSendFormat.AskUser; break; case "2": gSendFormat = nsIMsgCompSendFormat.PlainText; break; case "3": gSendFormat = nsIMsgCompSendFormat.HTML; break; case "4": gSendFormat = nsIMsgCompSendFormat.Both; break; | function OutputFormatMenuSelect(target){ dump("Set Message Format to " + target.getAttribute('id') + "\n"); if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { switch (target.getAttribute('id')) { case "1": sendFormat = msgCompSendFormat.A... |
network.displayHere (list.event323.params.join(" ") + ": " + list.event323.meat, "323"); | var length = list.event323.params.length; network.displayHere (list.event323.params[length - 1], "323"); | function outputList (network) { const CHUNK_SIZE = 5; var list = network.list; if (list.length > list.displayed) { var start = list.displayed; var end = list.length; if (end - start > CHUNK_SIZE) end = start + CHUNK_SIZE; for ... |
function OutputNewsgroups(boxNode, textNode, currentHeaderData, headerName) { if (currentHeaderData[headerName]) { var headerValue = currentHeaderData[headerName].headerValue; headerValue = headerValue.replace(/,/g,", "); hdrViewSetNodeWithBox(boxNode, textNode, headerValue); } else hdrViewSetNodeWithBox(boxNode, text... | function OutputNewsgroups(headerEntry, headerValue) { headerValue = headerValue.replace(/,/g,", "); updateHeaderValue(headerEntry, headerValue); | function OutputNewsgroups(boxNode, textNode, currentHeaderData, headerName){ if (currentHeaderData[headerName]) { var headerValue = currentHeaderData[headerName].headerValue; headerValue = headerValue.replace(/,/g,", "); hdrViewSetNodeWithBox(boxNode, textNode, headerValue); } else hdrViewSetNodeWithBox... |
dump("Setting identity for " + pageData.identity.email.value + "\n"); identity.email = pageData.identity.email.value; identity.fullName = pageData.identity.fullName.value; | if (pageData.identity.email) identity.email = pageData.identity.email.value; if (pageData.identity.fullName) identity.fullName = pageData.identity.fullName.value; | function PageDataToAccountData(pageData, accountData){ if (!accountData.identity) accountData.identity = new Object; if (!accountData.incomingServer) accountData.incomingServer = new Object; if (!accountData.smtp) accountData.smtp = new Object; if (!accountData.pop3) accountData.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.