[webkit-dev] feature proposal: restricting window.blur/focus
Oliver Hunt
oliver at apple.com
Wed Apr 4 10:38:20 PDT 2012
I am all for this change, but a not insubstantial part of that is my general hate for anything other than me ever changing the focused window and/or element.
--Oliver
On Apr 4, 2012, at 1:31 AM, Jochen Eisinger wrote:
> Hey,
>
> Firefox restricts the use of window.blur() and window.focus() (by default). window.blur() is just doing nothing, and window.focus() only works if the caller is running in the same window.
>
> Should we implement similar rules for WebKit? The purpose of this is to make pop-unders more difficult to achieve.
>
> I think this can be implemented in such a way the the chrome implementation which is doing the actual focusing/bluring anyway has enough information to let each port control what they want to do.
>
> wdyt?
>
> -jochen
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
More information about the webkit-dev
mailing list