[webkit-dev] Changes to window.focus/window.blur controlled by a setting?

Jochen Eisinger jochen at chromium.org
Mon May 21 11:40:10 PDT 2012


On Mon, May 21, 2012 at 8:17 PM, Eric Seidel <eric at webkit.org> wrote:

> So the goal (FF's goal) is to guilt the site into not using pop-ups
> anymore? Since they don't want to take you away from their content (as
> pop-unders allow them to do?)
>


I don't think this changed a lot since FF started to do this (quite a while
ago). However, I think it's less annoying this just hit Cmd-W vs hunting
down the popup on my desktop before I can actually close it.


>
> My first thought was that we might as well just nuke/block the pop-up
> if it calls blur() (and log to the console somewhere).  But perhaps we
> can try that in a year if this fails to produce results. :)
>

I agree that popup blocking per se (even it's up or under doesn't really
matter) could be improved, and maybe calls to window.blur() are a good
signal.

-jochen



>
> On Mon, May 21, 2012 at 4:17 AM, Jochen Eisinger <jochen at chromium.org>
> wrote:
> >
> >
> > On Mon, May 21, 2012 at 1:16 PM, Eric Seidel <eseidel at google.com> wrote:
> >>
> >> So this would just make pop-unders turn into pop-overs correct?
> >
> >
> > Correct. Keep in mind that at this point, our logic already decided that
> > it's ok for the page to show a popup
> >
> > -jochen
> >
> >>
> >>
> >> On Mon, May 21, 2012 at 2:17 AM, Jochen Eisinger <jochen at chromium.org>
> >> wrote:
> >> > Hey,
> >> >
> >> > in https://bugs.webkit.org/show_bug.cgi?id=86969 I'm changing
> >> > window.focus
> >> > and window.blur to match Firefox's behavior: window.blur does nothing,
> >> > and
> >> > window.focus only works when invoked from the window that actually
> >> > opened
> >> > the former.
> >> >
> >> > The goal is to thwart so-called pop unders.
> >> >
> >> > Does any port want to have this new behavior configurable by e.g. a
> >> > setting?
> >> >
> >> > Feel free to directly comment on the bug.
> >> >
> >> > best
> >> > -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/20120521/6c3c4cac/attachment.html>


More information about the webkit-dev mailing list