WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
256201
The onchange event in navigator.permissions.query doesn't work properly in Safari 16.4.
https://bugs.webkit.org/show_bug.cgi?id=256201
Summary
The onchange event in navigator.permissions.query doesn't work properly in Sa...
jyunhanlin
Reported
2023-05-02 00:34:14 PDT
# Steps to Reproduce: 1. Open a web page in Safari 16.4. 2. Try to register the onchange event with the following code: ``` navigator.permissions.query({ name: 'notifications' }).then(permissionStatus => { permissionStatus.onchange = () => { console.log('Notification permission status has changed:', permissionStatus.state); }; }); ``` 3. Choose to either allow or block the notification permission in the popped-up permission request dialog. 4. Observe if the console outputs a message indicating the change of notification permission status. # Expected Results: The console should output a message indicating the change of notification permission status when the permission status is changed. # Actual Results: The console doesn't output any message indicating the change of notification permission status when the permission status is changed. # Version Information: Safari browser version: 16.4 Operating system: macOS Big Sur 11.6.3 # Additional Information: The onchange event works fine in other modern browsers such as Chrome, Firefox, and Edge.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-05-02 18:43:59 PDT
<
rdar://problem/108820760
>
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