infinite loop (slow script) warning should also be displayed in JS Console

ASSIGNED
Unassigned

Status

()

Core
DOM
--
enhancement
ASSIGNED
13 years ago
5 years ago

People

(Reporter: Biesinger, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

the "Slow script" warning dialog should also be shown in the JS Console,
especially to show a file name/line number. the patch I'm going to attach also
shows the function name.
Created attachment 170782 [details] [diff] [review]
patch
Attachment #170782 - Flags: review?(jst)
Severity: normal → enhancement
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → mozilla1.8beta
Comment on attachment 170782 [details] [diff] [review]
patch

This seems like an aweful lot of code to print a message on the console which
is really only printed when we either execute malicious code or when a web
developer forgets to end a loop. Other than that this would be really really
rare, so I can't really justify adding all this code for that. How about just a
call to PrintWarningOnConsole() (currently file-static in nsDOMClassInfo.cpp)?
Attachment #170782 - Flags: review?(jst) → review-
QA Contact: ian → general

Updated

6 years ago
Duplicate of this bug: 257646
Assignee: cbiesinger → nobody
Target Milestone: mozilla1.8beta1 → ---
You need to log in before you can comment on or make changes to this bug.