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)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: nightsoul.blackps, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: testcase)

Attachments

(1 file)

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
Attached file Test case.
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()
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)
Component: DOM → DOM: Core & HTML

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.

Attachment

General

Creator:
Created:
Updated:
Size: