Open
Bug 1317691
Opened 9 years ago
Updated 2 years ago
Make aRelatedToCurrent / _lastRelatedTab deal with async-inited calls that open tabs
Categories
(Firefox :: Tabbed Browser, defect, P3)
Firefox
Tabbed Browser
Tracking
()
NEW
People
(Reporter: Gijs, Unassigned)
References
Details
Attachments
(1 obsolete file)
aRelatedToCurrent will use the tabbrowser's _lastRelatedTab, or the selected tab if no related tab is set, to insert new tabs directly next to the selected / "related" tab if set. This is what causes e.g. middle-clicking a number of links in succession to open next to each other (assuming they load in the background).
In principle, if the action that triggers this is async then it is possible for the actual openLinkIn / loadOneTab / addTab code to run after the selected/related tab has changed, causing the related/selected tab to not be the tab at which the action was started. To avoid this problem, we could make consumers pass in the related tab instead of relying on the related/selected tab to still be the same by the time the code runs. This would be similar to the fix in bug 1000458 that passed in the browser to use for a "current" openLinkIn load.
| Reporter | ||
Updated•9 years ago
|
Updated•9 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Attachment #9387267 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•