Bug 249075

Summary: Check for promise before resolving in FullscreenManager::exitFullscreen()
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: DOMAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Tim Nguyen (:ntim) 2022-12-10 10:45:20 PST
The promise can be nullptr if called from the legacy fullscreen API (see DocumentFullscreen::webkitExitFullScreen), so we should check it's existence before trying to resolve.
Comment 1 Radar WebKit Bug Importer 2022-12-10 10:45:45 PST
<rdar://problem/103215492>
Comment 2 Tim Nguyen (:ntim) 2022-12-10 10:47:25 PST
Pull request: https://github.com/WebKit/WebKit/pull/7443
Comment 3 EWS 2022-12-10 16:09:50 PST
Committed 257689@main (91d9d701a8cd): <https://commits.webkit.org/257689@main>

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