Bug 293089
| Summary: | [Permissions API] Report the true permission state of Geolocation only when that API has been used since the page load | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | rupin |
| Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | a.berner, smoser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
rupin
[Permissions API] Report the true permission state of Geolocation only when that API has been used since the page load
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/151426960>
rupin
Pull request: https://github.com/WebKit/WebKit/pull/45470
EWS
Committed 295237@main (386b21db7bdc): <https://commits.webkit.org/295237@main>
Reviewed commits have been landed. Closing PR #45470 and removing active labels.
rupin
*** Bug 258726 has been marked as a duplicate of this bug. ***
rupin
*** Bug 275950 has been marked as a duplicate of this bug. ***
rupin
*** Bug 275479 has been marked as a duplicate of this bug. ***
smoser
Thanks for the fix!
I tried reproducing the behavior for https://bugs.webkit.org/show_bug.cgi?id=275479. Using https://permission.site/permission-status I noticed, that the permission state correctly is reported as GRANTED when I query with
navigator.permissions.query({ name: 'geolocation' })
but the `change` event for the permission status, outlined at https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/change_event, does not fire when going from PROMPT to GRANTED. Is that intended?
rupin
Hello! Currently, the change event is not fully supported, and we are aware of this.
smoser
Thanks for confirming! I reported a similar discrepancy between the query and event permission API on MacOS at https://bugs.webkit.org/show_bug.cgi?id=275268, potentially close it as duplicate.
rupin
Sounds good, thank you for filing the bug!