[Webkit-unassigned] [Bug 283803] New: Inconsistent Behaviuor of `navigator.permissions` API on Safari iOS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 28 10:17:41 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=283803
Bug ID: 283803
Summary: Inconsistent Behaviuor of `navigator.permissions` API
on Safari iOS
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ricardo at apeleg.com
I'm working on implementing a PWA and I noticed a few issues that are specific to Safari, and more so to Safari on iOS (https://developer.apple.com/forums/thread/769794). One of those is that the `navigator.permissions` API misbehaves in two ways:
1. On iOS (but apparently not on desktop), `navigator.permissions.query({ name: 'notifications' })` always returns 'prompt' regardless of the actual permission value, and even if the notification permission was requested in that same session. However, `Notification.permission` does return the correct value. This behaviour is inconsistent with other browsers, that return consistent values no matter how permissions are queried.
2. Perhaps related to the first issue: a `change` listener on the permissions result object form `navigator.permissions.query` never gets triggered.
I've created a simple HTML app to demonstrate this issue, which I attached.
--
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/20241128/2f0a2e67/attachment.htm>
More information about the webkit-unassigned
mailing list