Closed Bug 359467 Opened 19 years ago Closed 4 years ago

window.open() without URL does not create a document when it creates a tab (rather that a window)

Categories

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

x86
Windows XP
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

Steps to reproduce: 1. Make sure you have "New pages should open in:" set to "A new tab" (Tools > Options > Tabs). 2. javascript:d=open().document; void d.body.appendChild(d.createTextNode("PASS")); Result: a blank, gray tab opens. Expected: the new tab should have a white background and the text "PASS". This works fine if the bookmarklet opens a new window instead of a new tab. As a result, many bookmarklets that open new windows and populate them using DOM 2 are broken for users who make window.open() open tabs instead. Bookmarklets frequently don't pass "about:blank" because some versions of Opera don't like "about:blank" or to conserve space in order to work in IE 6 (which limits bookmarklets to about 500 characters). This happens in today's trunk build trunk and in Firefox 2. It also happens in a Firefox 1.5.0.x branch nightly from a few days ago (which has different prefs and slightly different behavior). So it's not a recent trunk-only regression.
Assignee: general → nobody
QA Contact: ian → general
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5

Hello! I have tried to reproduce the issue with the latest versions of Firefox 93.0 on windows 10
Marking this as Resolved > Worksforme since the issue no longer is reproducible.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.