Closed
Bug 913915
Opened 12 years ago
Closed 12 years ago
Running a long script blocks the browser
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 682447
People
(Reporter: sankha, Unassigned)
Details
When I open the Web Console and execute a long running script like:
var x = 0;
var now = Date.now;
for (i = 0; i < 100000000; i++) {
x = x + 1;
}
console.log(Date.now() - now);
The browser becomes non responsive for a few seconds, and then I get the message to kill the script because the script is not responding.
Expected results: The rest of the browser should respond to the user commands like switching tabs, etc.
For comparison purposes, the similar thing can be tried on Google Chrome too, and the browser responds while it is still executing the script.
| Reporter | ||
Comment 1•12 years ago
|
||
Err, the line 2 will be:
var now = Date.now();
Comment 2•12 years ago
|
||
We have a bug on file for this already. Marking as duplicate.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•