RESOLVED FIXED115906
Disallow a window to focus itself via javascript URLs or using target _self
https://bugs.webkit.org/show_bug.cgi?id=115906
Summary Disallow a window to focus itself via javascript URLs or using target _self
jochen
Reported 2013-05-10 06:55:48 PDT
Disallow a window to focus itself via javascript URLs or using target _self
Attachments
Patch (5.37 KB, patch)
2013-05-10 06:57 PDT, jochen
no flags
jochen
Comment 1 2013-05-10 06:57:09 PDT
Geoffrey Garen
Comment 2 2013-05-10 14:08:51 PDT
What's the rationale for this change? Is this some sort of popup blocking, or something else?
jochen
Comment 3 2013-05-11 03:24:53 PDT
In http://trac.webkit.org/changeset/118916, I added a restriction to window.focus() that disallows a window to focus itself. Apparently, some popunder scripts are using this workaround to get around the window.focus() restriction.
Geoffrey Garen
Comment 4 2013-05-11 10:22:06 PDT
Comment on attachment 201342 [details] Patch r=me
WebKit Commit Bot
Comment 5 2013-05-11 12:08:21 PDT
Comment on attachment 201342 [details] Patch Clearing flags on attachment: 201342 Committed r149936: <http://trac.webkit.org/changeset/149936>
WebKit Commit Bot
Comment 6 2013-05-11 12:08:23 PDT
All reviewed patches have been landed. Closing bug.
Anne van Kesteren
Comment 7 2017-07-27 04:56:42 PDT
*** Bug 115706 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.