Bug 282998
Summary: | HTMLElement.requestFullscreen does not return a Promise. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Andrew Hodel <andrewhodel> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Major | CC: | jer.noble, karlcow, ntim |
Priority: | P2 | ||
Version: | Safari 18 | ||
Hardware: | All | ||
OS: | macOS 15 | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=248879 |
Andrew Hodel
It is document on MDN as returning a Promise and a Promise is returned in Edge, Firefox, Chrome and Oculus.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Andrew Hodel
Karl Dubost
Bug 248879 is marked as fixed and this problem is not fixed. There is no promise returned by HTMLElement.requestFullscreen in Safari.
Karl Dubost
const element = document.createElement('div');
console.log('requestFullscren: ', element.requestFullscreen());
Safari: Promise
Firefox: Promise
Chrome: Promise
Tested in
Safari Technology Preview 206 20621.1.3.21.1
Firefox Nightly 134.0a1 13424.11.7
Google Chrome Canary 133.0.6835.0 6835.0
Karl Dubost
*** This bug has been marked as a duplicate of bug 248879 ***