<br><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 11:17 AM, Jochen Eisinger <span dir="ltr"><<a href="mailto:jochen@chromium.org">jochen@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On Wed, Apr 4, 2012 at 8:01 PM, Darin Fisher <span dir="ltr"><<a href="mailto:darin@chromium.org" target="_blank">darin@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div class="gmail_quote"><div>On Wed, Apr 4, 2012 at 10:58 AM, Jochen Eisinger <span dir="ltr"><<a href="mailto:jochen@chromium.org" target="_blank">jochen@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<br><div class="gmail_quote"><div>On Wed, Apr 4, 2012 at 7:53 PM, Darin Fisher <span dir="ltr"><<a href="mailto:darin@chromium.org" target="_blank">darin@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





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.<span><font color="#888888"><div>

<br></div></font></span></blockquote><div> </div></div><div>We could add a method to ChromeClient that would enable an embedder to override the restriction under certain circumstances</div></div></blockquote><div><br></div>



</div><div>Or, perhaps something like UserGestureIndicator.  I'm not sure which is better.</div></div></blockquote><div><br></div></div><div>Not sure I understand?</div><div><br></div><div>Are you suggesting to allowing focusing/blurring in response to a user action? I think that's undesirable, as the site that wants to pop-under a window probably "stole" a click to be able to run window.open already.</div>
<span class="HOEnZb"><font color="#888888">

<div><br></div></font></span></div></blockquote><div><br></div><div><br></div><div>No, no... sorry for being unclear.  I meant that you could have a global state variable (allow focusing / blurring) that gets controlled by a scoped helper class.  This is an alternative to having a ChromeClient callback.</div>
<div><br></div><div>-Darin</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><span class="HOEnZb"><font color="#888888"><div>
</div><div>-jochen</div></font></span><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><span><font color="#888888"><div>

-Darin</div>
</font></span><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><span><font color="#888888"><div><br></div><div>-jochen</div></font></span><div><div>

<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><font color="#888888"><div></div><div>-Darin</div><div><br>
</div></font></span><div><br><br><div class="gmail_quote"><div><div>On Wed, Apr 4, 2012 at 1:31 AM, Jochen Eisinger <span dir="ltr"><<a href="mailto:jochen@chromium.org" target="_blank">jochen@chromium.org</a>></span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Hey,<div><br></div><div>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.</div><div>








<br></div><div>Should we implement similar rules for WebKit? The purpose of this is to make pop-unders more difficult to achieve.</div><div><br></div><div>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.</div>








<div><br></div><div>wdyt?</div><span><font color="#888888"><div><br></div><div>-jochen</div>
</font></span><br></div></div><div>_______________________________________________<br>
webkit-dev mailing list<br>
<a href="mailto:webkit-dev@lists.webkit.org" target="_blank">webkit-dev@lists.webkit.org</a><br>
<a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div></div><br>
</blockquote></div></div><br>
</blockquote></div></div><br>
</blockquote></div><br>