Bug 259202

Summary: [WebXR] Update the algorithm for resolving requested features
Product: WebKit Reporter: Ada Chan <adachan>
Component: WebXRAssignee: Ada Chan <adachan>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ada Chan 2023-07-13 19:24:48 PDT
[WebXR] Update the algorithm for resolving requested features
Comment 1 Radar WebKit Bug Importer 2023-07-13 19:25:08 PDT
<rdar://problem/112239466>
Comment 2 Ada Chan 2023-07-13 19:28:47 PDT
The updated spec no longer automatically sets granted to all the previously enabled features, but rather only add it to granted if it's requested and previously enabled.
See https://immersive-web.github.io/webxr/#resolve-the-requested-features.

Also update the APIUIClient method for requesting XR session permissions
to take in the required and optional features requested by the session
so the client has more information to decide how to present the feature
consent UI to the users.
Comment 4 Ada Chan 2023-07-13 21:23:43 PDT
(In reply to Ada Chan from comment #3)
> Pull request:
> https://stash.sd.apple.com/projects/SAFARI/repos/webkit/pull-requests/11/
> overview

Please disregard this link.
Comment 5 Ada Chan 2023-07-14 02:16:24 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15836
Comment 6 EWS 2023-07-18 13:53:12 PDT
Committed 266137@main (7f4d02174118): <https://commits.webkit.org/266137@main>

Reviewed commits have been landed. Closing PR #15836 and removing active labels.