Closed
Bug 664586
Opened 13 years ago
Closed 12 years ago
alert on unload parents modal dialog to different tab
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: Gavin, Unassigned)
References
Details
(Keywords: sec-moderate, Whiteboard: [sg:moderate spoof])
STR: 1) Open multiple tabs. Load data:text/html,<body onunload="alert('test')"> in one. 2) Close that tab. Result: alert parented to newly selected (completely unrelated) tab Expected: no alert Marking sec-sensitive since there is some spoofing risk here...
Reporter | ||
Comment 1•13 years ago
|
||
I think perhaps the "if we can't do a tab-modal prompt" fallback in ModalPrompter.openPrompt needs to to catch this case? Or maybe we just need to remove the XXX fallback to activeWindow in openModalWindow...
Reporter | ||
Comment 2•13 years ago
|
||
Chrome has also been investigating disallowing prompts from unload/beforeunload/etc - discussing of that on #whatwg is what prompted discovery of this.
Comment 3•13 years ago
|
||
Dolske, I think this is a regression from the modal dialog work you did, can you please have a look?
Assignee: nobody → dolske
Whiteboard: [sg:moderate spoof]
Justin - any chance you can look at this soon or recommend another owner?
![]() |
||
Updated•12 years ago
|
Keywords: sec-moderate
Reporter | ||
Comment 5•12 years ago
|
||
This was fixed by bug 391834.
Assignee: dolske → nobody
Group: core-security
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•