Closed Bug 502824 Opened 13 years ago Closed 11 years ago
Don't allow window
.focus on *self* in response to clicks (prevent pop-unders)
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.
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.
So does bug 369306 being fixed means this one's fixed, too?
Yes, this is fixed too.
Status: NEW → RESOLVED
Closed: 11 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.