Closed Bug 2086209 Opened 1 month ago Closed 8 days ago

Opening Tab Group in New Window Autoplays all tabs

Categories

(Firefox :: Tabbed Browser, defect, P1)

Firefox 159
defect
Points:
1

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
relnote-firefox --- 163+
firefox163 --- fixed

People

(Reporter: brunerce, Assigned: dgraham)

References

Details

Attachments

(1 external file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:159.0) Gecko/20100101 Firefox/159.0

Steps to reproduce

Create a new tab group with multiple youtube videos
Save and Close group
From Tab dropdown, right click to "Open Group in **New ** Window"
Note that this behavior will not reproduce if selecting "Open Group in This Window"

Actual results

All tabs will autoplay as if brought to the foreground

Expected results

Only the first/open tab in the group window should autoplay, matching the behavior when this tab group is opened in the current window

The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Tabbed Browser
Status: UNCONFIRMED → RESOLVED
Closed: 1 month ago
Duplicate of bug: 2065411
Resolution: --- → DUPLICATE

This changes the order of tab events as a result, ie. tabs.onDetached/onAttached now fire for the selected tab last when it isn't the group's last tab. Final tab order is unchanged. Claude pointed out while reviewing my code that this could impact extensions that track tab order through those events. I'm not familiar enough with extensions to know if anything relies on the old order, so flagging it for consideration!

Assignee: nobody → dgraham
Status: RESOLVED → REOPENED
No longer duplicate of bug: 2065411
Ever confirmed: true
Resolution: DUPLICATE → ---
See Also: → 2065411
Severity: -- → S3
Points: --- → 1
Priority: -- → P1
Pushed by dgraham@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8bc4f5bf3c15 https://hg.mozilla.org/integration/autoland/rev/e41579e9231f Adopt the selected tab last when moving a tab group to another window. r=tabbrowser-reviewers,sclements
Status: REOPENED → RESOLVED
Closed: 1 month ago → 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch

Did you want to nominate this for the Fx163 relnotes? If so, set the relnote-firefox flag to "?"
https://wiki.mozilla.org/Release_Management/Release_Notes_Nomination

Possible wording:

Fixed every tab in a tab group loading, and starting any media playing, when the group was opened in a new window.

Flags: needinfo?(dgraham)

Release Note Request (optional, but appreciated)
[Why is this notable]: Opening a saved tab group in a new window loaded every tab in the group at once, so any tabs with video or audio started playing together. Now only the selected tab loads, the same as when the group is opened in the current window.
[Affects Firefox for Android]: No
[Suggested wording]: Opening a saved tab group in a new window now loads only the selected tab, instead of loading every tab at once and playing any media in them.
[Links (documentation, blog post, etc)]: N/A

relnote-firefox: --- → ?
Flags: needinfo?(dgraham)

Added to the Fx163 relnotes.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: