Closed Bug 225656 Opened 21 years ago Closed 19 years ago

Browser crashes on certain Javascript code

Categories

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

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED EXPIRED

People

(Reporter: gullevek, Unassigned)

Details

(Keywords: crash)

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031030
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031030

in a popup where you can upload a file, after the upload this <body onload="">
function is called:

function refreshParent(locat) {
  window.opener.location.href = locat;
  window.close();
}

on Mozilla 1.6a (and lower) and Firebird 0.7 (PC Microsoft XP SP1 jp and PC
Microsoft Windows 2000 SP4) it crashes the browser.

removing the 'window.close();' part or chaing the function into this:

function refreshParent(locat) {
  window.opener.location.href = locat;
  setTimeout('window.close()',500);
}

will stop the browser from crashing.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
---> DOM Level 0
Assignee: general → general
Component: JavaScript Engine → DOM Level 0
Keywords: crash
QA Contact: PhilSchwartau → ian
Ummm.. gullevek, can you provide a testcase?
It's not clear how and with what parameter refreshParent is called.
either with: 
 
refreshParent(window.opener.location.href); 
 
or with a relative path eg 
 
refreshParent('main_page.php'); 
Attached file testcase? part 1 (test.html) (obsolete) —
test.html
load this into the browser and press button to open a popup containing
popup.html (next attachment).
Attached file testcase? part 2 (popup.html) (obsolete) —
popup.html
this has the onload function refreshing the parent and allegedly crashing
Mozilla.
(you have to download both files to the same directory)

gullevek@gullevek.org:
did I understand everything correctly?
I do not crash with 1.7b and 1.6 on WinXP. Do you?

Only in 1.7b (!) I get an error in the JavaScript console, saying:

Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIControllers.removeController]"  nsresult:
"0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://navigator/content/navigator.js :: Shutdown :: line 727"  data: no]
Reformatted this testcase to be a single file, taking original source and
parsing through the data: URI protocol on the popup (see
http://software.hixie.ch/utilities/cgi/data/data for details).

No crash with same error message (though getting that particular error message
is disturbing in the extreme, just by the way it sounds).
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7b) Gecko/20040405
Attachment #145272 - Attachment is obsolete: true
Attachment #145273 - Attachment is obsolete: true
testcase work for me on WInXP & Mozilla 2004062008.

What should happen to this bug? Why is it still unconfirmed ?
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: