[Webkit-unassigned] [Bug 272865] New: iOS web push processing before unlock can cause InvalidStateError exceptions
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 17 16:57:21 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=272865
Bug ID: 272865
Summary: iOS web push processing before unlock can cause
InvalidStateError exceptions
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nham at apple.com
If a web push is processed before the user unlocks the device for the very first time, then that processing fails because the PushDatabase file has file protection attributes that prevent it from being opened before first unlock. Changing the protection class to always allow access is probably not a great idea because no one has ever validated whether all the downstream work involved in handling a push event (e.g. spawning a service worker in a new process) works before first unlock. It likely doesn't, because the many files on the volume will have a protection class attribute that makes them inaccessible before first unlock.
In the short term, we have to work around this by holding off on initialization until the user unlocks the device.
--
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/20240417/068cf229/attachment.htm>
More information about the webkit-unassigned
mailing list