At https://searchfox.org/mozilla-central/rev/f118dae98073bc17efb8604a32abfcb7b4e05880/browser/base/content/browser.js#3566 can we sub out ```js for (let tab of gBrowser.selectedTabs) { ``` with ```js let tabs = gBrowser.selectedTabs; if (!tabs.length) { tabs = [gBrowser.selectedTab]; } ``` with a code comment explaining why this is necessary? I think that should fix the issue you describe.
Bug 1794474 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
At https://searchfox.org/mozilla-central/rev/f118dae98073bc17efb8604a32abfcb7b4e05880/browser/base/content/browser.js#3566 can we sub out ```js for (let tab of gBrowser.selectedTabs) { ``` with ```js let tabs = gBrowser.selectedTabs; if (!tabs.length) { tabs = [gBrowser.selectedTab]; } for (let tab of tabs) { ``` with a code comment explaining why this is necessary? I think that should fix the issue you describe.