Closed Bug 100911 Opened 23 years ago Closed 23 years ago

wocs.com - Browser hangs when JS Strict warnings enabled.

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 78179

People

(Reporter: bugzilla, Assigned: khanson)

References

()

Details

(Keywords: hang, perf)

Try going to: http://wocs.com Mozilla becomes totally unavailable and you have to trash it! build 20010920
wfm 2001092012 trunk mac and 2001092021 trunk linux
wfm using build 2001092003 on Win2k.
wfm 2001092103 windows me
WFM Win98SE 2001092103, in view of all WFM's changing to INVALID
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Try turning on javascript strict warnings in the "Edit -> Prefs -> Debug" and then go to the site again...
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Confirming on Win2k with build 2001092503 with Debug ticked. I see many warnings about document.all so I guess this could be moved to Tech Evangelism. There's another bug about implementing a policy to avoid JavaScript loops trashing Mozilla but can't remember of.
See bug 13350 to avoid JS loops.
->TE
Assignee: asa → bclary
Status: REOPENED → NEW
Component: Browser-General → English: US
Product: Browser → Tech Evangelism
QA Contact: doronr → zach
Version: other → unspecified
looks like danish or something similar to me... -> Europe West
Assignee: bclary → nitot
Component: English: US → Europe: West
QA Contact: zach → caillon
Summary: Browser becomes unavailable when going to http://wocs.com → wocs.com - Browser becomes unavailable
Whiteboard: [PROPRIETARY-JS]
WFM in N62 on Win2K. No messages in the javascript console. same with 20011010 Moz build on linux. The site has been fixed, I guess. Marking Resolved fixed.
Status: NEW → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
Mozilla 20011112 become totally unavailable to a long time ½-1 min. Please turn on javascript strict warnings in the "Edit -> Prefs -> Debug" and then go to the site again...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Should we bother to evangelize a site that works fine unless the browser is in debug mode w/ strict warnings... Setting P5. accepting bug.
Status: REOPENED → ASSIGNED
Priority: -- → P5
Sending this to JS Engine people. I don't think this an evang issue since we load the page fine with strict warnings off. Very noticable hang here with strict warnings on.
Severity: normal → critical
Status: ASSIGNED → NEW
Keywords: hang, perf
OS: Windows 2000 → All
Priority: P5 → --
Summary: wocs.com - Browser becomes unavailable → wocs.com - Browser hangs when JS Strict warnings enabled.
Whiteboard: [PROPRIETARY-JS]
->JS Engine, could be DOM 0.
Assignee: nitot → rogerl
Component: Europe: West → Javascript Engine
Product: Tech Evangelism → Browser
QA Contact: caillon → pschwartau
Version: unspecified → other
This warning stands out. It repeats ad infinitum in the JS Console: Warning: reference to undefined property document.all Line: 81 Source File: http://wocs.com This is caused by the code below: window.onerror is set to a function which itself produces a JS-strict warning. This causes the infinite loop - window.onerror=reapply; function reapply() { setTimeout("slideit()",2000) return true } function slideit() { if (!document.images) return if (document.all) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 81 slide.filters.blendTrans.apply() document.images.slide.src=eval("image"+step+".src") if (document.all) slide.filters.blendTrans.play() whichimage=step if (step<number_of_images) step++ else step=1 if (document.all) setTimeout("slideit()",speed*1000+3000) else setTimeout("slideit()",speed*1000) }
So this is possibly a dupe of bug 13350 then. The strict warning comes from the test of document.all existing or not but from what I can tell, it doesn't really affect the page... They just have MS specific code which they hide by enclosing it within the if blocks. Is window.onerror supposed to be triggered for warnings as well? Should this be duped or sent back to evangelism?
Note, too, the site authors define the above script in JS1.2: <script language="JavaScript1.2"> I don't know if this is a contributing factor as well. It seems that this bug is DOM-related: what should the browser do if window.onerror is a function which itself causes an error? Compare bug 13350: "DOM needs to police JS infinite loops, schedule garbage collection" Reassigning to Kenton; cc'ing Brendan to ask whether this is a dupe of bug 13350 or is actually a JS Engine issue -
Assignee: rogerl → khanson
This sounds like bug 81279 or bug 78179.
:D I don't think you can get a bug which is much more of a dupe than this. The URL for this bug and the URl for bug 78179 point to identical pages... one is clearly a mirror of the other. Feel free to reopen if you disagree. *** This bug has been marked as a duplicate of 78179 ***
Status: NEW → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
verified dupe
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.