rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
function openNewTabWith(url) | function openNewTabWith(url, sendReferrer, reverseBackgroundPref) | function openNewTabWith(url) { urlSecurityCheck(url, document); var browser = getBrowser(); var referrer = getReferrer(document); var tab = browser.addTab(url, referrer); // open link in new tab if (pref && !pref.getBoolPref("browser.tabs.loadInBackground")) browser.selectedTab = tab;} |
var referrer = getReferrer(document); | var referrer = sendReferrer ? getReferrer(document) : null; | function openNewTabWith(url) { urlSecurityCheck(url, document); var browser = getBrowser(); var referrer = getReferrer(document); var tab = browser.addTab(url, referrer); // open link in new tab if (pref && !pref.getBoolPref("browser.tabs.loadInBackground")) browser.selectedTab = tab;} |
if (pref && !pref.getBoolPref("browser.tabs.loadInBackground")) browser.selectedTab = tab; | if (!loadInBackground) browser.selectedTab = tab; } | function openNewTabWith(url) { urlSecurityCheck(url, document); var browser = getBrowser(); var referrer = getReferrer(document); var tab = browser.addTab(url, referrer); // open link in new tab if (pref && !pref.getBoolPref("browser.tabs.loadInBackground")) browser.selectedTab = tab;} |
var browser=getBrowser(); browser.selectedTab = browser.addTab(url); | 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 use... |
urlSecurityCheck(url, document); var referrer = sendReferrer ? getReferrer(document) : null; | function openNewTabWith(url, sendReferrer, reverseBackgroundPref) { urlSecurityCheck(url, document); var referrer = sendReferrer ? getReferrer(document) : null; var browser; try { // if we're running in a browser window, this should work // browser = getBrowser(); } catch (ex if ex instanceof ReferenceErr... | |
var browserDocument = browser.ownerDocument; urlSecurityCheck(url, browserDocument); var referrer = sendReferrer ? getReferrer(browserDocument) : null; | function openNewTabWith(url, sendReferrer, reverseBackgroundPref) { urlSecurityCheck(url, document); var referrer = sendReferrer ? getReferrer(document) : null; var browser; try { // if we're running in a browser window, this should work // browser = getBrowser(); } catch (ex if ex instanceof ReferenceErr... | |
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 use it to ... | |
if (linkNode) markLinkVisited(href, linkNode); | function openNewTabWith(href, linkNode, event, securityCheck, postData, sendReferrer){ if (securityCheck) urlSecurityCheck(href, document); var prefSvc = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); prefSvc = prefSvc.getBranc... | |
function openNewVirtualFolderDialogWithArgs(defaultViewName, aSearchSession) | function openNewVirtualFolderDialogWithArgs(defaultViewName, aSearchTerms) | function openNewVirtualFolderDialogWithArgs(defaultViewName, aSearchSession){ var folderURI = GetSelectedFolderURI(); var folderTree = GetFolderTree(); var name = GetFolderNameFromUri(folderURI, folderTree); name += "-" + defaultViewName; var dialog = window.openDialog("chrome://messenger/content/virtualFolderProp... |
searchTermSession:aSearchSession, | searchTerms:aSearchTerms, | function openNewVirtualFolderDialogWithArgs(defaultViewName, aSearchSession){ var folderURI = GetSelectedFolderURI(); var folderTree = GetFolderTree(); var name = GetFolderNameFromUri(folderURI, folderTree); name += "-" + defaultViewName; var dialog = window.openDialog("chrome://messenger/content/virtualFolderProp... |
var newWin = window.openDialog( "chrome: | var newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | function openNewWindowWith( url ) { var newWin = window.openDialog( "chrome://navigator/content/navigator.xul", "_blank", "chrome,all,dialog=no", url ); // Fix new window. newWin.saveFileAndPos = true; } |
var newWin; var wintype = document.firstChild.getAttribute('windowtype'); var referrer = getReferrer(document); | function openNewWindowWith(url) { urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); var referrer = getReferrer(document); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charse... | |
if (window && (wintype == "navigator:browser") && window._content && window._content.document) { var DocCharset = window._content.document.characterSet; var charsetArg = "charset="+DocCharset; | var charsetArg = null; var wintype = document.firstChild.getAttribute('windowtype'); if (wintype == "navigator:browser") charsetArg = "charset=" + window._content.document.characterSet; | function openNewWindowWith(url) { urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); var referrer = getReferrer(document); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charse... |
newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url, charsetArg, true, referrer ); } else { newWin = window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url, null, true, referrer ); } | var referrer = getReferrer(document); window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url, charsetArg, referrer); | function openNewWindowWith(url) { urlSecurityCheck(url, document); var newWin; var wintype = document.firstChild.getAttribute('windowtype'); var referrer = getReferrer(document); // if and only if the current window is a browser window and it has a document with a character // set, then extract the current charse... |
function openNewWindowWith(url, sendReferrer) | function openNewWindowWith(aURL, aSendReferrer) | function openNewWindowWith(url, sendReferrer){ urlSecurityCheck(url, document); // 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 new browser window... var c... |
urlSecurityCheck(url, document); var charsetArg = null; var wintype = document.documentElement.getAttribute('windowtype'); if (wintype == "navigator:browser") charsetArg = "charset=" + window.content.document.characterSet; var referrer = sendReferrer ? getReferrer(document) : null; window.openDialog(getBrowserURL(... | openNewTabWindowOrExistingWith(kNewWindow, aURL, aSendReferrer, false); | function openNewWindowWith(url, sendReferrer){ urlSecurityCheck(url, document); // 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 new browser window... var c... |
var wintype = document.firstChild.getAttribute('windowtype'); | var wintype = document.documentElement.getAttribute('windowtype'); | function openNewWindowWith(url, sendReferrer){ urlSecurityCheck(url, document); // 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 new browser window... var c... |
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 focusedWindow = document.commandDispatcher.focusedWindow; | function openNewWindowWith(url) { // URL Loading Security Check 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 ... |
sourceURL.init(nsIStandardURL.URLTYPE_STANDARD, 80, sourceWin, null); var targetURL = stdURL.createInstance(nsIStandardURL); targetURL.init(nsIStandardURL.URLTYPE_STANDARD, 80, url, null); | function openNewWindowWith(url) { // URL Loading Security Check 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 ... | |
secMan.checkLoadURI(sourceURL, targetURL, nsIScriptSecurityManager.STANDARD); | try { secMan.checkLoadURIStr(sourceWin, url, nsIScriptSecurityManager.STANDARD); } catch (e) { throw "Load of " + url + " denied."; } | function openNewWindowWith(url) { // URL Loading Security Check 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 ... |
function openNewWindowWith(href, linkNode, securityCheck, postData) | function openNewWindowWith(href, linkNode, securityCheck, postData, sendReferrer) | function openNewWindowWith(href, linkNode, securityCheck, postData) { if (securityCheck) urlSecurityCheck(href, document); // 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 ... |
var referrer = getReferrer(document); | var referrer = (sendReferrer == false) ? null : getReferrer(document); | function openNewWindowWith(href, linkNode, securityCheck, postData) { if (securityCheck) urlSecurityCheck(href, document); // 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, sendReferrer) | function openNewWindowWith(url) { urlSecurityCheck(url, document); // 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 new browser window... var charsetArg = n... |
var referrer = getReferrer(document); | var referrer = sendReferrer ? getReferrer(document) : null; | function openNewWindowWith(url) { urlSecurityCheck(url, document); // 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 new browser window... var charsetArg = n... |
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 ... | |
if (linkNode) markLinkVisited(href, linkNode); | function openNewWindowWith(href, linkNode, securityCheck, postData, sendReferrer){ if (securityCheck) urlSecurityCheck(href, document); // 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 an... | |
openOneBookmark: function (aURI, aTargetBrowser, aDS) | openOneBookmark: function (aURI, aTargetBrowser, aDS, aEvent) | 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,dialo... |
var url = BookmarksUtils.getProperty(aURI, NC_NS+"URL", aDS); | var w = getTopWin(); if (!w) aTargetBrowser = "window"; 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,dialo... |
var w = aTargetBrowser == "window"? null:getTopWin(); if (!w) { | if (aTargetBrowser == "window") { | 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,dialo... |
var browser = w.document.getElementById("content"); | var browser = w.getBrowser(); | 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,dialo... |
if (!gLoadInBackground) | if (!BookmarksUtils.shouldLoadTabInBackground(aEvent)) | 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,dialo... |
browser.selectedTab = tab; | if (!loadInBackground) browser.selectedTab = tab; | 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,dialo... |
doSetOKCancel(selectOnOK, onCancel); | function openOnOK(){ var dir = outlinerView.getSelectedFile(); if (dir) gotoDirectory(dir); retvals.file = dir; retvals.buttonStatus = nsIFilePicker.returnCancel; doSetOKCancel(selectOnOK, onCancel); return false;} | |
showFilePermissionsErrorDialog("errorOpenFileDoesntExistTitle", "errorDirNotReadableMessage", dir); | showErrorDialog("errorOpenFileDoesntExistTitle", "errorDirNotReadableMessage", dir); | function openOnOK(){ var dir = treeView.getSelectedFile(); if (!dir.isReadable()) { showFilePermissionsErrorDialog("errorOpenFileDoesntExistTitle", "errorDirNotReadableMessage", dir); return false; } if (dir) gotoDirectory(dir); retvals.f... |
openDialog("chrome: | openDialog(window.opener.getBrowserURL(), "_blank", "chrome,all,dialog=no", url, null, null); | function openPrivacyPolicy() { var url = getCharPref("privacyURL", "http://reporter-test.mozilla.org/privacy/"); openDialog("chrome://browser/content/browser.xul", "_blank", "chrome,all,dialog=no", url, null, null);} |
var urlmatch= /:\/\/|\./ ; var result = urlmatch.test(searchStr); | var urlmatch= /(:\/\/|^ftp\.)[^ \S]+$/ var forceAsURL = urlmatch.test(searchStr); | 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 (result) { | if (forceAsURL) { | 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... |
top.content.location.href = defaultSearchURL; | top._content.location.href = defaultSearchURL; | function OpenSearch( tabName, forceDialogFlag, aSearchStr, engineURIs ){ var searchMode = 0; var searchEngineURI = null; var autoOpenSearchPanel = false; var defaultSearchURL = null; try { if( pref ) { searchMode = pref.GetIntPref("browser.search.powermode"); autoOpenSearchPanel = pref.GetBoolPref("browser.sea... |
top.content.location.href = "chrome: | top._content.location.href = "chrome: | function OpenSearch( tabName, forceDialogFlag, aSearchStr, engineURIs ){ var searchMode = 0; var searchEngineURI = null; var autoOpenSearchPanel = false; var defaultSearchURL = null; try { if( pref ) { searchMode = pref.GetIntPref("browser.search.powermode"); autoOpenSearchPanel = pref.GetBoolPref("browser.sea... |
dump("This is before the search " + window.content.location.href + "\n"); | dump("This is before the search " + window._content.location.href + "\n"); | function OpenSearch(tabName, forceDialogFlag, searchStr){ var searchMode = 0; var searchEngineURI = null; var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = "http://search.netscape.com/cgi-bin/search?search=" try { searchMode = pref.GetIntPref("browser.search.powermode"); aut... |
if ((window.content.location.href == searchStr) || (searchStr == '')) | if ((window._content.location.href == searchStr) || (searchStr == '')) | function OpenSearch(tabName, forceDialogFlag, searchStr){ var searchMode = 0; var searchEngineURI = null; var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = "http://search.netscape.com/cgi-bin/search?search=" try { searchMode = pref.GetIntPref("browser.search.powermode"); aut... |
if (searchEngineURI) { var searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr); if (searchURL) defaultSearchURL = searchURL; | if (searchEngineURI) { var searchURL = getSearchUrl("actionButton"); if (searchURL) { defaultSearchURL = searchURL + escapedSearchStr; } else { var searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr); if (searchURL) defaultSearchURL = searchURL; } | 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... |
sidebarInitiatedSearch = false; | function OpenSearch(aSearchStr, engineURIs){ var searchEngineURI = nsPreferences.copyUnicharPref("browser.search.defaultengine", null); var defaultSearchURL = nsPreferences.getLocalizedUnicharPref("browser.search.defaulturl", null); if (!defaultSearchURL) defaultSearchURL = searchBundle.getString("defaultSearchUR... | |
var searchDS = Components.classes[ISEARCH_PROGID].getService(nsIInternetSearchService); | var searchDS = Components.classes[ISEARCH_CONTRACTID].getService(nsIInternetSearchService); | function OpenSearch( aSearchStr, engineURIs ){ var searchEngineURI = nsPreferences.copyUnicharPref("browser.search.defaultengine", null); var autoOpenSearchPanel = nsPreferences.getBoolPref("browser.search.opensidebarsearchpanel", false); var defaultSearchURL = nsPreferences.getLocalizedUnicharPref("browser.search.d... |
if (!(defaultSearchURL == fallbackDefaultURL)) | if (!(defaultSearchURL == fallbackDefaultSearchURL)) | 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");... |
function OpenSearch(tabName, searchStr, newWindowFlag) | function OpenSearch(tabName, searchStr, newWindowOrTabFlag, reverseBackgroundPref) | function OpenSearch(tabName, 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 search string contai... |
if (!newWindowFlag) | if (!newWindowOrTabFlag) | function OpenSearch(tabName, 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 search string contai... |
else | else if (!pref.getBoolPref("browser.search.opentabforcontextsearch")) | function OpenSearch(tabName, 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 search string contai... |
else { var newTab = gBrowser.addTab(defaultSearchURL); var loadInBackground = pref.getBoolPref("browser.tabs.loadInBackground"); if (reverseBackgroundPref) loadInBackground = !loadInBackground; if (!loadInBackground) gBrowser.selectedTab = newTab; } | function OpenSearch(tabName, 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 search string contai... | |
if ((searchEngineURI != null) && (searchEngineURI != "")) | if (searchDS) | 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... |
try | searchDS.RememberLastSearchText(escapedSearchStr); if ((searchEngineURI != null) && (searchEngineURI != "")) | 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 = null; var searchDS = Components.classes["component: if (searchDS) searchDS = searchDS.QueryInterface(Components.interfaces.nsIInternetSearchService); if (searchDS) searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr); if ((searchURL != null) && (searchURL != "")) | try | 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... |
defaultSearchURL = searchURL; | var searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr); if ((searchURL != null) && (searchURL != "")) { defaultSearchURL = searchURL; } | 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... |
} catch(ex) { | catch(ex) { } | 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... |
dump("Search defaultSearchURL: " + defaultSearchURL + "\n"); | debug("Search defaultSearchURL: " + defaultSearchURL + "\n"); | 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");... |
dump("This is before the search " + window._content.location.href + "\n"); dump("This is before the search " + searchStr + "\n"); | debug("This is before the search " + window._content.location.href + "\n"); debug("This is before the search " + searchStr + "\n"); | 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");... |
if (appCore) appCore.loadUrl(defaultSearchURL); else dump("BrowserAppCore is not initialised\n"); | loadURI(defaultSearchURL); | 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");... |
if (appCore) appCore.loadUrl(otherSearchURL); else dump("BrowserAppCore is not initialised\n"); | loadURI(otherSearchURL); | 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 cwindowManager = Components.classes["component: | var cwindowManager = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"].getService(); | function OpenSearch(tabName, forceDialogFlag, searchStr){ var searchMode = 0; var searchEngineURI = null; var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = bundle.GetStringFromName("fallbackDefaultSearchURL") try { searchMode = pref.GetIntPref("browser.search.powermode"); au... |
var searchDS = Components.classes["component: | var searchDS = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"].getService(); | function OpenSearch(tabName, forceDialogFlag, searchStr){ var searchMode = 0; var searchEngineURI = null; var autoOpenSearchPanel = false; var defaultSearchURL = null; var fallbackDefaultSearchURL = bundle.GetStringFromName("fallbackDefaultSearchURL") try { searchMode = pref.GetIntPref("browser.search.powermode"); au... |
var fallbackDefaultSearchURL = "http: | 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... | |
dump("Search defaultSearchURL: " + defaultSearchURL + "\n"); | 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... | |
defaultSearchURL = "http: | defaultSearchURL = fallbackDefaultSearchURL; | 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... |
if (window.content.location.href == searchStr) | dump("This is before the search " + window.content.location.href + "\n"); dump("This is before the search " + searchStr + "\n"); if ((window.content.location.href == searchStr) || (searchStr == '')) | 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... |
dump(searchStr + ' Search: ' + defaultSearchURL + '\n'); if (!(defaultSearchURL == "http: | if (!(defaultSearchURL == fallbackDefaultSearchURL)) { | 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 attachmentItem = bucket.getSelectedItem(0); | var attachmentUrl = bucket.getSelectedItem(0).attachment.url; | function OpenSelectedAttachment(){ var child; var bucket = document.getElementById("attachmentBucket"); if (bucket.selectedItems.length == 1) { var attachmentItem = bucket.getSelectedItem(0); // turn the url into a nsIURL object then open it var url = gIOService.newURI(attachmentItem.attachment.url, null,... |
var messagePrefix = /^mailbox-message:|^imap-message:|^news-message:/i; if (messagePrefix.test(attachmentUrl)) { var messenger = Components.classes["@mozilla.org/messenger;1"].createInstance(); messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger); var msgHdr = messenger.messageServiceFromURI(attach... | function OpenSelectedAttachment(){ var child; var bucket = document.getElementById("attachmentBucket"); if (bucket.selectedItems.length == 1) { var attachmentItem = bucket.getSelectedItem(0); // turn the url into a nsIURL object then open it var url = gIOService.newURI(attachmentItem.attachment.url, null,... | |
var url = gIOService.newURI(attachmentItem.attachment.url, null, null); url = url.QueryInterface( Components.interfaces.nsIURL ); | var url = gIOService.newURI(attachmentUrl, null, null); url = url.QueryInterface( Components.interfaces.nsIURL ); | function OpenSelectedAttachment(){ var child; var bucket = document.getElementById("attachmentBucket"); if (bucket.selectedItems.length == 1) { var attachmentItem = bucket.getSelectedItem(0); // turn the url into a nsIURL object then open it var url = gIOService.newURI(attachmentItem.attachment.url, null,... |
if (url) { var channel = gIOService.newChannelFromURI(url); if (channel) | if (url) | function OpenSelectedAttachment(){ var child; var bucket = document.getElementById("attachmentBucket"); if (bucket.selectedItems.length == 1) { var attachmentItem = bucket.getSelectedItem(0); // turn the url into a nsIURL object then open it var url = gIOService.newURI(attachmentItem.attachment.url, null,... |
var uriLoader = Components.classes["@mozilla.org/uriloader;1"].getService(Components.interfaces.nsIURILoader); uriLoader.openURI(channel, true, new nsAttachmentOpener()); } } | var channel = gIOService.newChannelFromURI(url); if (channel) { var uriLoader = Components.classes["@mozilla.org/uriloader;1"].getService(Components.interfaces.nsIURILoader); uriLoader.openURI(channel, true, new nsAttachmentOpener()); } } } | function OpenSelectedAttachment(){ var child; var bucket = document.getElementById("attachmentBucket"); if (bucket.selectedItems.length == 1) { var attachmentItem = bucket.getSelectedItem(0); // turn the url into a nsIURL object then open it var url = gIOService.newURI(attachmentItem.attachment.url, null,... |
"smtpEdit", "chrome,modal", args); | "smtpEdit", "chrome,titlebar,modal", args); | function openServerEditor(serverarg){ var args = {server: serverarg, result: false}; window.openDialog("chrome://messenger/content/SmtpServerEdit.xul", "smtpEdit", "chrome,modal", args); if (args.result) { refreshServerList(); hasEdited = true; } return a... |
result: false}; | result: false, addSmtpServer: ""}; | function openServerEditor(serverarg){ var args = {server: serverarg, result: false}; window.openDialog("chrome://messenger/content/SmtpServerEdit.xul", "smtpEdit", "chrome,titlebar,modal", args); if (args.result) { refreshServerList(); hasEdited = true; } ... |
if (args.addSmtpServer) gAddedSmtpServers[gAddedSmtpServers.length] = args.addSmtpServer; | function openServerEditor(serverarg){ var args = {server: serverarg, result: false}; window.openDialog("chrome://messenger/content/SmtpServerEdit.xul", "smtpEdit", "chrome,titlebar,modal", args); if (args.result) { refreshServerList(); hasEdited = true; } ... | |
var windowManager = Components.classes['component: | var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); | function openTopWin( url ){ /* note that this chrome url should probably change to not have all of the navigator controls, but if we do this we need to have the option for chrome controls because goClickThrobber() needs to use this function with chrome controls */ /* also, do we want to limit the number of he... |
topWindowOfType._content.location.href = url; | topWindowOfType._content.location.href = url; return topWindowOfType; | function openTopWin( url ){ /* note that this chrome url should probably change to not have all of the navigator controls, but if we do this we need to have the option for chrome controls because goClickThrobber() needs to use this function with chrome controls */ /* also, do we want to li... |
window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | return window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | function openTopWin( url ){ /* note that this chrome url should probably change to not have all of the navigator controls, but if we do this we need to have the option for chrome controls because goClickThrobber() needs to use this function with chrome controls */ /* also, do we want to li... |
dump("setting page: " + topWindowOfType.content.location.href + "\n"); | dump("setting page: " + topWindowOfType._content.location.href + "\n"); | function openTopWin( url ){ /* note that this chrome url should probably change to not have all of the navigator controls, but if we do this we need to have the option for chrome controls because goClickThrobber() needs to use this function with chrome controls */ /* also, do we want to limit the number of he... |
topWindowOfType.content.location.href = xlateURL(url); | topWindowOfType._content.location.href = xlateURL(url); | function openTopWin( url ){ /* note that this chrome url should probably change to not have all of the navigator controls, but if we do this we need to have the option for chrome controls because goClickThrobber() needs to use this function with chrome controls */ /* also, do we want to limit the number of he... |
topWindowOfType.content.location.href = url; | topWindowOfType._content.location.href = url; | function openTopWin( url ){ /* note that this chrome url should probably change to not have all of the navigator controls, but if we do this we need to have the option for chrome controls because goClickThrobber() needs to use this function with chrome controls */ /* also, do we want to limit the number of he... |
window.openDialog( "chrome: | window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | function openTopWin( url ){ /* note that this chrome url should probably change to not have all of the navigator controls, but if we do this we need to have the option for chrome controls because goClickThrobber() needs to use this function with chrome controls */ /* also, do we want to limit the number of he... |
this.buildPropertyTree(treechildren, aItem.__JSValue__); | openTreeItem: function(aItem) { var treechildren = aItem.getElementsByTagName("treechildren").item(0); if (!treechildren) { treechildren = document.createElement("treechildren"); aItem.appendChild(treechildren); } this.buildPropertyTree(treechildren, aItem.__JSValue__); }, | |
function openUILink( url, e, ignoreButton, ignoreAlt ) | function openUILink( url, e, ignoreButton, ignoreAlt, allowKeywordFixup, postData ) | function openUILink( url, e, ignoreButton, ignoreAlt ){ var where = whereToOpenLink(e, ignoreButton, ignoreAlt); openUILinkIn(url, where, false);} |
openUILinkIn(url, where, false); | openUILinkIn(url, where, allowKeywordFixup, postData); | function openUILink( url, e, ignoreButton, ignoreAlt ){ var where = whereToOpenLink(e, ignoreButton, ignoreAlt); openUILinkIn(url, where, false);} |
function openUILinkIn( url, where, allowThirdPartyFixup ) | function openUILinkIn( url, where, allowThirdPartyFixup, postData ) | function openUILinkIn( url, where, allowThirdPartyFixup ){ 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 (... |
if (!where) | if (!where || !url) | function openUILinkIn( url, where, allowThirdPartyFixup ){ 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 (... |
if ((url == null) || (url == "")) return; if (url.indexOf("urn:") == 0) { url = xlateURL(url); } if (url == "") { url = "about:blank"; } | function openUILinkIn( url, where, allowThirdPartyFixup ){ 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 (... | |
var w = (where == "window") ? null : getTopWin(); if (!w) { openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url); | var w = getTopWin(); if (!w || where == "window") { openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url, null, null, postData, allowThirdPartyFixup); | function openUILinkIn( url, where, allowThirdPartyFixup ){ 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 (... |
var browser = w.document.getElementById("content"); | function openUILinkIn( url, where, allowThirdPartyFixup ){ 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 (... | |
browser.loadURI(url); | w.loadURI(url, null, postData, allowThirdPartyFixup); | function openUILinkIn( url, where, allowThirdPartyFixup ){ 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 (... |
browser.loadOneTab(url, null, null, null, loadInBackground, | var browser = w.getBrowser(); browser.loadOneTab(url, null, null, postData, loadInBackground, | function openUILinkIn( url, where, allowThirdPartyFixup ){ 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 (... |
if (!mayOpenURI()) | if (!mayOpenURI(uri)) | function openURI(uri){ if (!mayOpenURI()) throw Components.results.NS_ERROR_FAILURE; var io = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var channel = io.newChannelFromURI(uri); var loader = Components.classes["@mozilla.org/uriload... |
if (iid.equals(Components.interfaces.nsILoadGroup)) return loadgroup; | function openURI(uri){ if (!mayOpenURI()) throw Components.results.NS_ERROR_FAILURE; var io = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var channel = io.newChannelFromURI(uri); var loader = Components.classes["@mozilla.org/uriload... | |
else openTopWin(url); | else if (!isContainer(gHistoryTree, currentIndex)) openTopWin(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... |
window.openDialog( "chrome: | window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | function OpenURL(event, node, root){ if ((event.button != 1) || (event.clickCount != 2) || (node.nodeName != "treeitem")) return(false); if (node.getAttribute("container") == "true") return(false); var url = getAbsoluteID(root, node); // Ignore "NC:" urls. if (url.substring(0, 3) == "NC:") return(false); // get righ... |
var uri = Components.classes["@mozilla.org/network/standard-url;1"]. createInstance(Components.interfaces.nsIURI); uri.spec = url; if (uri.schemeIs("javascript") || uri.schemeIs("data")) { var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleServ... | 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... | |
var rdf = Components.classes["component: | var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(); | function OpenURL(event, node){ // clear any single-click/edit timeouts if (timerID != null) { gEditNode = null; clearTimeout(timerID); timerID = null; } if (node.getAttribute('container') == "true") { return(false); } var url = node.getAttribute('id'); // Ignore "N... |
if (protocolSvc.isExposedProtocol(uri.scheme)) protocolSvc.loadUrl(uri); | protocolSvc.loadUrl(uri); | function openURL(aURL){# If we're not a browser, use the external protocol service to load the URI.#ifndef MOZ_PHOENIX var uri = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIURI); uri.spec = aURL; var protocolSvc = Components.classes["@mozill... |
var rdf = Components.classes["component: | var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(); | function OpenURL(event, node){ // clear any single-click/edit timeouts if (timerID != null) { gEditNode = null; clearTimeout(timerID); timerID = null; } if (node.getAttribute('container') == "true") { return(false); } var url = node.getAttribute('id'); // Ignore "N... |
window.openDialog( "chrome: | window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); | function OpenURL(event, node){ // clear any single-click/edit timeouts if (timerID != null) { gEditNode = null; clearTimeout(timerID); timerID = null; } if (node.getAttribute('container') == "true") { return(false); } var url = node.getAttribute('id'); // Ignore "N... |
if( event.type == "click" && ( event.button != 1 || event.detail != 2 ) ) | if (event.type == "click" && event.button != 1) { | function openURL(event, root){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 ) ) return false; else if( event.type == "keypress" && event.which != 13 ) return false; var treeitem = document.getElementById(root).selectedItems[0]; if (treeitem.getAttribute('container') == 'true' ||... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.