--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -2279,43 +2279,16 @@ function BrowserOpenTab(event) {
where = "tab";
break;
}
}
openUILinkIn(BROWSER_NEW_TAB_URL, where, { relatedToCurrent });
}
-/* Called from the openLocation dialog. This allows that dialog to instruct
- its opener to open a new window and then step completely out of the way.
- Anything less byzantine is causing horrible crashes, rather believably,
- though oddly only on Linux. */
-function delayedOpenWindow(chrome, flags, href, postData) {
- // The other way to use setTimeout,
- // setTimeout(openDialog, 10, chrome, "_blank", flags, url),
- // doesn't work here. The extra "magic" extra argument setTimeout adds to
- // the callback function would confuse gBrowserInit.onLoad() by making
- // window.arguments[1] be an integer instead of null.
- setTimeout(function() { openDialog(chrome, "_blank", flags, href, null, null, postData); }, 10);
-}
-
-/* Required because the tab needs time to set up its content viewers and get the load of
- the URI kicked off before becoming the active content area. */
-function delayedOpenTab(aUrl, aReferrer, aCharset, aPostData, aAllowThirdPartyFixup) {
- gBrowser.loadOneTab(aUrl, {
- referrerURI: aReferrer,
- charset: aCharset,
- postData: aPostData,
- inBackground: false,
- allowThirdPartyFixup: aAllowThirdPartyFixup,
- // Bug 1367168: only use systemPrincipal till we can remove that function
- triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
- });
-}
-
var gLastOpenDirectory = {
_lastDir: null,
get path() {
if (!this._lastDir || !this._lastDir.exists()) {
try {
this._lastDir = gPrefService.getComplexValue("browser.open.lastDir",
Ci.nsIFile);
if (!this._lastDir.exists())
@@ -3521,25 +3494,16 @@ var PrintPreviewListener = {
SidebarUI.show(this._sidebarCommand);
},
activateBrowser(browser) {
gBrowser.activateBrowserForPrintPreview(browser);
},
};
-function getMarkupDocumentViewer() {
- return gBrowser.markupDocumentViewer;
-}
-
-// This function is obsolete. Newer code should use <tooltip page="true"/> instead.
-function FillInHTMLTooltip(tipElement) {
- document.getElementById("aHTMLTooltip").fillInPageTooltip(tipElement);
-}
-
var browserDragAndDrop = {
canDropLink: aEvent => Services.droppedLinkHandler.canDropLink(aEvent, true),
dragOver(aEvent) {
if (this.canDropLink(aEvent)) {
aEvent.preventDefault();
}
},
@@ -6316,30 +6280,16 @@ var gPageStyleMenu = {
},
disableStyle() {
let mm = gBrowser.selectedBrowser.messageManager;
mm.sendAsyncMessage("PageStyle:Disable");
},
};
-/* Legacy global page-style functions */
-var stylesheetFillPopup = gPageStyleMenu.fillPopup.bind(gPageStyleMenu);
-function stylesheetSwitchAll(contentWindow, title) {
- // We ignore the contentWindow param. Add-ons don't appear to use
- // it, and it's difficult to support in e10s (where it will be a
- // CPOW).
- gPageStyleMenu.switchStyleSheet(title);
-}
-function setStyleDisabled(disabled) {
- if (disabled)
- gPageStyleMenu.disableStyle();
-}
-
-
var LanguageDetectionListener = {
init() {
window.messageManager.addMessageListener("Translation:DocumentState", msg => {
Translation.documentStateReceived(msg.target, msg.data);
});
}
};