Closed
Bug 262660
Opened 20 years ago
Closed 12 years ago
limit javascript window resizes and repositions
Categories
(Firefox :: General, enhancement)
Tracking
()
RESOLVED
DUPLICATE
of bug 579174
People
(Reporter: jason, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
A mallicious javascript program may try to irritate a user by repositioning
a browser window constantly.
Reproducible: Always
Steps to Reproduce:
1. Go to the given URL
Expected Results:
Repositioning and resizing should be one of the three:
1. Rate limited
2. Limited to a maximum count per page view
3. Configurable for enable/disable
Comment 1•20 years ago
|
||
File bugs in the right component, please -- "JavaScript Engine" has nothing to
do with window sizes and repositions.
/be
Assignee: general → general
Component: JavaScript Engine → DOM: Level 0
QA Contact: pschwartau → general
Whiteboard: DUPEME
![]() |
||
Comment 2•20 years ago
|
||
> 3. Configurable for enable/disable
It is, in Mozilla (which is what you filed this bug on).
Preferences > Advanced > Scripts and Windows, set sites to not be able to resize
or reposition windows.
Over to firefox to add UI for this pref as desired.
Assignee: general → firefox
Status: UNCONFIRMED → NEW
Component: DOM: Level 0 → General
Ever confirmed: true
Product: Browser → Firefox
QA Contact: general → firefox.general
Whiteboard: DUPEME
Comment 3•20 years ago
|
||
Firefox has a pref in Tools --> Options --> Web Features --> Enable JavaScript
--> Advanced --> Move or resize existing win...
Probably it's just that the pref is truncated and thus TOO SHORT to be legible?
"win..." does not necessary mean "windows".
Comment 4•20 years ago
|
||
It is possible to completely disable javascript window resizes but you don't
want to it because then some legitime popup windows aren't viewed correctly
(they can't be resized then they stay small and unreadable).
And the problem is some sites switch the window size from "maximized" to "normal
window" without reason.
It would be perfect to be able to disable only this the sites to do so.
The script used by such sites seems to be :
self.resizeTo(screen.availWidth,screen.availHeight)
Updated•18 years ago
|
Assignee: bross2 → nobody
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•