rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var webBrowserPrint = printEngine.webBrowserPrint; webBrowserPrint.exitPrintPreview(); | function BrowserExitPrintPreview(){ window.close();} | |
var navTB = document.getElementById("nav-bar"); | var navToolbox = document.getElementById("navigator-toolbox"); | function BrowserExitPrintPreview(){ gInPrintPreviewMode = false; var browser = getBrowser(); browser.setAttribute("handleCtrlPageUpDown", "true"); // exit print preview galley mode in content area var ifreq = _content.QueryInterface( Components.interfaces.nsIInterfaceRequestor); var webBrowserPrint = ifreq.get... |
navTB.parentNode.removeChild(printPreviewTB); | navToolbox.parentNode.removeChild(printPreviewTB); | function BrowserExitPrintPreview(){ gInPrintPreviewMode = false; var browser = getBrowser(); browser.setAttribute("handleCtrlPageUpDown", "true"); // exit print preview galley mode in content area var ifreq = _content.QueryInterface( Components.interfaces.nsIInterfaceRequestor); var webBrowserPrint = ifreq.get... |
function BrowserFindAgain() | function BrowserFindAgain(reverse) | function BrowserFindAgain(){ var focusedWindow = document.commandDispatcher.focusedWindow; if (!focusedWindow || focusedWindow == window) focusedWindow = window._content; findAgainInPage(getBrowser(), window._content, focusedWindow)} |
findAgainInPage(getBrowser(), window._content, focusedWindow) | findAgainInPage(getBrowser(), window._content, focusedWindow, reverse) | function BrowserFindAgain(){ var focusedWindow = document.commandDispatcher.focusedWindow; if (!focusedWindow || focusedWindow == window) focusedWindow = window._content; findAgainInPage(getBrowser(), window._content, focusedWindow)} |
function BrowserFindAgain() | function BrowserFindAgain(reverse) | function BrowserFindAgain(){ var focusedWindow = document.commandDispatcher.focusedWindow; if (!focusedWindow || focusedWindow == window) focusedWindow = window._content; findAgainInPage(gBrowser, window._content, focusedWindow)} |
findAgainInPage(gBrowser, window._content, focusedWindow) | findAgainInPage(gBrowser, window._content, focusedWindow, reverse) | function BrowserFindAgain(){ var focusedWindow = document.commandDispatcher.focusedWindow; if (!focusedWindow || focusedWindow == window) focusedWindow = window._content; findAgainInPage(gBrowser, window._content, focusedWindow)} |
var history = Components.classes["@mozilla.org/browser/global-history;1"] | var history = Components.classes["@mozilla.org/browser/global-history;2"] | function BrowserFlushBookmarksAndHistory(){ // Flush bookmarks and history (used when window closes or is cached). try { // If bookmarks are dirty, flush 'em to disk var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIRDFRemoteDa... |
getWebNavigation().goForward(); | try { getWebNavigation().goForward(); } catch(ex) { } | function BrowserForward(){ getWebNavigation().goForward(); UpdateBackForwardButtons();} |
BrowserBack(); | switch (gPrefService.getIntPref("browser.backspace_action")) { case 0: BrowserBack(); break; case 1: goDoCommand("cmd_scrollPageUp"); break; } | function BrowserHandleBackspace(){ BrowserBack();} |
BrowserBack(); | switch (pref.getIntPref("browser.backspace_action")) { case 0: BrowserBack(); break; case 1: goDoCommand("cmd_scrollPageUp"); break; } | function BrowserHandleBackspace(){ // The order of seeing keystrokes is this: // 1) Chrome, 2) Typeahead, 3) [platform]HTMLBindings.xml // Rather than have typeaheadfind responsible for making VK_BACK // go back in history, we handle backspace it here as follows: // When backspace is pressed, it might mean back ... |
if (url.length > 0) | if (url && url.length > 0) | function browserHandleMiddleClick(event) { var target = event.target; if (pref.GetBoolPref("middlemouse.openNewWindow")) { var node = enclosingLink(target); var href =""; if (node) href = node.href; if (href != "") { openNewWindowWith(href); event.preventBubble(... |
_content.focus(); | content.focus(); | function BrowserHomeClick(aEvent){ if (aEvent.button == 2) // right-click: do nothing return; var homePage = gHomeButton.getHomePage(); var where = whereToOpenLink(aEvent); var urls; // openUILinkIn in utilityOverlay.js doesn't handle loading multiple pages switch (where) { case "save": urls = homePage.spl... |
var text = text.substr(aOffset+1); var shortcutURL = bmks.FindShortcut(cmd); | text = text.substr(aOffset+1); shortcutURL = bmks.FindShortcut(cmd); | function BrowserLoadURL() { // rjc: added support for URL shortcuts (3/30/1999) try { var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService(); bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService); var text = document.getElementById('urlbar... |
content.focus(); | focusElement(content); | function BrowserLoadURL(aTriggeringEvent, aPostData) { var url = gURLBar.value; if (aTriggeringEvent instanceof MouseEvent) { if (aTriggeringEvent.button == 2) return; // Do nothing for right clicks // We have a mouse event (from the go button), so use the standard // UI link behaviors openUILink(url... |
gBrowser.loadOneTab(url, null, null, aPostData, false); | gBrowser.loadOneTab(url, null, null, aPostData, false, true ); | function BrowserLoadURL(aTriggeringEvent, aPostData){ var url = gURLBar.value; if (gBrowser.localName == "tabbrowser" && aTriggeringEvent && 'altKey' in aTriggeringEvent && aTriggeringEvent.altKey) { handleURLBarRevert(); content.focus(); gBrowser.loadOneTab(url, null, null, aPostData, false); g... |
loadURI(url, null, aPostData); | loadURI(url, null, aPostData, true ); | function BrowserLoadURL(aTriggeringEvent, aPostData){ var url = gURLBar.value; if (gBrowser.localName == "tabbrowser" && aTriggeringEvent && 'altKey' in aTriggeringEvent && aTriggeringEvent.altKey) { handleURLBarRevert(); content.focus(); gBrowser.loadOneTab(url, null, null, aPostData, false); g... |
if (appCore == null) { dump("BrowserAppCore has not been initialized\n"); return; } | function BrowserLoadURL() { if (appCore == null) { dump("BrowserAppCore has not been initialized\n"); return; } // rjc: added support for URL shortcuts (3/30/1999) try { var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService(); bmks = bmks.QueryInterface(Compo... | |
appCore.loadUrl(document.getElementById('urlbar').value); | appCore.loadUrl(gURLBar.value); window.content.focus(); | function BrowserLoadURL() { if (appCore == null) { dump("BrowserAppCore has not been initialized\n"); return; } // rjc: added support for URL shortcuts (3/30/1999) try { var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService(); bmks = bmks.QueryInterface(Compo... |
if (openTab && getBrowser().localName == "tabbrowser") { | if (openTab) { | function BrowserLoadURL(aTriggeringEvent){ var url = gURLBar.value; if (url.match(/^view-source:/)) { BrowserViewSourceOfURL(url.replace(/^view-source:/, ""), null, null); } else { // Check the pressed modifiers: (also see bug 97123) // Modifier Mac | Modifier PC | Action // -------------+-------------+-... |
var t = getBrowser().addTab(url); | var t = browser.addTab(url); | function BrowserLoadURL(aTriggeringEvent){ var url = gURLBar.value; if (url.match(/^view-source:/)) { BrowserViewSourceOfURL(url.replace(/^view-source:/, ""), null, null); } else { // Check the pressed modifiers: (also see bug 97123) // Modifier Mac | Modifier PC | Action // -------------+-------------+-... |
if (!shiftPressed) getBrowser().selectedTab = t; } else { | if (!shiftPressed) { browser.userTypedValue = null; browser.selectedTab = t; } } else { | function BrowserLoadURL(aTriggeringEvent){ var url = gURLBar.value; if (url.match(/^view-source:/)) { BrowserViewSourceOfURL(url.replace(/^view-source:/, ""), null, null); } else { // Check the pressed modifiers: (also see bug 97123) // Modifier Mac | Modifier PC | Action // -------------+-------------+-... |
var oldURL = getWebNavigation().currentURI.spec; | var oldURL = browser.currentURI.spec; | function BrowserLoadURL(aTriggeringEvent){ var url = gURLBar.value; if (url.match(/^view-source:/)) { BrowserViewSourceOfURL(url.replace(/^view-source:/, ""), null, null); } else { // Check the pressed modifiers: (also see bug 97123) // Modifier Mac | Modifier PC | Action // -------------+-------------+-... |
if (pref && pref.GetBoolPref("browser.tabs.opentabfor.urlbar") && getBrowser().localName == "tabbrowser") { | if (pref && pref.getBoolPref("browser.tabs.opentabfor.urlbar") && getBrowser().localName == "tabbrowser") { | function BrowserLoadURL(){ var url = gURLBar.value; if (url.match(/^view-source:/)) { BrowserViewSourceOfURL(url.replace(/^view-source:/, ""), null); } else { if (pref && pref.GetBoolPref("browser.tabs.opentabfor.urlbar") && getBrowser().localName == "tabbrowser") { var t = getBrowser().addTab(getShortcut... |
handleURLBarRevert(); | function BrowserLoadURL(aTriggeringEvent, aPostData){ var url = gURLBar.value; if (url.match(/^view-source:/)) { BrowserViewSourceOfURL(url.replace(/^view-source:/, ""), null, null); } else { if (gBrowser.localName == "tabbrowser" && aTriggeringEvent && 'altKey' in aTriggeringEvent && aTriggering... | |
aTriggeringEvent.preventBubble(); aTriggeringEvent.preventCapture(); | function BrowserLoadURL(aTriggeringEvent, aPostData){ var url = gURLBar.value; if (gBrowser.localName == "tabbrowser" && aTriggeringEvent && 'altKey' in aTriggeringEvent && aTriggeringEvent.altKey) { handleURLBarRevert(); content.focus(); gBrowser.loadOneTab(url, null, null, aPostData, false); g... | |
if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent && aTriggeringEvent.shiftKey) url = gURLBar.value = "http: else if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey) url = gURLBar.value = "http: else if (aTriggeringEvent ... | function BrowserLoadURL(aTriggeringEvent){ var url = gURLBar.value; if (url.match(/^view-source:/)) { BrowserViewSourceOfURL(url.replace(/^view-source:/, ""), null, null); } else { if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent && ... | |
_content.focus(); | content.focus(); | function BrowserLoadURL(aTriggeringEvent, aPostData){ var url = gURLBar.value; if (url.match(/^view-source:/)) { BrowserViewSourceOfURL(url.replace(/^view-source:/, ""), null, null); } else { if (gBrowser.localName == "tabbrowser" && aTriggeringEvent && 'altKey' in aTriggeringEvent && aTriggering... |
try { var bmks = Components.classes["component: bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService); | function BrowserLoadURL() { if (appCore == null) { dump("BrowserAppCore has not been initialized\n"); return; } // rjc: added support for URL shortcuts (3/30/1999) // get RDF Core service var rdfCoreFound = false; var rdfCore = XPAppCoresManager.Find("RDFCore"); if (rdfCore) { rdfCoreFound = true; } else { rdfCo... | |
var rdfCoreFound = false; var rdfCore = XPAppCoresManager.Find("RDFCore"); if (rdfCore) { rdfCoreFound = true; | var shortcutURL = bmks.FindShortcut(document.getElementById('urlbar').value); dump("FindShortcut: in='" + document.getElementById('urlbar').value + "' out='" + shortcutURL + "'\n"); if ((shortcutURL != null) && (shortcutURL != "")) { document.getElementById('urlbar').value = shortcutURL; } | function BrowserLoadURL() { if (appCore == null) { dump("BrowserAppCore has not been initialized\n"); return; } // rjc: added support for URL shortcuts (3/30/1999) // get RDF Core service var rdfCoreFound = false; var rdfCore = XPAppCoresManager.Find("RDFCore"); if (rdfCore) { rdfCoreFound = true; } else { rdfCo... |
else { rdfCore = new RDFCore(); if (rdfCore) { rdfCore.Init("RDFCore"); rdfCoreFound = true; } } if (rdfCoreFound == true) { var shortcutURL = rdfCore.findBookmarkShortcut(document.getElementById('urlbar').value); dump("FindBookmarkShortcut: in='" + document.getElementById('urlbar').value + "' out='" + shortcutUR... | catch (ex) { } | function BrowserLoadURL() { if (appCore == null) { dump("BrowserAppCore has not been initialized\n"); return; } // rjc: added support for URL shortcuts (3/30/1999) // get RDF Core service var rdfCoreFound = false; var rdfCore = XPAppCoresManager.Find("RDFCore"); if (rdfCore) { rdfCoreFound = true; } else { rdfCo... |
fp.init(window, bundle.GetStringFromName("openFile"), nsIFilePicker.modeOpen); | fp.init(window, gNavigatorBundle.getString("openFile"), nsIFilePicker.modeOpen); | function BrowserOpenFileWindow(){ // Get filepicker component. try { const nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("openFile"), nsIFilePicker.modeOpen); fp.appendFi... |
gBrowser.loadOneTab("about:blank", null, null, null, false); | gBrowser.loadOneTab("about:blank", null, null, null, false, false); | function BrowserOpenTab(){ gBrowser.loadOneTab("about:blank", null, null, null, false); if (gURLBar) setTimeout(function() { gURLBar.focus(); }, 0);} |
core.ShowWindowWithArgs( "resource:/res/samples/openLocation.xul", window, appCoreName ); | var name = appCoreName.replace( /\./, /\_/ ); window.openDialog( "resource:/res/samples/openLocation.xul", name+"_openLocation", "chrome,width=419,height=189", appCoreName ); | function BrowserOpenWindow() { core = XPAppCoresManager.Find("toolkitCore"); if ( !core ) { core = new ToolkitCore(); if ( core ) { core.Init("toolkitCore"); } } if ( core ) { core.ShowWindowWithArgs( "resource:/res/samples/openLocation.xul", window, appCoreName ); ... |
openDialog("hrome: | openDialog("chrome: | function BrowserOpenWindow(){ //opens a window where users can select a web location to open openDialog("hrome://navigator/content/openLocation.xul", "_blank", "chrome,modal,titlebar", appCore);} |
function BrowserPageInfo(doc) | function BrowserPageInfo(doc, initialTab) | function BrowserPageInfo(doc){ toOpenDialogByTypeAndUrl("Browser:page-info", doc ? doc.location : window.content.document.location, "chrome://browser/content/pageInfo.xul", "chrome,dialog=no", doc);} |
doc); | args); | function BrowserPageInfo(doc){ toOpenDialogByTypeAndUrl("Browser:page-info", doc ? doc.location : window.content.document.location, "chrome://browser/content/pageInfo.xul", "chrome,dialog=no", doc);} |
} else { document.getElementById("item-paste").style.display="none"; | function BrowserPopupShowing () { /* * Open Link as New Tab */ if(document.commandDispatcher.focusedElement && document.commandDispatcher.focusedElement.href) { gFocusedElementHREFContextMenu=document.commandDispatcher.focusedElement.href; document.getElementById("link_as_new_tab").hidden=false; document.ge... | |
document.getElementById("item-call").label="Call \""+ selectedRange + " \""; document.getElementById("item-call").setAttribute("oncommand","DoTestSendCall("+selectedRange+")"); | if(selectedRange) { | function BrowserPopupShowing () { /* * Open Link as New Tab */ if(document.commandDispatcher.focusedElement && document.commandDispatcher.focusedElement.href) { document.getElementById("link_as_new_tab").hidden=false; } else { document.getElementById("link_as_new_tab").hidden=true; } var selectedRange=getBr... |
s=util_stripCharsFromString(selectedRange,"#_+()- "); if(util_validateInteger(s) && s.length >= 7) { document.getElementById("item-call").hidden=false; document.getElementById("item-call").label="Call \""+ selectedRange + " \""; document.getElementById("item-call").setAttribute("oncommand","DoTestSendCall("+s+")"); } e... | function BrowserPopupShowing () { /* * Open Link as New Tab */ if(document.commandDispatcher.focusedElement && document.commandDispatcher.focusedElement.href) { document.getElementById("link_as_new_tab").hidden=false; } else { document.getElementById("link_as_new_tab").hidden=true; } var selectedRange=getBr... | |
if(selectedRange) { s=util_stripCharsFromString(selectedRange,"#_+()- "); if(util_validateInteger(s) && s.length >= 7) { document.getElementById("item-call").hidden=false; document.getElementById("item-call").label="Call \""+ selectedRange + " \""; document.getElementById("item-call").setAttribute("oncommand","DoTestS... | function BrowserPopupShowing () { /* * Open Link as New Tab */ if(document.commandDispatcher.focusedElement && document.commandDispatcher.focusedElement.href) { document.getElementById("link_as_new_tab").hidden=false; } else { document.getElementById("link_as_new_tab").hidden=true; } var selectedRange=getBr... | |
_content.print(); | var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if (pref) { gUseGlobalPrintSettings = pref.getBoolPref("print.use_global_printsettings"); } var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"] .getService(Components.interfa... | function BrowserPrint(){ // using _content.print() until printing becomes scriptable on docShell try { _content.print(); } catch (e) { // Pressing cancel is expressed as an NS_ERROR_FAILURE return value, // causing an exception to be thrown which we catch here. // Unfortunately this will also consume hel... |
var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"] .getService(Components.interfaces.nsIPrintOptions); if (gPrintSettings == null) { gPrintSettings = printOptionsService.CreatePrintSettings(); } | function BrowserPrintPreview(){ // using _content.print() until printing becomes scriptable on docShell try { _content.printPreview(); } catch (e) { // Pressing cancel is expressed as an NS_ERROR_FAILURE return value, // causing an exception to be thrown which we catch here. // Unfortunately this will al... | |
_content.printPreview(); | _content.printPreview(gPrintSettings, false); | function BrowserPrintPreview(){ // using _content.print() until printing becomes scriptable on docShell try { _content.printPreview(); } catch (e) { // Pressing cancel is expressed as an NS_ERROR_FAILURE return value, // causing an exception to be thrown which we catch here. // Unfortunately this will al... |
gPrintSettings = GetPrintSettings(); | function BrowserPrintPreview(){ var ifreq; var webBrowserPrint; try { ifreq = content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); gPrintSettings = GetPrintSettings(); } catch (e) { // Pressing cancel ... | |
try { gPrintSettings = GetPrintSettings(); } catch(e) { gPrintSettings = PrintUtils.getPrintSettings(); } | function BrowserPrintPreview(){ var ifreq; var webBrowserPrint; try { ifreq = content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); gPrintSettings = GetPrintSettings(); } catch (e) { // Pressing cancel ... | |
try { _content.printPreview(); } catch (e) { } | function BrowserPrintPreview(){ // implement me} | |
gInPrintPreviewMode = true; | var ifreq; var webBrowserPrint; try { ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); gPrintSettings = GetPrintSettings(); | function BrowserPrintPreview(){ gInPrintPreviewMode = true; var browser = getBrowser(); browser.setAttribute("handleCtrlPageUpDown", "false"); var mainWin = document.getElementById("main-window"); // save previous close handler to restoreon exiting print preview mode if (mainWin.hasAttribute("onclose")) gOldCl... |
var browser = getBrowser(); browser.setAttribute("handleCtrlPageUpDown", "false"); var mainWin = document.getElementById("main-window"); if (mainWin.hasAttribute("onclose")) gOldCloseHandler = mainWin.getAttribute("onclose"); else gOldCloseHandler = null; mainWin.setAttribute("onclose", "BrowserExitPrintPreview(); r... | function BrowserPrintPreview(){ gInPrintPreviewMode = true; var browser = getBrowser(); browser.setAttribute("handleCtrlPageUpDown", "false"); var mainWin = document.getElementById("main-window"); // save previous close handler to restoreon exiting print preview mode if (mainWin.hasAttribute("onclose")) gOldCl... | |
gWebProgress = new Object(); var printPreviewParams = new Object(); var notifyOnOpen = new Object(); var printingPromptService = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"] .getService(Components.interfaces.nsIPrintingPromptService); if (printingPromptService) { try { printingPr... | function BrowserPrintPreview(){ gInPrintPreviewMode = true; var browser = getBrowser(); browser.setAttribute("handleCtrlPageUpDown", "false"); var mainWin = document.getElementById("main-window"); // save previous close handler to restoreon exiting print preview mode if (mainWin.hasAttribute("onclose")) gOldCl... | |
printPreviewParams.value.docTitle = webNav.document.title; | printPreviewParams.value.docTitle = window.arguments[0].title; | function BrowserPrintPreview(){ var ifreq; var webBrowserPrint; try { ifreq = content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); } catch (e) { // Pressing cancel is expressed as an NS_ERROR_ABORT return... |
goPageSetup(); | try { var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if (pref) { gUseGlobalPrintSettings = pref.getBoolPref("print.use_global_printsettings", false); } var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"] .getService(Comp... | function BrowserPrintSetup(){ goPageSetup(); // from utilityOverlay.js} |
alert("BrowserPrintSetup "+e); | dump("BrowserPrintSetup "+e); | function BrowserPrintSetup(){ try { var ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = GetPrintSettings(webBrowserPrint); } goPageSetup(gPr... |
if (webBrowserPrint.doingPrintPreview) { webBrowserPrint.printPreview(gPrintSettings, null, null); } | function BrowserPrintSetup(){ var didOK = false; try { var ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = GetPrintSettings(); } didOK = go... | |
searchURL = searchDS.GetInternetSearchURL(searchEngineURI, "ABC", 0, 0, {value:0}); | var searchURL = searchDS.GetInternetSearchURL(searchEngineURI, "ABC", 0, 0, {value:0}); | function BrowserSearchInternet(){ try { var searchEngineURI = pref.getCharPref("browser.search.defaultengine"); if (searchEngineURI) { var searchRoot = getSearchUrl("searchForm"); if (searchRoot) { loadURI(searchRoot); return; } else { // Get a search URL and guess t... |
getWebNavigation().reload(nsIWebNavigation.LOAD_FLAGS_NONE); | try { getWebNavigation().reload(nsIWebNavigation.LOAD_FLAGS_NONE); } catch(ex) { } | function BrowserSetDefaultCharacterSet(aCharset){ getMarkupDocumentViewer().defaultCharacterSet = aCharset; getWebNavigation().reload(nsIWebNavigation.LOAD_FLAGS_NONE);} |
PageLoader.LoadPage(PageLoader.currentDescriptor, pageLoaderIface.DISPLAY_NORMAL); | PageLoader.loadPage(PageLoader.currentDescriptor, pageLoaderIface.DISPLAY_NORMAL); | function BrowserSetForcedCharacterSet(aCharset){ var docCharset = getBrowser().docShell.QueryInterface( Components.interfaces.nsIDocCharset); docCharset.charset = aCharset; var PageLoader = getBrowser().webNavigation.QueryInterface(pageLoaderIface); PageLoader.LoadPage(PageLoader.currentD... |
var docCharset = gBrowser.docShell.QueryInterface( | var docCharset = getBrowser().docShell.QueryInterface( | function BrowserSetForcedCharacterSet(aCharset){ var docCharset = gBrowser.docShell.QueryInterface( Components.interfaces.nsIDocCharset); docCharset.charset = aCharset; BrowserReloadWithFlags(nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);} |
function BrowserSetForcedDetector(doReload) { BrowserSetForcedDetector(); | function BrowserSetForcedDetector(doReload) { getBrowser().documentCharsetInfo.forcedDetector = true; if (doReload) BrowserReloadWithFlags(nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE); | function BrowserSetForcedDetector(doReload) { BrowserSetForcedDetector();} |
uninitFindBar(); | gFindBar.uninitFindBar(); | function BrowserShutdown(){ var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); os.removeObserver(gSessionHistoryObserver, "browser:purge-session-history"); os.removeObserver(gXPInstallObserver, "xpinstall-install-blocked"); os.removeObserver(gXPI... |
pbi.removeObserver(gFormFillPrefListener.domain, gFormFillPrefListener); | function BrowserShutdown(){ var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); os.removeObserver(gSessionHistoryObserver, "browser:purge-session-history"); os.removeObserver(gXPInstallObserver, "xpinstall-install-blocked"); try { gBrowser.remo... | |
if (window.opener.gFindMode == FIND_NORMAL) { | if (window.opener.gFindBar.mFindMode == FIND_NORMAL) { | function BrowserStartup(){ gBrowser = document.getElementById("content"); window.tryToClose = WindowIsClosing; var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.argument... |
openFindBar(); | gFindBar.openFindBar(); | function BrowserStartup(){ gBrowser = document.getElementById("content"); window.tryToClose = WindowIsClosing; var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.argument... |
if (!gIsLoadingBlank) prepareForStartup(); | prepareForStartup(); | function BrowserStartup(){ gBrowser = document.getElementById("content"); window.tryToClose = WindowIsClosing; var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments[0]) uriToLoad = window.arguments[0]; gIsLoadingBlank = uriToLo... |
loadURI(uriToLoad, window.arguments[2], window.arguments[3] || null); | loadURI(uriToLoad, window.arguments[2], window.arguments[3] || null, window.arguments[4] || false); | function BrowserStartup(){ gBrowser = document.getElementById("content"); window.tryToClose = WindowIsClosing; var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments[0]) uriToLoad = window.arguments[0]; gIsLoadingBlank = uriToLo... |
var cmd = box.getAttribute("sidebarcommand"); if (cmd) { gMustLoadSidebar = true; box.hidden = false; sidebarSplitter = document.getElementById("sidebar-splitter"); sidebarSplitter.hidden = false; document.getElementById(cmd).setAttribute("checked", "true"); | var commandID = box.getAttribute("sidebarcommand"); if (commandID) { var command = document.getElementById(commandID); if (command) { gMustLoadSidebar = true; box.hidden = false; sidebarSplitter = document.getElementById("sidebar-splitter"); sidebarSplitter.hidden = false; command.setAttribute("checked", "true"); } els... | function BrowserStartup(){ gBrowser = document.getElementById("content"); window.tryToClose = WindowIsClosing; var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.argument... |
if (makeURL(uriToLoad).schemeIs("chrome")) { | if (makeURI(uriToLoad).schemeIs("chrome")) { | function BrowserStartup(){ gBrowser = document.getElementById("content"); window.tryToClose = WindowIsClosing; var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.argument... |
if (window.opener && !window.opener.closed) { | if (window.opener && !window.opener.closed && window.opener.gFindBar) { | function BrowserStartup(){ gBrowser = document.getElementById("content"); window.tryToClose = WindowIsClosing; var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.argument... |
getWebNavigation().stop(); | try { getWebNavigation().stop(); } catch(ex) { } | function BrowserStop(){ getWebNavigation().stop();} |
FeedHandler.updateFeeds(); | function BrowserToolboxCustomizeDone(aToolboxChanged){ // Update global UI elements that may have been added or removed if (aToolboxChanged) { gURLBar = document.getElementById("urlbar"); gProxyButton = document.getElementById("page-proxy-button"); gProxyFavIcon = document.getElementById("page-proxy-favicon"... | |
var reloadButton = document.getElementById("reload-button"); if (reloadButton) { reloadButton.disabled = document.getElementById("Browser:Reload").getAttribute("disabled") == "true"; } | function BrowserToolboxCustomizeDone(aToolboxChanged){ // Update global UI elements that may have been added or removed if (aToolboxChanged) { gURLBar = document.getElementById("urlbar"); gProxyButton = document.getElementById("page-proxy-button"); gProxyFavIcon = document.getElementById("page-proxy-favicon"... | |
gURLBar.value = url; | gURLBar.value = url == "about:blank" ? "" : url; | function BrowserToolboxCustomizeDone(aToolboxChanged){#ifdef TOOLBAR_CUSTOMIZATION_SHEET document.getElementById("customizeToolbarSheetBox").hidden = true;#endif // Update global UI elements that may have been added or removed if (aToolboxChanged) { gURLBar = document.getElementById("urlbar"); gURLBarContainer... |
var bm = document.getElementById("bookmarks-menu"); if (bm) bm.controllers.appendController(BookmarksMenuController); | function BrowserToolboxCustomizeDone(aToolboxChanged){ // Update global UI elements that may have been added or removed if (aToolboxChanged) { gURLBar = document.getElementById("urlbar"); gProxyButton = document.getElementById("page-proxy-button"); gProxyFavIcon = document.getElementById("page-proxy-favicon"... | |
document.getElementById("uizoomplusitem").focus(); document.getElementById("uizoomminusitem").focus(); | function BrowserUIResetZoomMinus() { var currentUILevel=gPref.getIntPref("browser.display.zoomui"); currentUILevel-=3; gPref.setIntPref("browser.display.zoomui", currentUILevel); syncUIZoom();} | |
document.getElementById("uizoomminusitem").focus(); document.getElementById("uizoomplusitem").focus(); | function BrowserUIResetZoomPlus() { var currentUILevel=gPref.getIntPref("browser.display.zoomui"); currentUILevel+=3; gPref.setIntPref("browser.display.zoomui", currentUILevel); syncUIZoom();} | |
document.getElementById("toolbar-view").collapsed=!document.getElementById("toolbar-view").collapsed; | document.getElementById("toolbar-view").collapsed=!document.getElementById("toolbar-view").collapsed; if(document.getElementById("toolbar-view").collapsed && document.getElementById("command_ViewOptions").getAttribute("checked")=="true") { document.getElementById("command_ViewOptions").setAttribute("checked","false");... | function BrowserViewOptions() { document.getElementById("toolbar-view").collapsed=!document.getElementById("toolbar-view").collapsed;} |
var docCharset = "charset=" + focusedWindow.document.characterSet; | dump("focusedWindow = " + focusedWindow + "\n"); if (focusedWindow) var docCharset = "charset=" + focusedWindow.document.characterSet; | function BrowserViewSource(){ var focusedWindow = document.commandDispatcher.focusedWindow; if (focusedWindow == window) focusedWindow = _content; var docCharset = "charset=" + focusedWindow.document.characterSet; //now try to open a view-source window while inheriting the charset (if any) openDialog("chrome://... |
win = _content; | win = content; | function BrowserViewSourceOfDocument(aDocument){ var docCharset; var pageCookie; var webNav; // Get the document charset docCharset = "charset=" + aDocument.characterSet; // Get the nsIWebNavigation associated with the document try { var win; var ifRequestor; // Get the DOMWindow for the requested... |
var NumberOfChildElements = EventContainer.childNodes.length; for( i = 0; i < NumberOfChildElements; i++ ) | if( EventContainer ) | function buildEventBoxes(){ //remove all the old event boxes. var EventContainer = document.getElementById( "event-container-rows" ); var NumberOfChildElements = EventContainer.childNodes.length; for( i = 0; i < NumberOfChildElements; i++ ) { EventContainer.removeChild( EventContainer.lastChild ); }... |
EventContainer.removeChild( EventContainer.lastChild ); } | var NumberOfChildElements = EventContainer.childNodes.length; for( i = 0; i < NumberOfChildElements; i++ ) { EventContainer.removeChild( EventContainer.lastChild ); } | function buildEventBoxes(){ //remove all the old event boxes. var EventContainer = document.getElementById( "event-container-rows" ); var NumberOfChildElements = EventContainer.childNodes.length; for( i = 0; i < NumberOfChildElements; i++ ) { EventContainer.removeChild( EventContainer.lastChild ); }... |
var Start = gAllEvents.length - 10; if( Start < 0 ) Start = 0; for( var i = Start; i < gAllEvents.length; i++ ) { createAlarmBox( gAllEvents[i] ); } if( gAllEvents.length > 10 ) { var TooManyDesc = document.getElementById( "too-many-alarms-description" ); TooManyDesc.removeAttribute( "collapsed" ); TooManyDesc.setA... | function buildEventBoxes(){ //remove all the old event boxes. var EventContainer = document.getElementById( "event-container-rows" ); var NumberOfChildElements = EventContainer.childNodes.length; for( i = 0; i < NumberOfChildElements; i++ ) { EventContainer.removeChild( EventContainer.lastChild ); }... | |
var Start = gAllEvents.length - 10; if( Start < 0 ) Start = 0; for( var i = Start; i < gAllEvents.length; i++ ) { createAlarmBox( gAllEvents[i] ); } if( gAllEvents.length > 10 ) { var TooManyDesc = document.getElementById( "too-many-alarms-description" ); TooManyDesc.removeAttribute( "collapsed" ); TooManyDesc.setA... | function buildEventBoxes(){ //remove all the old event boxes. var EventContainer = document.getElementById( "event-container-rows" ); var NumberOfChildElements = EventContainer.childNodes.length; for( i = 0; i < NumberOfChildElements; i++ ) { EventContainer.removeChild( EventContainer.lastChild ); }... | |
var feeds = this.harvestFeeds(feeds); | buildFeedList: function(menuPopup) { var feeds = gBrowser.selectedBrowser.feeds; if (feeds == null) { // XXX hack -- menu opening depends on setting of an "open" // attribute, and the menu refuses to open if that attribute is // set (because it thinks it's already open). onpopupshowing gets ... | |
var builtItemValue = builtItem ? builtItem.getAttribute("value") : null; | buildFontList: function (aLanguage, aFontType, aMenuList) { // Reset the list while (aMenuList.hasChildNodes()) aMenuList.removeChild(aMenuList.firstChild); var defaultFont = null; // Load Font Lists var fonts = this.enumerator.EnumerateFonts(aLanguage, aFontType, { } ); if (fonts.length ... | |
if (this._allFonts[i] != builtItem.getAttribute("value")) { | if (this._allFonts[i] != builtItemValue) { | buildFontList: function (aLanguage, aFontType, aMenuList) { // Reset the list while (aMenuList.hasChildNodes()) aMenuList.removeChild(aMenuList.firstChild); var defaultFont = null; // Load Font Lists var fonts = this.enumerator.EnumerateFonts(aLanguage, aFontType, { } ); if (fonts.length ... |
else | else { | buildFontList: function (aLanguage, aFontType, aMenuList) { // Reset the list while (aMenuList.hasChildNodes()) aMenuList.removeChild(aMenuList.firstChild); var defaultFont = null; // Load Font Lists var fonts = this.enumerator.EnumerateFonts(aLanguage, aFontType, { } ); if (fonts.length ... |
builtItemValue = builtItem ? builtItem.getAttribute("value") : null; } | buildFontList: function (aLanguage, aFontType, aMenuList) { // Reset the list while (aMenuList.hasChildNodes()) aMenuList.removeChild(aMenuList.firstChild); var defaultFont = null; // Load Font Lists var fonts = this.enumerator.EnumerateFonts(aLanguage, aFontType, { } ); if (fonts.length ... | |
var label = strings.getString("updates_checkForUpdates"); | function buildHelpMenu(){ var updates = Components.classes["@mozilla.org/updates/update-service;1"]. getService(Components.interfaces.nsIApplicationUpdateService); var um = Components.classes["@mozilla.org/updates/update-manager;1"]. getService(Components.interfaces.nsIUpdateManager); // Disabl... | |
if (updates.isDownloading) { if (activeUpdate.name) { label = strings.getFormattedString("updates_downloadingUpdates", [activeUpdate.name]); } else label = strings.getString("updates_downloadingUpdatesFallback"); } else { if (activeUpdate.name) { label = strings.getFormattedString("updates_resumeDownloading", [activeUp... | switch (activeUpdate.state) { case "downloading": key = updates.isDownloading ? "downloading" : "resume"; break; case "pending": key = "pending"; break; | function buildHelpMenu(){ var updates = Components.classes["@mozilla.org/updates/update-service;1"]. getService(Components.interfaces.nsIApplicationUpdateService); var um = Components.classes["@mozilla.org/updates/update-manager;1"]. getService(Components.interfaces.nsIUpdateManager); // Disabl... |
checkForUpdates.label = label; | checkForUpdates.label = getStringWithUpdateName("updatesItem_" + key); | function buildHelpMenu(){ var updates = Components.classes["@mozilla.org/updates/update-service;1"]. getService(Components.interfaces.nsIApplicationUpdateService); var um = Components.classes["@mozilla.org/updates/update-manager;1"]. getService(Components.interfaces.nsIUpdateManager); // Disabl... |
ClearHTMLInputWidgets(); | function BuildHTMLAttributeNameList(){ ClearMenulist(gDialog.AddHTMLAttributeNameInput); var elementName = gElement.localName.toLowerCase(); var attNames = gHTMLAttr[elementName]; if (attNames && attNames.length) { var menuitem; for (var i = 0; i < attNames.length; i++) { var name = attNames[i]; ... | |
var sep = document.createElementNS("http: | var sep = document.createElementNS(XUL_NS, "menuseparator"); | function BuildHTMLAttributeNameList(){ ClearMenulist(gDialog.AddHTMLAttributeNameInput); var elementName = gElement.localName.toLowerCase(); var attNames = gHTMLAttr[elementName]; if (attNames && attNames.length) { var menuitem; for (var i = 0; i < attNames.length; i++) { var name = attNames[i]; ... |
name = name.replace(/[!^#%$_]/g, ""); | name = name.replace(/[!^#%$_+]/g, ""); | function BuildHTMLAttributeNameList(){ ClearMenulist(dialog.AddHTMLAttributeNameInput); var elementName = gElement.localName.toLowerCase(); var attNames = gHTMLAttr[elementName]; if (attNames && attNames.length) { var menuitem; for (var i = 0; i < attNames.length; i++) { var name = attNames[i]; ... |
menuitem.setAttribute("forceSignedInteger", forceSignedInteger ? "true" : ""); | function BuildHTMLAttributeNameList(){ ClearMenulist(dialog.AddHTMLAttributeNameInput); var elementName = gElement.localName.toLowerCase(); var attNames = gHTMLAttr[elementName]; if (attNames && attNames.length) { var menuitem; for (var i = 0; i < attNames.length; i++) { var name = attNames[i]; ... | |
sep = document.createElementNS("http: | var sep = document.createElementNS("http: | function BuildHTMLAttributeNameList(){ ClearMenulist(dialog.AddHTMLAttributeNameInput); var elementName = gElement.localName.toLowerCase(); var attNames = gHTMLAttr[elementName]; if (attNames && attNames.length) { var forceOneChar = false; var forceInteger = false; for (var i = 0; i < attNames.length; i... |
forceIntOrPercent = name.indexOf("%") >= 0; | var forceIntOrPercent = name.indexOf("%") >= 0; | function BuildHTMLAttributeNameList(){ ClearMenulist(dialog.AddHTMLAttributeNameInput); var elementName = gElement.localName.toLowerCase(); var attNames = gHTMLAttr[elementName]; if (attNames && attNames.length) { var forceOneChar = false; var forceInteger = false; for (var i = 0; i < attNames.length; i... |
gDialog.AddJSEAttributeNameList.focus(); | function BuildJSEAttributeNameList(){ ClearMenulist(gDialog.AddJSEAttributeNameList); // Get events specific to current element var elementName = gElement.localName.toLowerCase(); if (elementName in gJSAttr) { var attNames = gJSAttr[elementName]; var i; var popup; var sep; if (attNames && attNames... | |
var attNames = gJSAttr[gElement.localName.toLowerCase()]; var i; var popup; var sep; | var elementName = gElement.localName.toLowerCase(); if (elementName in gJSAttr) { var attNames = gJSAttr[elementName]; var i; var popup; var sep; | function BuildJSEAttributeNameList(){ ClearMenulist(dialog.AddJSEAttributeNameList); // Get events specific to current element var attNames = gJSAttr[gElement.localName.toLowerCase()]; var i; var popup; var sep; if (attNames && attNames.length) { for (i = 0; i < attNames.length; i++) AppendStringToMen... |
if (attNames && attNames.length) { for (i = 0; i < attNames.length; i++) AppendStringToMenulist(dialog.AddJSEAttributeNameList, attNames[i]); | if (attNames && attNames.length) { if (attNames[0] == "noJSEvents") { var tab = document.getElementById("tabJSE"); if (tab) tab.parentNode.removeChild(tab); | function BuildJSEAttributeNameList(){ ClearMenulist(dialog.AddJSEAttributeNameList); // Get events specific to current element var attNames = gJSAttr[gElement.localName.toLowerCase()]; var i; var popup; var sep; if (attNames && attNames.length) { for (i = 0; i < attNames.length; i++) AppendStringToMen... |
popup = dialog.AddJSEAttributeNameList.firstChild; if (popup) { sep = document.createElementNS("http: if (sep) popup.appendChild(sep); } | return; } for (i = 0; i < attNames.length; i++) AppendStringToMenulist(dialog.AddJSEAttributeNameList, attNames[i]); popup = dialog.AddJSEAttributeNameList.firstChild; if (popup) { sep = document.createElementNS("http: if (sep) popup.appendChild(sep); } } | function BuildJSEAttributeNameList(){ ClearMenulist(dialog.AddJSEAttributeNameList); // Get events specific to current element var attNames = gJSAttr[gElement.localName.toLowerCase()]; var i; var popup; var sep; if (attNames && attNames.length) { for (i = 0; i < attNames.length; i++) AppendStringToMen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.