Remove fragile fast path.

master
Fedor 2019-12-25 15:45:08 +03:00
parent 0a97aa3c5a
commit 36cbeb4bd1
1 changed files with 0 additions and 11 deletions

View File

@ -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.