[webkit-dev] feature proposal: restricting window.blur/focus

Jochen Eisinger jochen at chromium.org
Wed Apr 4 10:58:23 PDT 2012


On Wed, Apr 4, 2012 at 7:53 PM, Darin Fisher <darin at chromium.org> wrote:

> Matching Firefox behavior likely means that we won't have to worry about
> breaking sites.  We may have to worry about breaking Chrome Extensions or
> other browser-specific content.
>
>
We could add a method to ChromeClient that would enable an embedder to
override the restriction under certain circumstances

-jochen



> -Darin
>
>
>
> On Wed, Apr 4, 2012 at 1:31 AM, Jochen Eisinger <jochen at chromium.org>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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120404/7a927464/attachment.html>


More information about the webkit-dev mailing list