[Webkit-unassigned] [Bug 119727] Do not dispatch 'focus' or 'blur' event twice when window active state is changed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 29 14:36:52 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=119727

--- Comment #4 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
(In reply to Ahmad Saleem from comment #3)
> (In reply to Ryosuke Niwa from comment #2)
> > (In reply to comment #1)
> > > AFAIK, Apple Mac port doesn't have this issue.
> > > 
> > > Test page: http://jsfiddle.net/FbzNA/
> > 
> > Thanks for the info!  We should probably add a test though.
> 
> This commit does not have any test -
> https://src.chromium.org/viewvc/blink?view=revision&revision=155558
> 
> Do we require this at this point? Thanks!

It seems to be reproducible in macOS 12.6 using testcase mentioned on Comment 01:

*** Safari 16 ***

Thu Sep 29 2022 22:34:59 GMT+0100 (British Summer Time): window focus
Thu Sep 29 2022 22:35:01 GMT+0100 (British Summer Time): window blur
Thu Sep 29 2022 22:35:02 GMT+0100 (British Summer Time): window focus
Thu Sep 29 2022 22:35:02 GMT+0100 (British Summer Time): window focus

^ When you activate JSFiddle result window and then you switch to other tab and come back

*** Chrome Canary 108 ***

Thu Sep 29 2022 22:35:43 GMT+0100 (British Summer Time): window focus
Thu Sep 29 2022 22:35:45 GMT+0100 (British Summer Time): window blur
Thu Sep 29 2022 22:35:45 GMT+0100 (British Summer Time): window focus

*** Firefox Nightly 107 ***

    Thu Sep 29 2022 22:36:17 GMT+0100 (British Summer Time): window focus
    Thu Sep 29 2022 22:36:18 GMT+0100 (British Summer Time): window blur
    Thu Sep 29 2022 22:36:19 GMT+0100 (British Summer Time): window focus

______

As can be seen "Safari" show "window focus" twice when activating tab again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220929/b608b898/attachment-0001.htm>


More information about the webkit-unassigned mailing list