Closed Bug 682447 Opened 13 years ago Closed 5 years ago

WebConsole seems to disable slow script popup

Categories

(DevTools :: Console, defect, P3)

6 Branch
x86
Linux
defect

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
Attached file test case
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
sounds like the infinite while loop self-DoSing "bug".
Component: Developer Tools → Developer Tools: Console
Whiteboard: [dupeme][slowscript]
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.
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.
Priority: -- → P3
Summary: WebConsole seems to disable long script popup → WebConsole seems to disable slow script popup
Product: Firefox → DevTools
When evaluating `for(;;);` I do see the "slow script" toolbar.

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.

Attachment

General

Creator:
Created:
Updated:
Size: