Closed Bug 1272644 Opened 9 years ago Closed 6 years ago

Script hangs Firefox

Categories

(Core :: General, defect)

defect
Not set
major

Tracking

()

RESOLVED WONTFIX

People

(Reporter: karan.srivas, Unassigned)

References

(Depends on 1 open bug)

Details

(4 keywords)

Attachments

(1 file, 5 obsolete files)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 Firefox for Android Steps to reproduce: 1) Just created a script to make cache full. 2) Opened the script. 3) Browser crashed ! Actual results: When the script is executed the browser hanged totally within few seconds and ultimately it forcefully closed the browser. This crash worked perfectly on 45 version,46 version and the latest on 46.0.1 on both desktop and mobile platforms. I request to make this bug as Public Disclosure. Expected results: It can affect users as all the current sessions are closed once the script is triggered.
Severity: normal → critical
Component: Untriaged → General
Keywords: crash
I have tried the script on the latest Mozilla Firefox version (46.0.1) for Android platform.
Please provide the script/page in question.
Component: General → Untriaged
(In reply to :Gijs Kruitbosch from comment #6) > Please provide the script/page in question. <html><script>txt = "a";while(1){txt = txt += "a"; }</script></html>
OS: Unspecified → Windows 8.1
Hardware: Unspecified → x86_64
That sounds like another 'dummy' script leading too OOM crash by consming all the RAM, like many others in the past. And I doubt it worked fine in 45 because I'm able to crash old versions of Firefox.
(In reply to Loic from comment #8) > That sounds like another 'dummy' script leading too OOM crash by consming > all the RAM, like many others in the past. > And I doubt it worked fine in 45 because I'm able to crash old versions of > Firefox. You can check in my attachments. It works fine even in the latest version also.
There is no crash. Without e10s Firefox hangs completely and it's not possible to close browser without forcing it with task manager. Stop script warning didn't show. With e10s Firefox hangs, but it's possible to close browser without using task manager and force close. Stop slow site warning shows, but it didn't do anything.
Blocks: eviltraps
Severity: critical → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crashcsectype-dos, perf, topperf
OS: Windows 8.1 → All
Hardware: x86_64 → All
Summary: Firefox Browser Crash → Script hangs Firefox
Version: 46 Branch → unspecified
Attached file hang script.html (deleted) —
Attachment #8752176 - Attachment is obsolete: true
Attachment #8752177 - Attachment is obsolete: true
Attachment #8752178 - Attachment is obsolete: true
Attachment #8752184 - Attachment is obsolete: true
Attachment #8752185 - Attachment is obsolete: true
Group: firefox-core-security
CC list accessible: false
Group: firefox-core-security
Morgan, any chance you would be interested in this testcase? There's this, document.write() and window.open() that all present similar problems (cf. bug 685828, bug 380223). From your recent blogpost, you seem like you'd be in an excellent position to kill this stuff off. :-)
Flags: needinfo?(winter2718)
(In reply to :Gijs Kruitbosch from comment #14) > Morgan, any chance you would be interested in this testcase? There's this, > document.write() and window.open() that all present similar problems (cf. > bug 685828, bug 380223). From your recent blogpost, you seem like you'd be > in an excellent position to kill this stuff off. :-) Yes! This is exactly the sort of situation we're trying to solve with bug 1269917. I'll add it as a blocker here. Thanks for flagging me! :)
Flags: needinfo?(winter2718)
No longer blocks: 1269917
Depends on: 1269917
This really isn't an SVG issue.
Component: SVG → General
(In reply to Virtual_ManPL [:Virtual] - (please needinfo? me - so I will see your comment/reply/question/etc.) from comment #11) > There is no crash. There is on Android: brings down the whole browser. On desktop this essentially just hangs the tab (assuming the default e10s is on), and the slow script dialog shows up and successfully stops the page. I'm not getting a slow script dialog on Android. Do we not have that there? If we did it would be a solution.
Flags: needinfo?(kbrosnan)
Keywords: crash
Yes, the slow script dialog exists on Android. Though the browser may hang, crash or the OS will kill us before we get to show the dialog.
Flags: needinfo?(kbrosnan)
So, this we can consider as a bug ??? if yes , what more is needed ?
It is marked as new which means that others can reproduce it. Hanging the browser is generally not a top priority. This may get resolved as Firefox for Android picks up more parts of mulitprocess Firefox (e10s).

This is not an evil trap if it's fixed by e10s. Let's close it.

No longer blocks: eviltraps
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: