rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
openNewWindowWith(this.target.ownerDocument.location.href, null, true);
openNewWindowWith(this.target.ownerDocument.location.href, null, null);
openFrame : function () { openNewWindowWith(this.target.ownerDocument.location.href, null, true); },
openNewTabWith(this.target.ownerDocument.location.href, null, null, true);
openNewTabWith(this.target.ownerDocument.location.href, null, null, null);
openFrameInTab : function () { // Determine linked-to URL. openNewTabWith(this.target.ownerDocument.location.href, null, null, true); },
var uri = target.QueryInterface(kRDFLITIID).Value; browser.addTab(uri);
URIs.push({ URI: target.QueryInterface(kRDFLITIID).Value });
openGroupBookmark: function (aURI, aTargetBrowser) { if (aTargetBrowser == "current" || aTargetBrowser == "tab") { var w = getTopWin(); var browser = w.document.getElementById("content"); var resource = RDF.GetResource(aURI); var urlArc = RDF.GetResource(NC_NS+"URL"); RDFC.Init(...
if (index == 0) return; if (!PREF.getBoolPref("browser.tabs.loadInBackground")) { var tabs = browser.mTabContainer.childNodes; browser.selectedTab = tabs[tabCount]; }
browser.loadGroup(URIs);
openGroupBookmark: function (aURI, aTargetBrowser) { if (aTargetBrowser == "current" || aTargetBrowser == "tab") { var w = getTopWin(); var browser = w.document.getElementById("content"); var resource = RDF.GetResource(aURI); var urlArc = RDF.GetResource(NC_NS+"URL"); RDFC.Init(...
browser.loadGroup(URIs);
var tab = browser.loadGroup(URIs); if (!PREF.getBoolPref("browser.tabs.loadInBackground")) browser.selectedTab = tab;
openGroupBookmark: function (aURI, aTargetBrowser) { if (aTargetBrowser == "current" || aTargetBrowser == "tab") { var w = getTopWin(); var browser = w.document.getElementById("content"); var resource = RDF.GetResource(aURI); var urlArc = RDF.GetResource(NC_NS+"URL"); RDFC.Init(...
HideAccountCentral();
ShowThreadPane();
function OpenInboxForServer(server){ try { HideAccountCentral(); var inboxFolder = GetInboxFolder(server); SelectFolder(inboxFolder.URI); if(CheckOnline()) { if (server.type != "imap") GetMessagesForInboxOnServer(server); } else if (DoGetNewMailWhen...
openNewWindowWith(this.linkURL(), this.link, true);
openNewWindowWith(this.linkURL, this.docURL, null);
openLink : function () { // Determine linked-to URL. openNewWindowWith(this.linkURL(), this.link, true); },
var safeurls = /(^http(s)?:|^file:|^chrome:|^resource:|^mailbox:|^imap:|^news:|^about:|^mailto:|^ftp:|^gopher:)/i;
var safeurls = /(^http(s)?:|^file:|^chrome:|^resource:|^mailbox:|^imap:|^(s)?news:|^nntp:|^about:|^mailto:|^ftp:|^gopher:)/i;
function openLink(node){ var url = node.getAttribute("value"); // Security-Critical: Only links to 'safe' protocols should be functional. // Specifically, javascript: and data: URLs must be made non-functional // here, because they will run with full privilege. var safeurls = /(^http(s)?:|^file:|^chrome:...
openNewTabWith(this.linkURL(), this.link, null, true);
openNewTabWith(this.linkURL, this.docURL, null, null);
openLinkInTab : function () { // Determine linked-to URL. openNewTabWith(this.linkURL(), this.link, null, true); },
if (gURLBar) { var style = document.defaultView.getComputedStyle(gURLBarContainer, null); if (style.visibility == "visible" && style.display != "none") { gURLBar.focus(); gURLBar.select(); return; }
if (gURLBar && isElementVisible(gURLBar)) { gURLBar.focus(); gURLBar.select(); return;
function openLocation(){ if (gURLBar) { var style = document.defaultView.getComputedStyle(gURLBarContainer, null); if (style.visibility == "visible" && style.display != "none") { gURLBar.focus(); gURLBar.select(); return; } }#ifdef XP_MACOSX if (window.location.href != getBrowserURL()) { v...
openDialog("chrome:
#ifdef XP_MACOSX if (window.location.href == "chrome: window.openDialog("chrome: } else #endif openDialog("chrome:
function openLocation(){ if (gURLBar && !gURLBar.parentNode.parentNode.collapsed) { gURLBar.focus(); gURLBar.select(); } else { openDialog("chrome://browser/content/openLocation.xul", "_blank", "chrome,modal,titlebar", window); }}
if (gURLBar && !gURLBar.parentNode.parentNode.collapsed) {
if (gURLBar && !gURLBar.parentNode.parentNode.collapsed && !(window.getComputedStyle(gURLBar.parentNode, null).display == "none")) {
function openLocation(){ if (gURLBar && !gURLBar.parentNode.parentNode.collapsed) { gURLBar.focus(); gURLBar.select(); } else {#ifdef XP_MACOSX if (window.location.href == "chrome://browser/content/hiddenWindow.xul") { // If no windows are active, open a new one. window.openDialog("chrome://brows...
if (gURLBar && !document.getElementById("nav-bar").hidden) {
if (gURLBar && !gURLBar.parentNode.parentNode.collapsed) {
function openLocation(){ if (gURLBar && !document.getElementById("nav-bar").hidden) { gURLBar.focus(); gURLBar.select(); } else { openDialog("chrome://browser/content/openLocation.xul", "_blank", "chrome,modal,titlebar", window); }}
event.preventBubble();
event.stopPropagation();
function openNewTabOrWindow(event, href, sendReferrer) { // should we open it in a new tab? if (pref && pref.getBoolPref("browser.tabs.opentabfor.middleclick")) { openNewTabWith(href, sendReferrer, event.shiftKey); event.preventBubble(); return true; } // should we open it in a new window?...
function openNewTabWith(href, linkNode, event, securityCheck, postData, sendReferrer)
function openNewTabWith(href, sourceURL, postData, event)
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...
if (securityCheck) urlSecurityCheck(href, document);
if (sourceURL) urlSecurityCheck(href, sourceURL);
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...
var referrer = (sendReferrer == false) ? null : getReferrer(document);
var referrerURI = sourceURL ? makeURI(sourceURL) : null;
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...
browser.loadOneTab(href, referrer, originCharset, postData, loadInBackground);
browser.loadOneTab(href, referrerURI, originCharset, postData, loadInBackground);
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 openNewTabWith(href, linkNode)
function openNewTabWith(href, linkNode, event)
function openNewTabWith(href, linkNode){ urlSecurityCheck(href, document); // should we open it in a new tab? var loadInBackground; try { loadInBackground = gPrefService.getBoolPref("browser.tabs.loadInBackground"); } catch(ex) { loadInBackground = true; } var theTab = getBrowser().addTab(href, getRefe...
if (event && event.shiftKey) loadInBackground = !loadInBackground;
function openNewTabWith(href, linkNode){ urlSecurityCheck(href, document); // should we open it in a new tab? var loadInBackground; try { loadInBackground = gPrefService.getBoolPref("browser.tabs.loadInBackground"); } catch(ex) { loadInBackground = true; } var theTab = getBrowser().addTab(href, getRefe...
var focusedWindow = document.commandDispatcher.focusedWindow; var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : window._content.location.href; const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityManager; var secMan = Components.classes["@mozilla.org/scriptsecuritymanage...
urlSecurityCheck(url, document);
function openNewWindowWith(url) { // URL Loading Security Check var focusedWindow = document.commandDispatcher.focusedWindow; var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : window._content.location.href; const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityM...
function openNewWindowWith(href, linkNode, securityCheck, postData, sendReferrer)
function openNewWindowWith(href, sourceURL, postData)
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...
if (securityCheck) urlSecurityCheck(href, document);
if (sourceURL) urlSecurityCheck(href, sourceURL);
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...
var referrer = (sendReferrer == false) ? null : getReferrer(document);
var referrerURI = sourceURL ? makeURI(sourceURL) : null;
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...
window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", href, charsetArg, referrer, postData);
window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", href, charsetArg, referrerURI, postData);
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...
var errorTitle = gFilePickerBundle.getFormattedString("errorOpenFileDoesntExistTitle", [dir.unicodePath]); var errorMessage = gFilePickerBundle.getFormattedString("errorDirNotReadableMessage", [dir.unicodePath]); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.int...
showFilePermissionsErrorDialog("errorOpenFileDoesntExistTitle", "errorDirNotReadableMessage", dir);
function openOnOK(){ var dir = outlinerView.getSelectedFile(); if (!dir.isReadable()) { var errorTitle = gFilePickerBundle.getFormattedString("errorOpenFileDoesntExistTitle", [dir.unicodePath]); var errorMessage = gFilePickerBundle.getFormattedString("errorDir...
var instantApply = false;
var prefsService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null) var instantApply = prefsService.getBoolPref("browser.preferences.instantApply");
function openOptionsDialog(containerID, paneURL, itemID){ // var instantApply = gPrefService.getBoolPref("browser.preferences.instantApply"); var instantApply = false; var features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal"); var wm = Components.classes["@mozilla.org/appshell...
var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator); var desiredWindow = windowManager.getMostRecentWindow(windowType);
var desiredWindow = GetWindowByWindowType(windowType);
function OpenOrFocusWindow(args, windowType, chromeURL){ var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator); var desiredWindow = windowManager.getMostRecentWindow(windowType); if (desiredWindow) { desiredWindow.focus(); if ("ref...
client.globalHistory.addPage(user.getURL());
if (client.globalHistory) client.globalHistory.addPage(user.getURL());
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.canoni...
var relnotesURL = formatURL("app.releaseNotesURL", null, true);
var relnotesURL = formatURL("app.releaseNotesURL", true);
function openReleaseNotes(event){ var appInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo); var regionBundle = document.getElementById("bundle_browser_region"); var relnotesURL = formatURL("app.releaseNotesURL", null, true); openUILink...
var url = getWebNavigation().currentURI.spec;
var url = _content.location.href;
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 (!(defaultSearchURL == fallbackDefaultSearchURL)) {
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...
if (appCore) appCore.loadUrl(defaultSearchURL); else dump("BrowserAppCore is not initialised\n"); } else { if (appCore) appCore.loadUrl("http: else dump("BrowserAppCore is not initialised\n"); }
if (appCore) appCore.loadUrl(defaultSearchURL); else dump("BrowserAppCore is not initialised\n");
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 autoOpenSearchPanel = nsPreferences.getBoolPref("browser.search.opensidebarsearchpanel", false);
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) defaultSearchURL = bundle.GetStringFromName("defaultSearchURL");
if (!defaultSearchURL) defaultSearchURL = searchBundle.getString("defaultSearchURL");
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 (searchDS) { if(!aSearchStr) return(false);
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...
try { if( !engineURIs || ( engineURIs && engineURIs.length <= 1 ) ) { if (engineURIs && engineURIs.length == 1) { debug("Got one engine: " + engineURIs[0] + "\n"); searchEngineURI = engineURIs[0]; gURL = "internetsearch:engine=" + searchEngineURI + "&text=" + escapedSearchStr; } if (!searchEngineURI) searchEngineURI ...
var gURL; try { if (!engineURIs || engineURIs.length <= 1) { if (engineURIs && engineURIs.length == 1) { searchEngineURI = engineURIs[0]; gURL = "internetsearch:engine=" + searchEngineURI + "&text=" + escapedSearchStr; }
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...
try { var searchURL = searchDS.GetInternetSearchURL( searchEngineURI, escapedSearchStr ); } catch(ex) { searchURL = ""; }
if (!searchEngineURI) searchEngineURI = searchBundle.getString("defaultSearchURL");
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...
defaultSearchURL = searchURL ? searchURL : defaultSearchURL + escapedSearchStr; if (!searchURL) gURL = "";
try { var searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr); } catch (ex) { searchURL = ""; }
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) loadURLInContent(defaultSearchURL);
defaultSearchURL = searchURL ? searchURL : defaultSearchURL + escapedSearchStr; if (!searchURL) gURL = ""; if (defaultSearchURL) loadURLInContent(defaultSearchURL); } else { searchURL = ""; for (var i = 0; i < engineURIs.length; ++i) { searchURL += !searchURL ? "internetsearch:" : "&"; searchURL += "engine=" + engin...
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...
else { searchURL = ""; for( var i = 0; i < engineURIs.length; i++ ) { searchURL += !searchURL ? "internetsearch:" : "&"; searchURL += "engine=" + engineURIs[i]; } searchURL += ( "&text=" + escapedSearchStr ); gURL = searchURL; dump("*** about to attempt to load internetresults into the content window\n"); loadURLInCon...
searchURL += ("&text=" + escapedSearchStr); gURL = searchURL; loadURLInContent("chrome: }
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...
catch (ex) {} setTimeout("checkSearchProgress()", 1000);
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 ((searchMode == 1) || (forceDialogFlag == true))
if (window.content.location.href == 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...
var windowManager = getService( "component: var searchWindow = windowManager.getMostRecentWindow("search:window"); if (searchWindow) { searchWindow.focus(); if (searchWindow.loadPage) searchWindow.loadPage(tabName, searchStr);
dump(searchStr + ' Search: ' + defaultSearchURL + '\n'); if (!(defaultSearchURL == "http: window.content.location.href = defaultSearchURL;
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...
window.openDialog("chrome:
{ window.content.location.href = "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...
if ( !searchStr ) return;
if ((searchMode == 1) || (forceDialogFlag == true)) { var cwindowManager = Components.classes["component: var iwindowManager = Components.interfaces.nsIWindowMediator; var windowManager = cwindowManager.QueryInterface(iwindowManager); var searchWindow = windowManager.getMostRecentWindow("search:window"); if (searchWi...
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 searchDS = getService( "component: var escapedSearchStr = escape(searchStr); defaultSearchURL += escapedSearchStr;
var searchDS = Components.classes["component: if (searchDS) searchDS = searchDS.QueryInterface(Components.interfaces.nsIInternetSearchService);
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 (searchDS) { searchDS.RememberLastSearchText(escapedSearchStr);
var escapedSearchStr = escape(searchStr); defaultSearchURL += escapedSearchStr;
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 ((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 = 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; } } 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...
catch(ex) { } }
} window.content.location.href = defaultSearchURL;
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...
window.content.location.href = defaultSearchURL;
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...
}
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...
gPageNumber = 0;
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...
searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr);
searchURL = searchDS.GetInternetSearchURL(searchEngineURI, escapedSearchStr, 0, 0, {value:0});
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 (file.isSymlink()) file.initWithUnicodePath(file.unicodeTarget);
function openSelectedFile() { var file = outlinerView.getSelectedFile(); if (!file) return; if (file.isSymlink()) file.initWithUnicodePath(file.unicodeTarget); if (file.isDirectory()) gotoDirectory(file); else if (file.isFile()) doOKButton();}
if (browserWin)
if (browserWin) {
function openTopBrowserWith(url){ var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator); var browserWin = windowMediator.getMostRecentWindow("navigator:browser"); // if there's an existing browser window, open this url in one if (brows...
browserWin.focus(); }
function openTopBrowserWith(url){ var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator); var browserWin = windowMediator.getMostRecentWindow("navigator:browser"); // if there's an existing browser window, open this url in one if (brows...
var kids = aItem.getElementsByTagName("treechildren"); if (kids.length == 0) { kids = document.createElement("treechildren"); aItem.appendChild(kids);
var treechildren = aItem.getElementsByTagName("treechildren").item(0); if (!treechildren) { treechildren = document.createElement("treechildren"); aItem.appendChild(treechildren);
openTreeItem: function(aItem) { var kids = aItem.getElementsByTagName("treechildren"); if (kids.length == 0) { kids = document.createElement("treechildren"); aItem.appendChild(kids); } this.buildPropertyTree(kids, aItem.__JSValue__); },
this.buildPropertyTree(kids, aItem.__JSValue__);
this.buildPropertyTree(treechildren, aItem.__JSValue__);
openTreeItem: function(aItem) { var kids = aItem.getElementsByTagName("treechildren"); if (kids.length == 0) { kids = document.createElement("treechildren"); aItem.appendChild(kids); } this.buildPropertyTree(kids, aItem.__JSValue__); },
var appCore = FindMsgAppCore();
var appCore = FindMessenger();
function OpenURL(url){ dump("\n\nOpenURL from XUL\n\n\n"); var appCore = FindMsgAppCore(); if (appCore != null) { appCore.SetWindow(window); appCore.OpenURL(url); }}
/* try {
try {
function openURL(event, treeitem, root){ /* mClickCount variable now made global and retrieved at start of doSearch() */ /* try { if( pref ) { var prefvalue = pref.GetBoolPref( "browser.search.use_double_clicks" ); mClickCount = prefvalue ? 2 : 1; } else mClickCount = 1; } catch(e) { mCl...
} */
}
function openURL(event, treeitem, root){ /* mClickCount variable now made global and retrieved at start of doSearch() */ /* try { if( pref ) { var prefvalue = pref.GetBoolPref( "browser.search.use_double_clicks" ); mClickCount = prefvalue ? 2 : 1; } else mClickCount = 1; } catch(e) { mCl...
if ((event.button != 1) || (event.detail != 2) || (node.nodeName != "treeitem")) return(false);
if (event.button != 1 || event.detail != 2 || node.nodeName != "treeitem" || node.getAttribute("container") == "true") { return false; }
function OpenURL(event, node, root){ if ((event.button != 1) || (event.detail != 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 right si...
if (node.getAttribute("container") == "true") return(false);
var url = getAbsoluteID(root, node);
function OpenURL(event, node, root){ if ((event.button != 1) || (event.detail != 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 right si...
var url = getAbsoluteID(root, node);
if (url.substring(0, 3) == "NC:") return false;
function OpenURL(event, node, root){ if ((event.button != 1) || (event.detail != 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 right si...
if (url.substring(0, 3) == "NC:") return(false); window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); return(true);
window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); return true;
function OpenURL(event, node, root){ if ((event.button != 1) || (event.detail != 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 right si...
return true;
function OpenURL(event, node, root){ if ((event.button != 1) || (event.detail != 2) || (node.nodeName != "treeitem")) return false; if (node.getAttribute("container") == "true") return false; var url = node.id; window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url...
if (node.getAttribute('container') == "true") return(false);
if (event.clickCount != 2 || node.nodeName != "treeitem") return(false);
function OpenURL(event, node, root){ if (node.getAttribute('container') == "true") return(false); var url = getAbsoluteID(root, node); // Ignore "NC:" urls. if (url.substring(0, 3) == "NC:") return(false); // get right sized window window.openDialog( "chrome://navigator/content/navigator.xul", "_blank", "chrome,all,d...
var url = getAbsoluteID(root, node);
if (node.getAttribute('container') == "true") return(false);
function OpenURL(event, node, root){ if (node.getAttribute('container') == "true") return(false); var url = getAbsoluteID(root, node); // Ignore "NC:" urls. if (url.substring(0, 3) == "NC:") return(false); // get right sized window window.openDialog( "chrome://navigator/content/navigator.xul", "_blank", "chrome,all,d...
if (url.substring(0, 3) == "NC:") return(false);
var url = getAbsoluteID(root, node);
function OpenURL(event, node, root){ if (node.getAttribute('container') == "true") return(false); var url = getAbsoluteID(root, node); // Ignore "NC:" urls. if (url.substring(0, 3) == "NC:") return(false); // get right sized window window.openDialog( "chrome://navigator/content/navigator.xul", "_blank", "chrome,all,d...
window.openDialog( "chrome: return(true);
if (url.substring(0, 3) == "NC:") return(false); window.openDialog( "chrome: return(true);
function OpenURL(event, node, root){ if (node.getAttribute('container') == "true") return(false); var url = getAbsoluteID(root, node); // Ignore "NC:" urls. if (url.substring(0, 3) == "NC:") return(false); // get right sized window window.openDialog( "chrome://navigator/content/navigator.xul", "_blank", "chrome,all,d...
if (event.clickCount != 2 || node.nodeName != "treeitem") return(false);
if ((event.button != 1) || (event.clickCount != 2) || (node.nodeName != "treeitem")) return(false);
function OpenURL(event, node, root){ if (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 right sized window window.o...
if (node.getAttribute('container') == "true") return(false);
if (node.getAttribute("container") == "true") return(false);
function OpenURL(event, node, root){ if (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 right sized window window.o...
if (event.metaKey)
if (event.ctrlKey)
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.metaKey) // if metaKey is down, open in a new browser windo...
.getService(Components.interfaces.nsIIOService) .newURI(aURL, null, null);
.getService(nsIIOService).newURI(aURL, null, null);
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/io-service;1"] .getService(Components.interfaces.nsIIOService) .newURI(aURL, null, null); var protocolSvc ...
for ( var bit = 0; bit < bs.length; bit++ ) { if ( bs.charAt(bit) == "1" || ba.charAt(bit) == "1" ) { result += "1"; } else { result += "0"; }
for ( var bit = 0; bit < bs.length; bit++ ) { if ( bs.charAt(bit) == "1" || ba.charAt(bit) == "1" ) { result += "1"; } else { result += "0";
function Or( s, a ) { s = ToInt32( s ); a = ToInt32( a ); var bs = ToInt32BitString( s ); var ba = ToInt32BitString( a ); var result = ""; for ( var bit = 0; bit < bs.length; bit++ ) { if ( bs.charAt(bit) == "1" || ba.charAt(bit) == "1" ) { result += "1"; } else { r...
testcases[count++] = new TestCase( SECTION, "outer:x ", 1111, x); testcases[count++] = new TestCase( SECTION, "outer:y ", 'outer', y); function inner_func(x) { var y = "inner"; testcases[count++] = new TestCase( SECTION, "inner:x ", 2222, x); testcases[count++] = new TestCase( SECTION, "inner:y ", 'inner'...
new TestCase( SECTION, "outer:x ", 1111, x); new TestCase( SECTION, "outer:y ", 'outer', y); function inner_func(x) { var y = "inner"; new TestCase( SECTION, "inner:x ", 2222, x); new TestCase( SECTION, "inner:y ", 'inner', y); };
function outer_func(x) { var y = "outer"; testcases[count++] = new TestCase( SECTION, "outer:x ", 1111, x); testcases[count++] = new TestCase( SECTION, "outer:y ", 'outer', y); function inner_func(x) ...
inner_func(2222); testcases[count++] = new TestCase( SECTION, "outer:x ", 1111, x); testcases[count++] = new TestCase( SECTION, "outer:y ", 'outer', y); }
inner_func(2222); new TestCase( SECTION, "outer:x ", 1111, x); new TestCase( SECTION, "outer:y ", 'outer', y); }
function outer_func(x) { var y = "outer"; testcases[count++] = new TestCase( SECTION, "outer:x ", 1111, x); testcases[count++] = new TestCase( SECTION, "outer:y ", 'outer', y); function inner_func(x) ...
include('chrome:
function output_file_to_channel( aChannel, aFilePath, contentType ){ include('chrome://calendar/content/jslib/io/io.js'); var uploadChannel = aChannel.QueryInterface(Components.interfaces.nsIUploadChannel); var thisFile = new File( aFilePath ); thisFile.open( "r" ); var theFileContents = thisFile.read()...
headerEntry.enclosingBox.buildViews(gNumAddressesToShow);
headerEntry.enclosingBox.buildViews();
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...
FinishEmailProcessing();
function OutputEmailAddresses(parentBox, defaultParentDiv, emailAddresses, includeShortLongToggle, optionalLongDiv, optionalToggleButton){ // if we don't have any addresses for this field, hide the parent box! if ( !emailAddresses ) { hdrViewSetVisible(parentBox, false); return; } if (msgHeaderParser) { var enu...
else if (currentHeaderName == "from") numOfEmailsInFromField = 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 (msgHeaderPa...
headerEntry.enclosingBox.buildViews(gNumAddressesToShow);
headerEntry.enclosingBox.buildViews();
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...
if (headerEntry.useToggle && headerEntry.longTextNode)
if (headerEntry.useToggle)
function OutputEmailAddresses(headerEntry, emailAddresses){ if ( !emailAddresses ) return; if (msgHeaderParser) { var enumerator = msgHeaderParser.ParseHeadersWithEnumerator(emailAddresses); enumerator = enumerator.QueryInterface(Components.interfaces.nsISimpleEnumerator); var numAddressesParsed = 0; if ...
InsertEmailAddressUnderEnclosingBox(headerEntry, headerEntry.longTextNode, emailAddress, fullAddress, name);
var addresses = {}; addresses.emailAddress = emailAddress; addresses.fullAddress = fullAddress; addresses.displayName = name; headerEntry.enclosingBox.addAddressView(addresses);
function OutputEmailAddresses(headerEntry, emailAddresses){ if ( !emailAddresses ) return; if (msgHeaderParser) { var enumerator = msgHeaderParser.ParseHeadersWithEnumerator(emailAddresses); enumerator = enumerator.QueryInterface(Components.interfaces.nsISimpleEnumerator); var numAddressesParsed = 0; if ...
if (!headerEntry.useToggle && !headerEntry.useShortView)
else
function OutputEmailAddresses(headerEntry, emailAddresses){ if ( !emailAddresses ) return; if (msgHeaderParser) { var enumerator = msgHeaderParser.ParseHeadersWithEnumerator(emailAddresses); enumerator = enumerator.QueryInterface(Components.interfaces.nsISimpleEnumerator); var numAddressesParsed = 0; if ...
} else if (!headerEntry.useToggle || (numAddressesParsed < gNumAddressesToShow)) { InsertEmailAddressUnderEnclosingBox(headerEntry, headerEntry.textNode, emailAddress, fullAddress, name);
function OutputEmailAddresses(headerEntry, emailAddresses){ if ( !emailAddresses ) return; if (msgHeaderParser) { var enumerator = msgHeaderParser.ParseHeadersWithEnumerator(emailAddresses); enumerator = enumerator.QueryInterface(Components.interfaces.nsISimpleEnumerator); var numAddressesParsed = 0; if ...
if (headerEntry.useToggle && headerEntry.toggleIcon) { if (numAddressesParsed > gNumAddressesToShow) headerEntry.toggleIcon.removeAttribute('collapsed'); else headerEntry.toggleIcon.setAttribute('collapsed', true); }
if (headerEntry.useToggle) headerEntry.enclosingBox.buildViews(gNumAddressesToShow);
function OutputEmailAddresses(headerEntry, emailAddresses){ if ( !emailAddresses ) return; if (msgHeaderParser) { var enumerator = msgHeaderParser.ParseHeadersWithEnumerator(emailAddresses); enumerator = enumerator.QueryInterface(Components.interfaces.nsISimpleEnumerator); var numAddressesParsed = 0; if ...
imeEditor.ForceCompositionEnd();
imeEditor.forceCompositionEnd();
function OutputFileWithPersistAPI(editorDoc, aDestinationLocation, aRelatedFilesParentDir, aMimeType){ gPersistObj = null; var editor = GetCurrentEditor(); try { var imeEditor = editor.QueryInterface(Components.interfaces.nsIEditorIMESupport); imeEditor.ForceCompositionEnd(); } catch (e) {} var isLocalFile...
server.username = pageData.login.username.value; if (pageData.login.password) server.password = pageData.login.password.value; if (pageData.login.rememberPassword) server.rememberPassword = pageData.login.rememberPassword.value; smtp.hostname = pageData.server.smtphostname.value;
if (pageData.login) { server.username = pageData.login.username.value; if (pageData.login.password) server.password = pageData.login.password.value; if (pageData.login.rememberPassword) server.rememberPassword = pageData.login.rememberPassword.value; } if (pageData.server) { if (pageData.server.smtphostname) smtp.host...
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; var identity = accountData.identity; ...
dump("Setting identity for " + pageData.identity.email.value + "\n");
_dd("Setting identity for " + pageData.identity.email.value + "\n");
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; var identity = accountData.identity; ...
dump("not setting username/password/rememberpassword/etc\n");
_dd("not setting username/password/rememberpassword/etc\n");
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; var identity = accountData.identity; ...
dump("pageData.server = " + pageData.server + "\n");
_dd("pageData.server = " + pageData.server + "\n");
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; var identity = accountData.identity; ...
dump("pageData.server.smtphostname.value = " + pageData.server.smtphostname + "\n");
_dd("pageData.server.smtphostname.value = " + pageData.server.smtphostname + "\n");
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; var identity = accountData.identity; ...
this.initialized = 0;
function pageInfoTreeView(columnids, copycol){ // columnids is an array of strings indicating the names of the columns, in order this.columnids = columnids; this.colcount = columnids.length // copycol is the index number for the column that we want to add to // the copy-n-paste buffer when the user hits accel-c ...
this.initialized = 0;
function pageInfoTreeView(columnids, copycol){ // columnids is an array of strings indicating the names of the columns, in order this.columnids = columnids; this.colcount = columnids.length this.copycol = copycol; this.rows = 0; this.tree = null; this.data = new Array; this.selection = null; this.sortcol = nul...
return IsDocumentEmpty() && !IsDocumentModified() && !gHTMLSourceChanged;
return IsDocumentEmpty() && !IsDocumentModified() && !IsHTMLSourceChanged();
function PageIsEmptyAndUntouched(){ return IsDocumentEmpty() && !IsDocumentModified() && !gHTMLSourceChanged;}