Closed Bug 502824 Opened 11 years ago Closed 9 years ago

Don't allow window.focus on *self* in response to clicks (prevent pop-unders)

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set

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.
Blocks: 355482
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.
Blocks: 565104
Depends on: 369306
So does bug 369306 being fixed means this one's fixed, too?
Yes, this is fixed too.
Status: NEW → RESOLVED
Closed: 9 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Whiteboard: [fixed by bug 369306 ]
Target Milestone: --- → mozilla2.0b7
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.