[Webkit-unassigned] [Bug 220623] New: onpagehide/onpageshow event listeners on WKWebView with bfcache intermittently not firing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 14 06:15:43 PST 2021


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

            Bug ID: 220623
           Summary: onpagehide/onpageshow event listeners on WKWebView
                    with bfcache intermittently not firing
           Product: WebKit
           Version: WebKit Local Build
          Hardware: iPhone / iPad
                OS: iOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: chris.boakes at telegraph.co.uk

Created attachment 417613

  --> https://bugs.webkit.org/attachment.cgi?id=417613&action=review

Demonstration of the events not firing as expected

Have isolated the problem and can be seen here: https://lucid-shaw-b293da.netlify.app/

In WebView browser:

1. Navigate to Page 1
2. You should see the console.log “onpageshow - page 1, load”
3. Navigate to Page 2 
4. You should see the console.log “onpageshow - page 2, load”
5. Use the back button and you should see the console.log “onpageshow - page 1, load”
6. Go back and forth between Page 1 and 2 and the console logs intermittently do not fire

The expected behavior is that the onpageshow and onpagehide to fire every time but the events do not always fire when navigating backwards to a cached page

-- 
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/20210114/2310210a/attachment-0001.htm>


More information about the webkit-unassigned mailing list