Closed
Bug 355134
Opened 20 years ago
Closed 5 years ago
bad javascript results in total freeze
Categories
(Core :: DOM: Core & HTML, defect, P5)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: thkruege, Unassigned)
References
Details
(Keywords: hang, testcase)
Attachments
(1 file)
|
1.22 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/20060918 Firefox/2.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/20060918 Firefox/2.0
i am going to attach the corresponding file later
Reproducible: Always
Steps to Reproduce:
1.open firefox
2.call up file
3.try to do anything else
Actual Results:
firefox freezes
Expected Results:
the script should be identified as slow running and the user should at least be able to manually terminate it
| Reporter | ||
Comment 1•20 years ago
|
||
warning: this html-file freezes firefox
Updated•20 years ago
|
Comment 2•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1) Gecko/20061002 BonEcho/2.0 ID:2006100204
I see this too.
| Reporter | ||
Comment 3•20 years ago
|
||
Does not seem to be OS-dependent, OSX version hangs, too.
OS: Linux → Mac OS X 10.4
Updated•20 years ago
|
OS: Mac OS X 10.4 → All
Comment 4•20 years ago
|
||
I can confirm this bug. I experienced it a while ago and still, it is working and leads to a full crash!
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•20 years ago
|
Version: unspecified → 2.0 Branch
| Reporter | ||
Comment 5•20 years ago
|
||
Trivia: http://canuco.de/bad-js.html
URL: http://
Version: 2.0 Branch → unspecified
| Reporter | ||
Comment 6•19 years ago
|
||
Firefox 3.0 alpha also freezes. This concerns EVERY version of firefox I tried.
Updated•19 years ago
|
Assignee: nobody → general
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → 1.8 Branch
Comment 7•19 years ago
|
||
With
function repeatStuff() {
do {
} while (setTimeout('true',10000));
}
or even
function repeatStuff() {
do {
} while (true);
}
You will get the slow script dialog which allows you to kill the script. I think the bug here is that the XMLHttpRequest prevents the slow script dialog from appearing. I don't think this is js engine fodder. jst?
Assignee: general → general
Component: JavaScript Engine → DOM: Core
QA Contact: general → ian
| Reporter | ||
Comment 8•19 years ago
|
||
just tested with Gran Paradiso Alpha 4. browser freezes, consumes cpu power and eats up more and more memory.
Component: DOM: Core → JavaScript Engine
Flags: blocking1.9?
Hardware: PC → All
Version: 1.8 Branch → Other Branch
Comment 9•19 years ago
|
||
If you are going to switch components, you need to switch owners as well.
Assignee: general → general
QA Contact: ian → general
| Reporter | ||
Comment 10•19 years ago
|
||
(In reply to comment #9)
> If you are going to switch components, you need to switch owners as well.
>
thanks
I can savely be considered a frickin bugzilla n00b... indeed, iirc, this is my second bugreport ever.
Updated•19 years ago
|
URL: http://
Version: Other Branch → Trunk
Comment 11•19 years ago
|
||
I'm of the opinion that this (and other easy DoS type attacks) should not block 1.9. Also, this does not appear to be a JS-engine bug, since it seems to rely on setTimeout and XMLHttpRequest.
Assignee: general → nobody
Component: JavaScript Engine → DOM
QA Contact: general → general
Flags: wanted1.9+
Flags: blocking1.9?
Flags: blocking1.9-
| Reporter | ||
Comment 12•19 years ago
|
||
Should it really remain this easy to achieve a DoS in firefox? Maybe I should switch to opera then... Because for me a freeze is almost as bad as a crash.
You could argue, that this is obviously true for servers. But think about it:
You can do serious damage to people's workflow just by forcing them to reset their browser. (And it isn't even that easy. You have to kill the process manually...)
Just out of curiosity: How can a bug relying on bad JS _not_ be a JS-engine bug?
(In reply to comment #11)
> I'm of the opinion that this (and other easy DoS type attacks) should not block
> 1.9. Also, this does not appear to be a JS-engine bug, since it seems to rely
> on setTimeout and XMLHttpRequest.
>
Comment 13•19 years ago
|
||
Thorben: I'm not saying we shouldn't fix the bug. I'm saying that it shouldn't supersede more important work.
To answer your second question: the bug does not rely on "bad JS", there's nothing inherently bad about your JavaScript here. The bug relies on the interaction of various DOM methods /called from JS/, which is something entirely different.
Comment 14•19 years ago
|
||
(In reply to comment #12)
> Should it really remain this easy to achieve a DoS in firefox? Maybe I should
> switch to opera then... Because for me a freeze is almost as bad as a crash.
> You could argue, that this is obviously true for servers. But think about it:
> You can do serious damage to people's workflow just by forcing them to reset
> their browser. (And it isn't even that easy. You have to kill the process
> manually...)
Any website that wants to lock up any browser can fairly trivially do so. Fixing this bug will only plug one of many other DoS attacks, so fixing this bug in and of itself is not critical. Fixing the problem over all would be worth while looking into, especially if sites doing browser DoS attacks get common, but given the lack of return on something like that (opposed to stealing credit card info, or taking over a computer etc) it's not something I see happening any time soon.
| Reporter | ||
Comment 15•18 years ago
|
||
Also freezes latest Release Candidate of Firefox 3
Comment 17•8 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
| Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
Comment 18•5 years ago
|
||
Still reproducible on latest MacOS 10.15 on all latest Firefox versions.
Comment 19•5 years ago
|
||
As of comment 14 from 14 years ago, there is not much we can/should do here.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•