Closed Bug 1792164 Opened 2 years ago Closed 2 years ago

Make ctrlTab less vulnerable to future unusual or one-off tab behavior

Categories

(Firefox :: Tabbed Browser, task, P3)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: aminomancer, Assigned: aminomancer)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In bug 1791770, a user reported an issue with add-ons unhiding the Firefox View tab. Because ctrlTab adds tabs to the list when they are unhidden, without checking if they're already in the list, add-ons could cause two previews of Firefox View to be added to the ctrlTab panel. Then, upon closing the tab, only one preview would get removed, leaving a preview that relies on broken references to a discarded browser.

This has been fixed by other means more specific to Firefox View, but because it's likely to only be triggered by specific add-ons, there's a risk that a similar problem may crop up in the future and go undetected by tests and contributors. So, it would be good to add some extra protection to make sure we can't add redundant previews to the ctrlTab panel.

We can just check that the tab isn't already in the list before adding it.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → shughes
Status: NEW → ASSIGNED
Attachment #9296528 - Attachment description: Bug 1792164 - Don't add tabs to ctrlTab panel if already present. r=dao → Bug 1792164 - Don't add redundant tabs to ctrlTab panel. r=dao
Pushed by shughes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/978c3d89d545
Don't add redundant tabs to ctrlTab panel. r=dao
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: