Closed Bug 103597 Opened 23 years ago Closed 23 years ago

window.open() fails before page loads

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 101190

People

(Reporter: duvall, Assigned: jst)

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.4+) Gecko/20011007
BuildID:    20011007

My home page is a 150kB html file distilled from my bookmarks.  At the top of
the page, I have a link which points to a javascript function that opens a
handful of windows (the ones that I want to start my day off with), followed by
a window.close() (I'll attach this link).

Because of the size of the page, it takes a while to load.  If I click on this
link before the loading is complete, the window simply closes, not opening any
of the windows I wanted.  If I remove the window.close(), then I see the
javascript code in the location bar, and the main window simply has "null" in it.

Oddly, if I then view the source of that resultant page, I not only get the
source, but also the window in the window.open() call.

Am I simply abusing javascript here, or is this a real problem?

Reproducible: Always
Steps to Reproduce:
1. Put attached link at top of large html page.
2. Load page.
3. Before page finishes loading, click on the link.
Attached patch text of linkSplinter Review
Browser, not engine --> DOM Level 0
Assignee: rogerl → jst
Status: UNCONFIRMED → NEW
Component: Javascript Engine → DOM Level 0
Ever confirmed: true
QA Contact: pschwartau → desale
Danek, are you the hidden dom.disable_open_during_load pref to block pop-up 
ads?  If you are, this is a dup of bug 101190.
Yes, I do have that preference enabled; it probably is a dup.

*** This bug has been marked as a duplicate of 101190 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: