Closed
Bug 578210
Opened 15 years ago
Closed 12 years ago
Can't close page - javascript trap with history.go(0) and window.print()
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: nightsoul.blackps, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: testcase)
Attachments
(1 file)
183 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
<html> <title>asheesh kumar mani tripathi</title> <script> function asheesh() { window.onerror=new Function("history.go(0)"); window.print(); asheesh(); } asheesh(); </script> </html>
Save this as tes.html run it,and try to close it then.
Reproducible: Always
This is a javascript trap, duplicate of bug 432687?
Component: General → DOM: Core & HTML
Keywords: testcase
OS: Windows 7 → All
Product: Firefox → Core
QA Contact: general → general
Hardware: x86 → All
I know about bug 432687 and i don't think it's the same as this is about "multitudinous loop."
Bug 432687 is the meta bug for "eviltraps", setting dependency.
Blocks: eviltraps
Status: UNCONFIRMED → NEW
Component: DOM: Core & HTML → DOM
Ever confirmed: true
Summary: Can't close page or do something about it → Can't close page - javascript trap with history.go(0) and window.print()
Comment 6•12 years ago
|
||
This is now wfm
You get the "prevent site from opening additional dialog" dialog
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
There is a dialog but I then I get the print dialog and "prevent" dialog and again print dialog and so on. This makes closing the page impossible (in the latest aurora)
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Comment 8•5 years ago
|
||
It still works now, but you can escape it if you are quick!
You need to log in
before you can comment on or make changes to this bug.
Description
•