[Webkit-unassigned] [Bug 188329] navigator.sendBeacon does not work in pagehide callbacks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 6 08:47:41 PDT 2018


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

--- Comment #1 from Chris Dumez <cdumez at apple.com> ---
Likely caused:
    // Prevent new loads if we are in the PageCache or being added to the PageCache.
    // We query the top document because new frames may be created in pagehide event handlers
    // and their pageCacheState will not reflect the fact that they are about to enter page
    // cache.
    if (auto* topDocument = frame.mainFrame().document()) {
        if (topDocument->pageCacheState() != Document::NotInPageCache) {
            RELEASE_LOG_IF_ALLOWED("load: Already in page cache or being added to it (frame = %p)", &frame);
            failBeforeStarting();
            return;
        }
    }

in CachedResource::load(CachedResourceLoader&).

Seems like a bad bug indeed.

-- 
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/20180806/2696f6bc/attachment.html>


More information about the webkit-unassigned mailing list