Bug 1598516 - Remove isLocalAboutURI since all about: URIs are local. r=Gijs

With DocumentChannel, the 'URI' of the channel that we proxy for RemoteWebProgress doesn't have the resolved URI, and reports the about: version instead.

All about: URIs are local these days, so we can just check for that scheme directly, and simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D54251
This commit is contained in:
Matt Woodrow
2019-12-03 06:20:51 +00:00
parent 40f324dd16
commit d19ce74b4f
5 changed files with 4 additions and 95 deletions

View File

@@ -374,9 +374,7 @@ class AsyncTabSwitcher {
// determined by the busy state on the tab element and checking
// if the loaded URI is local.
let isBusy = this.requestedTab.hasAttribute("busy");
let isLocalAbout = this.tabbrowser.isLocalAboutURI(
requestedBrowser.currentURI
);
let isLocalAbout = requestedBrowser.currentURI.schemeIs("about");
let hasSufficientlyLoaded = !isBusy && !isLocalAbout;
let fl = requestedBrowser.frameLoader;