Closed
Bug 306808
Opened 19 years ago
Closed 19 years ago
modal dialog after window.open() stops script execution silently in single window mode
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 304442
People
(Reporter: sync2d, Unassigned)
References
()
Details
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b4) Gecko/20050901 Firefox/1.0+
In single window mode, opening a modal dialog (alert, prompt, etc.)
after window.open() stops execution of the running script silently.
Steps:
1. load javascript: open(); alert("one"); alert("two");
2. (a new tab and the alert dialog with the message "one" open.)
3. close the alert dialog.
When single window mode is disabled, you see the alert dialog with the message
"two" after step 3. But when single window mode is enabled, you will not see it.
Comment 1•19 years ago
|
||
I can not reproduce the problem. Both alerts appears, one after the other. I get this exception though in the js console: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowInternal.focus]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://global/content/bindings/tabbrowser.xml :: setFocus :: line 726" data: no] which I do not get when single window mode is disabled. Deer Park alpha 2 rv: 1.8b4 build 20050901 under XP Pro SP2 here.
I discovered that this bug appears only in the specific condition. [CASE-1] Steps: 1. load this bug. 2. click the "URL" link. Results: It always works as expected. I see the both alerts. Also, I see an error in the JS console. Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowInternal.focus]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://global/content/bindings/tabbrowser.xml :: setFocus :: line 726" data: no] [CASE-2] Steps: 1. load this bug. 2. bookmark the "URL" link. 3. open the bookmark created in the step 2 from the bookmark menu. in other words, execute the script as a bookmarklet. Alternative steps: 1. load this bug. 2. copy the location of the "URL" link. then, paste it into the location bar. 3. press the enter key. Results: I see only the first alert if single window mode is enabled.
Reproducible with Mozilla 1.8b1, Deer Park a2 and SeaMonkey/20050902 but I only see the error message (from Case-1) with Deer Park a2.
Comment 4•19 years ago
|
||
*** This bug has been marked as a duplicate of 304442 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
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
•