Closed
Bug 682447
Opened 13 years ago
Closed 5 years ago
WebConsole seems to disable slow script popup
Categories
(DevTools :: Console, defect, P3)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: bruant.d, Unassigned)
References
Details
(Whiteboard: [dupeme][slowscript])
Attachments
(1 file)
2.10 KB,
application/x-gzip
|
Details |
I'm currently working on a script that traverses an ECMAScript environment. I'm running into issues of infinite loops (which is my problem, not yours). I have noticed that when the WebConsole is open, the popup asking to disable a long-running script does not show up. There may be other conditions, I'm not entirely sure it's a WebConsole specific issue (and reproducing the bug takes several minutes) Noticed on FF6, current Aurora and current nightly. Attached is a testcase. Unzip and open index.html
Comment 1•12 years ago
|
||
sounds like the infinite while loop self-DoSing "bug".
Component: Developer Tools → Developer Tools: Console
Whiteboard: [dupeme][slowscript]
Comment 3•11 years ago
|
||
Oh my gosh y'all, this is super annoying. Any idea what causes this? STR: 1. Open the Web Console 2. Type for(;;); Expected: slow script dialog Actual: browser hangs forever, has to be killed We have the technology to prevent this. Argh.
Comment 4•11 years ago
|
||
weird, I expected the same thing to happen in the Scratchpad but it doesn't. eventually I got a slow-script dialog and stopping produced this: /* Exception: Component returned failure code: 0x8007000e (NS_ERROR_OUT_OF_MEMORY) [nsIXPCComponents_Utils.evalInSandbox] @368 */ I would dearly love to have a global "break JavaScript execution" button somewhere that brings up the debugger.
Updated•11 years ago
|
Priority: -- → P3
Summary: WebConsole seems to disable long script popup → WebConsole seems to disable slow script popup
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 8•5 years ago
|
||
When evaluating `for(;;);` I do see the "slow script" toolbar.
Comment 9•5 years ago
|
||
Closing since we do show the slow script toolbar, and clicking on the Stop It
buttons does show the following message in the console :
Error: Script terminated by timeout at:
@debugger eval code:1:8
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•