mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 15:34:01 +00:00
Bug 1628117 - Remove BrowserApp.tabs. r=lina,snorp
Differential Revision: https://phabricator.services.mozilla.com/D70454 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
78887d92ec
commit
aff542f7f1
@ -199,13 +199,8 @@ PushRecord.prototype = {
|
||||
if (window.closed || PrivateBrowsingUtils.isWindowPrivate(window)) {
|
||||
continue;
|
||||
}
|
||||
// `gBrowser` on Desktop; `BrowserApp` on Fennec.
|
||||
let tabs = window.gBrowser
|
||||
? window.gBrowser.tabs
|
||||
: window.BrowserApp.tabs;
|
||||
for (let tab of tabs) {
|
||||
// `linkedBrowser` on Desktop; `browser` on Fennec.
|
||||
let tabURI = (tab.linkedBrowser || tab.browser).currentURI;
|
||||
for (let tab of window.gBrowser.tabs) {
|
||||
let tabURI = tab.linkedBrowser.currentURI;
|
||||
if (tabURI.prePath == this.uri.prePath) {
|
||||
return true;
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ class BrowserAppShim {
|
||||
);
|
||||
this.selectedBrowser = window.browser;
|
||||
this.selectedTab = new Tab(tabId, this.selectedBrowser);
|
||||
this.tabs = [this.selectedTab];
|
||||
}
|
||||
|
||||
getTabForBrowser(aBrowser) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user