Closed Bug 363433 Opened 19 years ago Closed 16 years ago

Window not opened

Categories

(Firefox :: Tabbed Browser, defect)

2.0 Branch
x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: giant1972, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; it; rv:1.8.1) Gecko/20061010 Firefox/2.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; it; rv:1.8.1) Gecko/20061010 Firefox/2.0 Using code I post Firefox2 open only the first window, not the window generated by the child one. (Previous version and IE all version open it). It seems a Javascript problem. Reproducible: Always Steps to Reproduce: 1. Create this html file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type='text/javascript' src='winbase.js'> </script> <title>Untitled</title> </head> <body> Main window <button onclick="printDich()">Click here</button> </body> </html> And this JScript file (winbase.js): function printDich() { var dich="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head><script type='text/javascript' src='winbase.js'></script><title>Untitled</title></head><body>Hi all. Open a new window<button onclick=\"printDich()\">Click here</button></body></html>"; var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf('mozilla/4.0') != -1){ windowPrn = window.open() windowPrn.document.open("Anteprima") windowPrn.document.writeln(dich) windowPrn.document.close() } if (ua.indexOf('mozilla/5.0') != -1){ windowPrn = window.open("","Anteprima") windowPrn.document.writeln(dich) windowPrn.document.close() } } 2. When you run the first one and click on the button, a wndow appear 3. Click on the button on the new window Actual Results: The click over the second window is not executed (no new window appears) Expected Results: Another window must appear No script error is given in the Console. Previous release goes well. It could be a regression bug. This bug is even with Firefox 2.0.01.
Attached file Main bug file
This is the main html file for test.
Attached file JScript file
This is the javascript file.
Severity: normal → major
Version: unspecified → 2.0 Branch
Got an Error in Error Console: Error: printDich is not defined Source File: https://bugzilla.mozilla.org/attachment.cgi?id=248239 Line: 1
Keywords: testcase
(In reply to comment #3) > Got an Error in Error Console: > Error: printDich is not defined > Source File: https://bugzilla.mozilla.org/attachment.cgi?id=248239 > Line: 1 > You must download both files (html and js), not click on it directly from the site of Bugzilla. Bye.
This bug was reported using a version of Firefox that security and stability updates are no longer provided for. All users are strongly encouraged to upgrade to Firefox 3 by selecting 'Check for Updates' in the Help menu or by going to http://www.mozilla.com/en-US/firefox/firefox.html If you can no longer reproduce this bug using the latest Firefox 3.0.x version, please change the status of this bug to 'RESOLVED' 'WORKSFORME'. If you can still reproduce this bug, please provide additional details to help resolve this issue.
No reply, INCOMPLETE. Please reply if you can still reproduce this bug with Firefox 3.5.3 or later in a new profile with the latest plugins (flash, quicktime, java, etc.).
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: