[Webkit-unassigned] [Bug 256201] New: The onchange event in navigator.permissions.query doesn't work properly in Safari 16.4.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 2 00:34:14 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=256201

            Bug ID: 256201
           Summary: The onchange event in navigator.permissions.query
                    doesn't work properly in Safari 16.4.
           Product: WebKit
           Version: Safari 16
          Hardware: Unspecified
                OS: iOS 16
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jyunhanlin at gmail.com

# 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.

-- 
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/20230502/802a3641/attachment.htm>


More information about the webkit-unassigned mailing list