Skip to content

Commit e282189

Browse files
committed
šŸ› Fix issue where switching tabs while loading fired incorrect stateFlags
1 parent 6aa5201 commit e282189

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

ā€Žcomponents/tabs/BrowserTabs.sys.mjs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,18 +186,13 @@ BrowserTabs.prototype = {
186186
) {
187187
const browser = /** @type {ChromeBrowser} */ (tab.webContents);
188188

189-
const { STATE_START, STATE_STOP, STATE_IS_NETWORK } =
190-
Ci.nsIWebProgressListener;
191-
192189
this._callProgressListenerEvent(
193190
browser,
194191
"onStateChange",
195192
browser.webProgress,
196193
null,
197-
tab.progress && !this.isBusy
198-
? STATE_START | STATE_IS_NETWORK
199-
: STATE_STOP | STATE_IS_NETWORK,
200-
""
194+
listener.stateFlags,
195+
listener.status
201196
);
202197
}
203198
},

0 commit comments

Comments
Ā (0)