webNavigation.goBack()); ]]> webNavigation.goForward()); ]]> this.loadURIWithFlags(aURI, flags, aReferrerURI, aCharset)); ]]> this.webNavigation.loadURIWithOptions( aURI, aFlags, aReferrerURI, aReferrerPolicy, aPostData, null, null, aTriggeringPrincipal)); ]]> this.webNavigation.gotoIndex(aIndex)); ]]> null null null // Only useful for remote browsers. null null null null null null Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); null // see bug 63370 for details this._mStrBundle = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService) .createBundle("chrome://global/locale/browser.properties"); } return this._mStrBundle; ]]> { let self = this; this.messageManager.addMessageListener("PopupBlocking:ReplyGetBlockedPopupList", function replyReceived(msg) { self.messageManager.removeMessageListener("PopupBlocking:ReplyGetBlockedPopupList", replyReceived); resolve(msg.data.popupData); } ); }); ]]> null false true false false 0 ({ _startedLoadSinceLastUserTyping: false, startedLoad() { this._startedLoadSinceLastUserTyping = true; }, finishedLoad() { this._startedLoadSinceLastUserTyping = false; }, userTyped() { this._startedLoadSinceLastUserTyping = false; }, }) null false false null null null false 0 : --this._unselectedTabHoverMessageListenerCount == 0; break; case "Forms:ShowDropDown": { if (!this._selectParentHelper) { this._selectParentHelper = Cu.import("resource://gre/modules/SelectParentHelper.jsm", {}).SelectParentHelper; } let menulist = document.getElementById(this.getAttribute("selectmenulist")); menulist.menupopup.style.direction = data.direction; this._selectParentHelper.populate(menulist, data.options, data.selectedIndex, this._fullZoom, data.uaBackgroundColor, data.uaColor, data.uaSelectBackgroundColor, data.uaSelectColor, data.selectBackgroundColor, data.selectColor, data.selectTextShadow); this._selectParentHelper.open(this, menulist, data.rect, data.isOpenedViaTouch); break; } case "Forms:HideDropDown": { if (this._selectParentHelper) { let menulist = document.getElementById(this.getAttribute("selectmenulist")); this._selectParentHelper.hide(menulist, this); } break; } } return undefined; ]]> 10 false null null null false null null 8) { // need high color for transparency // Exclude second-rate platforms this._autoScrollPopup.setAttribute("transparent", !/BeOS|OS\/2/.test(navigator.appVersion)); // Enable translucency on Windows and Mac this._autoScrollPopup.setAttribute("translucent", /Win|Mac/.test(navigator.platform)); } this._autoScrollPopup.removeAttribute("hidden"); this._autoScrollPopup.setAttribute("noautofocus", "true"); this._autoScrollPopup.setAttribute("scrolldir", scrolldir); this._autoScrollPopup.addEventListener("popuphidden", this, true); this._autoScrollPopup.showPopup(document.documentElement, screenX, screenY, "popup", null, null); this._ignoreMouseEvents = true; this._scrolling = true; this._startX = screenX; this._startY = screenY; window.addEventListener("mousemove", this, true); window.addEventListener("mousedown", this, true); window.addEventListener("mouseup", this, true); window.addEventListener("DOMMouseScroll", this, true); window.addEventListener("contextmenu", this, true); window.addEventListener("keydown", this, true); window.addEventListener("keypress", this, true); window.addEventListener("keyup", this, true); ]]> this._AUTOSCROLL_SNAP || x < -this._AUTOSCROLL_SNAP) || (y > this._AUTOSCROLL_SNAP || y < -this._AUTOSCROLL_SNAP)) this._ignoreMouseEvents = false; break; } case "mouseup": case "mousedown": case "contextmenu": { if (!this._ignoreMouseEvents) { // Use a timeout to prevent the mousedown from opening the popup again. // Ideally, we could use preventDefault here, but contenteditable // and middlemouse paste don't interact well. See bug 1188536. setTimeout(() => this._autoScrollPopup.hidePopup(), 0); } this._ignoreMouseEvents = false; break; } case "DOMMouseScroll": { this._autoScrollPopup.hidePopup(); aEvent.preventDefault(); break; } case "popuphidden": { this._autoScrollPopup.removeEventListener("popuphidden", this, true); this.stopScroll(); break; } case "keydown": { if (aEvent.keyCode == aEvent.DOM_VK_ESCAPE) { // the escape key will be processed by // nsXULPopupManager::KeyDown and the panel will be closed. // So, don't consume the key event here. break; } // don't break here. we need to eat keydown events. } case "keypress": case "keyup": { // All keyevents should be eaten here during autoscrolling. aEvent.stopPropagation(); aEvent.preventDefault(); break; } } } ]]>