Closed Bug 44204 Opened 25 years ago Closed 25 years ago

Mozilla crashes (sometimes taking system down with it) when clicking on an <A href="javascript:Function()"> which calls a function that sets window.location to itself

Categories

(Core :: DOM: Navigation, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 37463

People

(Reporter: lobotomy42, Assigned: warrensomebody)

Details

(Keywords: crash)

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m17) Gecko/20000628 BuildID: 2000062808 When accessing a javascript function which sets window.location to equal window.location (or in any way set window.location to the same url that the window is currently at) through the <xmp><a href="javascript:function()"> </xmp> method, Mozilla totally freezes and stops responding. Quite often, the entire system does as well, forcing a hard reboot. In Netscape 3+, and IE4+, the page simply reloads as I presume it is supposed to. This does not seem to happen when the function is called using buttons or the onclick event in a link. Reproducible: Always Reproduce: Click on link which, through javascript: in href attribute, calls a function that sets window.location to what it already is. Actual Results: Browser freezes totally, sytem stops responding (sometimes, other times I can Ctrl+Alt+Del out). Expected Results: The page containing the link should reload. Test case: Make a page like this: <xmp> <html> <Script> <!-- function ReDoPage1() { window.location = window.location } // --> </script> <body> <a href="javascript:ReDoPage1()">window.location=window.location</a><br> </body> </html></xmp>
Ignore <xmp> tags in above html block.
Attached file testcase.html
The freeze is already known (see bug 37463, I verified that this testcase has the same stack traces). I don't know if this bug should remain open for the remaining issue ("taking system down with it").
My guess would be not to leave it open. What happens specifically is that Mozilla hangs, and then when I try to use Ctrl+Alt+Del to End Task (in Win98), I get Mr. Blue Screen of Death and then it stops responding. So the problem of the system hanging is more likely some Windows error in trying to close Mozilla once it hangs, IMHO.
Since it's not a JS Engine bug, reassigning in a way consistent with bug 37463 -
Assignee: rogerl → warren
Component: Javascript Engine → Embedding: Docshell
QA Contact: pschwartau → BlakeR1234
I think this is just a dup of 37463...we'll recheck this when that's fixed. Some systems might handle crashes and freezes differently, depending on amount of memory available, and so forth. *** This bug has been marked as a duplicate of 37463 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Adding crash keyword
Keywords: crash
vrfy dup, the testcase wfm in 2000080809 win98
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: