summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-04 11:40:18 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-04 11:40:18 +0000
commit7e39b2ecbdd5ca32a1aa3a75c1f439a5dc1fc2f1 (patch)
treee55b1b9044eb182a3be0ad9938b4db7445e28304
parent0a3409bbc85841c8282e014da5eed1b64477cece (diff)
downloadbasilisk-7e39b2ecbdd5ca32a1aa3a75c1f439a5dc1fc2f1.tar.gz
Issue MoonchildProductions/UXP#1252 - Remove fragile fast path.
This resolves MoonchildProductions/UXP#1252.
-rw-r--r--basilisk/base/content/tabbrowser.xml11
1 files changed, 0 insertions, 11 deletions
diff --git a/basilisk/base/content/tabbrowser.xml b/basilisk/base/content/tabbrowser.xml
index 85f9239..df83f67 100644
--- a/basilisk/base/content/tabbrowser.xml
+++ b/basilisk/base/content/tabbrowser.xml
@@ -371,17 +371,6 @@
<parameter name="aWindow"/>
<body>
<![CDATA[
- // When not using remote browsers, we can take a fast path by getting
- // directly from the content window to the browser without looping
- // over all browsers.
- if (!gMultiProcessBrowser) {
- let browser = aWindow.QueryInterface(Ci.nsIInterfaceRequestor)
- .getInterface(Ci.nsIWebNavigation)
- .QueryInterface(Ci.nsIDocShell)
- .chromeEventHandler;
- return this.getTabForBrowser(browser);
- }
-
for (let i = 0; i < this.browsers.length; i++) {
// NB: We use contentWindowAsCPOW so that this code works both
// for remote browsers as well. aWindow may be a CPOW.