Closed
Bug 273984
Opened 20 years ago
Closed 19 years ago
window.open(url, "_content") clobbers foreground tabs
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Depends on 1 open bug)
Details
(Keywords: fixed1.8.1, Whiteboard: [window targeting])
Attachments
(1 file)
89 bytes,
text/html
|
Details |
STEPS TO REPRODUCE:
1) Make sure your tabs open in the background
2) Open attached testcase in a new tab
EXPECTED RESULTS:
The new tab says "I killed the old content" while the old tab has the bug page.
ACTUAL RESULT:
The new tab is blank, while the old tab says "I killed the old content" and the
bug page is gone.
This is akin to bug 265987. The problem is that _content and _main resolve to
the "content-primary" docshell, but for tabbrowser that's the currently visible
tab. Changes in bug 103638 may impose a cross-site security check here, which
will just make the call fail instead of doing what it's supposed to do.
The "right" fix would be to make _content and _main resolution do "the right
thing" when called from inside a webpage. That means it should end up with the
equivalent of _top.
The question then is how to tell "when called from inside a webpage" apart from
other cases...
In general, perhaps nsIDocShellTreeOwner should have a list of content-primary
shells, not just one? Or some other api to get all "main browser" shells?
Assignee | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
The sidebar needs to be able to use _content to open links in the current tab...
Assignee | ||
Comment 3•20 years ago
|
||
Yes, I'm aware of that. That's what makes this "when called inside a webpage"
thing hard... ;)
Assignee | ||
Updated•19 years ago
|
Whiteboard: [window targeting]
Assignee | ||
Updated•19 years ago
|
Assignee | ||
Updated•19 years ago
|
Assignee | ||
Updated•19 years ago
|
Assignee: general → bzbarsky
Assignee | ||
Comment 4•19 years ago
|
||
Fixed on trunk and 1.8 branch by checkin for bug 277971.
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•