Investigate other possible uses for WindowTracker.topNormalWindow on desktop
Categories
(WebExtensions :: Frontend, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: bsilverberg, Unassigned)
References
(Blocks 1 open bug)
Details
Reporter | ||
Updated•8 years ago
|
Updated•7 years ago
|
Updated•3 years ago
|
Comment 1•4 months ago
|
||
Bug 1415913 ensures that new tabs are not unknowingly created in windows of type "popup". I think that we should extend this restriction to be more strict, and even disallow new tabs in windows of type "popup". Bug 1960944 is an example of a bug that happens when a popup unexpectedly gets a new tab. It looks like we are turning a popup window in a light version of a tabbed browser.
Internally, a window of type "popup" becomes a dialog. When I tested on Linux, the window is on top of all browser windows.
If we want to disallow adopting tabs in such windows, we should add a check to all extension APIs that may put a tab in an arbitrary window:
tabs.create()
tabs.duplicate()
tabs.group()
tabs.move()
tabGroups.move()
- being added in bug 1961660windows.create()
- maybe? this can adopt an existing tab when passedtabId
.
Additionally, we should audit for uses of windowTracker.topWindow
internally (as reported in this bug) and check if we make sure that the implementations don't spawn a tab in the given window.
Description
•