Bug 257638

Summary: Existing full screen should abort screen orientation pending promises
Product: WebKit Reporter: Marcos Caceres <marcosc>
Component: WebCore Misc.Assignee: Marcos Caceres <marcosc>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, webkit-bug-importer
Priority: P2 Keywords: InRadar, WPTImpact
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
URL: https://wpt.live/screen-orientation/fullscreen-interactions.html

Description Marcos Caceres 2023-06-01 22:48:39 PDT
When exiting full screen [1] on Step 9 (as of date when this bug was filed), the full screen API calls into the Screen Orientation Spec run the "fully unlock the screen orientation steps" of |doc|. 

However, WebKit doesn't currently reject the document's [[orientationPendingPromise]]. 

[1]https://fullscreen.spec.whatwg.org/#exit-fullscreen
[2]https://w3c.github.io/screen-orientation/#dfn-fully-unlock-the-screen-orientation-steps
Comment 1 Radar WebKit Bug Importer 2023-06-01 22:58:22 PDT
<rdar://problem/110153261>
Comment 2 Marcos Caceres 2023-06-01 23:01:13 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14617