Bug 272865
Summary: | iOS web push processing before unlock can cause InvalidStateError exceptions | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ben Nham <nham> |
Component: | WebKit Misc. | Assignee: | Ben Nham <nham> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | nham, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ben Nham
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ben Nham
rdar://126061835
Ben Nham
Pull request: https://github.com/WebKit/WebKit/pull/27451
EWS
Committed 277859@main (6eefd2796ca6): <https://commits.webkit.org/277859@main>
Reviewed commits have been landed. Closing PR #27451 and removing active labels.