diff options
author | Moonchild <moonchild@palemoon.org> | 2022-01-11 15:34:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-08 00:55:37 +0200 |
commit | 56d9003017a94e7619f98e76b04929115514d08c (patch) | |
tree | 952bd79e8cb7cfa2d071b6dbf13d95caed9d24fa /embedding | |
parent | e49b80dba7393d5baff831251f7981bc21324d81 (diff) | |
download | uxp-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 'embedding')
-rw-r--r-- | embedding/components/windowwatcher/nsWindowWatcher.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/embedding/components/windowwatcher/nsWindowWatcher.cpp b/embedding/components/windowwatcher/nsWindowWatcher.cpp index 7839228cfc..bd931233bc 100644 --- a/embedding/components/windowwatcher/nsWindowWatcher.cpp +++ b/embedding/components/windowwatcher/nsWindowWatcher.cpp @@ -1883,19 +1883,7 @@ nsWindowWatcher::CalculateChromeFlagsForParent(mozIDOMWindowProxy* aParent, chromeFlags |= WinHasOption(aFeatures, "non-private", 0, &presenceFlag) ? nsIWebBrowserChrome::CHROME_NON_PRIVATE_WINDOW : 0; - // Determine whether the window should have remote tabs. - bool remote = BrowserTabsRemoteAutostart(); - - if (remote) { - remote = !WinHasOption(aFeatures, "non-remote", 0, &presenceFlag); - } else { - remote = WinHasOption(aFeatures, "remote", 0, &presenceFlag); - } - - if (remote) { - chromeFlags |= nsIWebBrowserChrome::CHROME_REMOTE_WINDOW; - } - + // Check if it's a popup window chromeFlags |= WinHasOption(aFeatures, "popup", 0, &presenceFlag) ? nsIWebBrowserChrome::CHROME_WINDOW_POPUP : 0; |