Closed Bug 185384 Opened 22 years ago Closed 22 years ago

Option for disable javascript alert when loading/unloading webs

Categories

(Core :: Security, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 64737

People

(Reporter: NetVicious, Assigned: security-bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

If you close the web on the URL you will get one alert message. Some webs make
one javascript alert when loading and other (like this) make one when unloading
it. One option disabling this like disabling open popups will be good ;-)

Reproducible: Always

Steps to Reproduce:
1. Open http://www.disproin.com
2. Close tab or window
3. You get alert message



Expected Results:  
If option was enabled bypass it without showing the alert window.
Reassigning to Prefs component for consideration; this is not
a JavaScript Engine issue. 

cc'ing warp@iki.fi from bug 138775 
"Feature request: Options for disabling javascripts from hooking mouse buttons 
and opening alert windows"

It looks like bug 138775 was duped against bug 86193 because of
the mouse considerations; but I don't see any duplicate bug for 
pref-blocking of alerts.

cc'ing Jesse in case he knows of one -
Assignee: rogerl → ben
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → Preferences
Ever confirmed: true
QA Contact: pschwartau → sairuh
I searched for "ALL pref,option unload,onclos".  I only found bug 50465,
"Handling of unload events on HTML should be a preference".
well, this is not a preferences bug; that's for bugs in the prefs dialog itself.
Assignee: ben → mstoltz
Component: Preferences → Security: General
QA Contact: sairuh → bsharma
This is one case of "configurable security policies by trigger," as in denying
calls based on which event handler they are called from. 

*** This bug has been marked as a duplicate of 64737 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.