summaryrefslogtreecommitdiff
path: root/xpfe
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-01-11 15:34:17 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-08 00:55:37 +0200
commit56d9003017a94e7619f98e76b04929115514d08c (patch)
tree952bd79e8cb7cfa2d071b6dbf13d95caed9d24fa /xpfe
parente49b80dba7393d5baff831251f7981bc21324d81 (diff)
downloaduxp-56d9003017a94e7619f98e76b04929115514d08c.tar.gz
Issue #953 - Neuter the user-facing controls for e10s
This should prevent people using a massive footgun that would blow off their entire legs. Requires appropriate FE changes.
Diffstat (limited to 'xpfe')
-rw-r--r--xpfe/appshell/nsAppShellService.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/xpfe/appshell/nsAppShellService.cpp b/xpfe/appshell/nsAppShellService.cpp
index 868bd78123..427428fdf9 100644
--- a/xpfe/appshell/nsAppShellService.cpp
+++ b/xpfe/appshell/nsAppShellService.cpp
@@ -699,15 +699,11 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
// Enforce the Private Browsing autoStart pref first.
bool isPrivateBrowsingWindow =
Preferences::GetBool("browser.privatebrowsing.autostart");
- bool isUsingRemoteTabs = mozilla::BrowserTabsRemoteAutostart();
if (aChromeMask & nsIWebBrowserChrome::CHROME_PRIVATE_WINDOW) {
// Caller requested a private window
isPrivateBrowsingWindow = true;
}
- if (aChromeMask & nsIWebBrowserChrome::CHROME_REMOTE_WINDOW) {
- isUsingRemoteTabs = true;
- }
nsCOMPtr<mozIDOMWindowProxy> domWin = do_GetInterface(aParent);
nsCOMPtr<nsIWebNavigation> webNav = do_GetInterface(domWin);
@@ -720,17 +716,12 @@ nsAppShellService::JustCreateTopWindow(nsIXULWindow *aParent,
isPrivateBrowsingWindow = parentContext->UsePrivateBrowsing();
}
- if (parentContext) {
- isUsingRemoteTabs = parentContext->UseRemoteTabs();
- }
-
nsCOMPtr<mozIDOMWindowProxy> newDomWin =
do_GetInterface(NS_ISUPPORTS_CAST(nsIBaseWindow*, window));
nsCOMPtr<nsIWebNavigation> newWebNav = do_GetInterface(newDomWin);
nsCOMPtr<nsILoadContext> thisContext = do_GetInterface(newWebNav);
if (thisContext) {
thisContext->SetPrivateBrowsing(isPrivateBrowsingWindow);
- thisContext->SetRemoteTabs(isUsingRemoteTabs);
}
window.forget(aResult);