Closed Bug 57585 Opened 25 years ago Closed 25 years ago

certain javascript hangs browser

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 55460

People

(Reporter: japh_loop, Assigned: rogerl)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/4.75 [en] (Win98; U) BuildID: 2000102108 The javascript activated by clicking the "Mozilla bug" link appears to hang the browser. The windows came up ONCE with a weird scrambled title but was never reproduced again from about 6 tries. Reproducible: Sometimes Steps to Reproduce: 1.Go to "http://bugzilla.mozilla.org/" 2.Click on the "Mozilla bug" link in the "Show Mozilla bug No." Actual Results: Browser appears to hang; it dowsn't respond to any commands but is not listed as "Not Responding" in the "End Task" box. The home page button in the upper right-hand corner continues to function, leading me to believe that it "appears" to hang. Expected Results: The javascript be executed and that a dialog box be brought up asking for the bug number. ***Start Affected Code*** <A href="javascript: id=document.getSelection(); if(!id) { void(id=prompt('Enter Mozilla bug number or summary term, or * to go straight to Bugzilla:','*')) } if(id) { if(id == 'main') { document.location='http://bugzilla.mozilla.org/' } else if(isNaN(id)) { document.location='http://bugzilla.mozilla.org/buglist.cgi?short_desc='+escape(i d) } else { document.location='http://bugzilla.mozilla.org/show_bug.cgi?id='+escape(id) } }">Mozilla bug</A> ***End Affected Code*** It doesn't respond to any commands but is not listed as "Not Responding" in the "End Task" box. The home page button in the upper right-hand corner continues to function, leading me to believe that it only "appears" to hang. This javascript code was successfully executed in Netscape Navigator.
this was once bug 37463, now marked fixed. Added a comment there about this bug.
I don't see this with linux SEA 2000102021 btw.
Confirm on Win2k with build from trunk tip 10/21. It becomes unresponsive to user input, the throbber stops throbbing, cpu usage goes to zero, but dragging another window across the browser does cause updates to occur and causes the cpu usage for the process to go up while painting.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Confirming this with build 2000101904 on Win95. Appears to be same behavior as in bug 57471. Link there is: <A href="javascript:alert('Vertical')" onMouseOver="return swap('vrt',vrtOvr)" onMouseOut="return swap('vrt',vrtOut)"> <IMG name="vrt" SRC="images/arrowup.gif" height=40 width=40 border=0></A> 57471 might be duplicate of this. Has test case attached to it. However other javascript links work for me. Looks suspiciously like a JavaScript nested quotes/escaping problem: void(id=prompt(\'Enter Mozilla ... Recommend to look at 51847 !!! Fails with JavaScript escaping in a very obvious way. Has simple test case. 51847 should be fixed asap IMHO.
Boink. *** This bug has been marked as a duplicate of 55460 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified Duplicate -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.