WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
272865
iOS web push processing before unlock can cause InvalidStateError exceptions
https://bugs.webkit.org/show_bug.cgi?id=272865
Summary
iOS web push processing before unlock can cause InvalidStateError exceptions
Ben Nham
Reported
2024-04-17 16:57:21 PDT
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
Comment 1
2024-04-17 16:57:41 PDT
rdar://126061835
Ben Nham
Comment 2
2024-04-18 10:13:48 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/27451
EWS
Comment 3
2024-04-23 00:44:01 PDT
Committed
277859@main
(6eefd2796ca6): <
https://commits.webkit.org/277859@main
> Reviewed commits have been landed. Closing PR #27451 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug