Closed
Bug 147431
Opened 22 years ago
Closed 22 years ago
window.open fails if page is not loaded
Categories
(Core :: Security: CAPS, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 101190
People
(Reporter: M.Hankus, Assigned: security-bugs)
References
()
Details
Mozilla fails to create a new window if a page containing window.open has not finished loading. Steps to reproduce: 1. open above url 2. click the link -script will inform you that mozilla failed to create window 3. wait until page load will finish (about 10s) 4. click the link again (page will open) expected results: script should not be started before pageload is finished. If you made some other assumptions, mark it as invalid.
Comment 1•22 years ago
|
||
Let me guess. You have "open unrequested windows" turned off, no? This prevents window.open() calls before the end of the document load...
Reporter | ||
Comment 2•22 years ago
|
||
You are right. I did not know that it works that way. It is called "open unrequested winows", but window.open called during onclick event is requested by user. You can mark it as INVALID or as a FEATURE REQUEST to open windows in onclick event even when "open unrequested windows" is not checked.
Comment 3•22 years ago
|
||
To CAPS. We should definitely have a better way of detecting this case and opening the window.
Assignee: jst → mstoltz
Status: UNCONFIRMED → NEW
Component: DOM Level 0 → Security: CAPS
Ever confirmed: true
QA Contact: desale → bsharma
Comment 4•22 years ago
|
||
*** This bug has been marked as a duplicate of 101190 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•