Closed
Bug 502824
Opened 16 years ago
Closed 14 years ago
Don't allow window.focus on *self* in response to clicks (prevent pop-unders)
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla2.0b7
People
(Reporter: jruderman, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fixed by bug 369306 ])
Clicks should allow scripts to call window.focus() on other windows, since they can open new focused windows, but should not allow scripts to call window.focus() on themselves, since that is pretty much only used to hide the origin of pop-up ads ("pop-unders"). I originally suggested this in bug 355482 comment 0.
Comment 1•15 years ago
|
||
The patch in bug 369306 implements this. Actually, the exact semantics are slightly more restrictive: window A can focus window B iff A created B.
Comment 2•14 years ago
|
||
So does bug 369306 being fixed means this one's fixed, too?
Comment 3•14 years ago
|
||
Yes, this is fixed too.
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Whiteboard: [fixed by bug 369306 ]
Target Milestone: --- → mozilla2.0b7
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•