> On 6 Apr 2017, at 11:08 pm, Dave Longley <notifications@github.com> wrote:
>
> @marcoscaceres,
>
> I don't think that code example is exactly right as active elements may not have focus.
>
What's an "active element"?
> I'm also not sure that it would be correct for iframes that call show(), but perhaps it's correct in spirit. :)
>
That's why we have an attribute on iframes to explicitly allow this.
> (Note: even executing window.top.document.hasFocus as I'm typing this right now returns false yet I'm clearly viewing the tab I'm typing into.)
>
Your dev tools have focus ^_^ try it with setTimeout and actually focusing the document by clicking on it.
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub, or mute the thread.
>
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/486#issuecomment-292195520