You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add pending fullscreen request flag and promise to document state
This commit adds exported definitions for both 'pending fullscreen request flag'
and 'pending fullscreen request promise' to document state, enabling other
specifications to use modern WebIDL patterns.
Changes:
- Add 'pending fullscreen request flag' to document state (exported)
- Add 'pending fullscreen request promise' to document state (exported)
- Set flag and store promise when requestFullscreen() starts processing
- Clear flag and promise when request resolves (success) or rejects (error)
- Use consistent naming conventions without interface binding
The flag enables detecting pending fullscreen requests, while the promise
enables other specifications to use WebIDL 'react' patterns to respond to
fullscreen request rejections instead of relying on flag state changes.
This enables other specifications (like Screen Orientation) to detect when
a document has a pending fullscreen request and react to promise rejections,
allowing modern promise-based integration for web compatibility.
Related to w3c/screen-orientation#254 and w3c/screen-orientation#255
0 commit comments