[Webkit-unassigned] [Bug 210512] Storage events are fired for the same tab

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 22 13:26:19 PST 2020


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

Jimmy Thomsen <jimmy at codemagic.dk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jimmy at codemagic.dk

--- Comment #2 from Jimmy Thomsen <jimmy at codemagic.dk> ---
I can confirm this with Safari 13.1 (14609.1.20.111.8) on macOS 10.14.6 (18G4032), as well as with Safari on iOS (iPhone) 13.7.

Work around: Only execute OnStorage logic if document is not focused:

if (!document.hasFocus())
{
    // Execute OnStorage logic - tab does not have focus
}

Notice though that hasFocus() will return false in the active tab if Developer Tools is open and has focus.

-- 
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/20201122/8594c674/attachment.htm>


More information about the webkit-unassigned mailing list