[Webkit-unassigned] [Bug 232486] New: [iOS 15] Loads after WKWebView session restore are marked as app-initiated
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 29 08:36:36 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=232486
Bug ID: 232486
Summary: [iOS 15] Loads after WKWebView session restore are
marked as app-initiated
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Page Loading
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ajuma at chromium.org
CC: achristensen at apple.com, beidson at apple.com,
bfulgham at webkit.org, justincohen at google.com,
katherine_cheney at apple.com, rohitrao at google.com
After restoring a session using -[WKWebView setInteractionState:], all loads within that WKWebView are marked as app-initiated, including back/forward navigation through the restored state, and tapping links. This continues until the next call to -[WKWebView loadRequest:].
This was fixed for Safari in bug 229721 by adding an |isAppInitiated| property to _WKSessionState, but other browsers on iOS still have the same issue since they can't use this SPI.
So an equivalent public API way to restore a session but have loads marked as non-app-initiated is needed, perhaps adding an extra argument to -[WKWebView setInteractionState:].
I've also filed FB9728909 for this bug.
--
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/20211029/0082ba93/attachment.htm>
More information about the webkit-unassigned
mailing list