bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

Browser crashes on certain Javascript code




DOM: Core & HTML
15 years ago
13 years ago


(Reporter: cs, Unassigned)



Windows XP

Firefox Tracking Flags

(Not tracked)



(1 attachment, 2 obsolete attachments)



15 years ago
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;

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;

will stop the browser from crashing.

Reproducible: Always

Steps to Reproduce:

Comment 1

15 years ago
---> DOM Level 0
Assignee: general → general
Component: JavaScript Engine → DOM Level 0
Keywords: crash
QA Contact: PhilSchwartau → ian

Comment 2

14 years ago
Ummm.. gullevek, can you provide a testcase?
It's not clear how and with what parameter refreshParent is called.

Comment 3

14 years ago
either with: 
or with a relative path eg 

Comment 4

14 years ago
Created attachment 145272 [details]
testcase? part 1 (test.html)

load this into the browser and press button to open a popup containing
popup.html (next attachment).

Comment 5

14 years ago
Created attachment 145273 [details]
testcase? part 2 (popup.html)

this has the onload function refreshing the parent and allegedly crashing
(you have to download both files to the same directory)

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]
Created attachment 145554 [details]
testcase generated from Hixie's data kitchen

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

Comment 7

14 years ago
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.
Last Resolved: 13 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.