<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>282998</bug_id>
          
          <creation_ts>2024-11-12 11:08:47 -0800</creation_ts>
          <short_desc>HTMLElement.requestFullscreen does not return a Promise.</short_desc>
          <delta_ts>2024-11-13 17:13:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari 18</version>
          <rep_platform>All</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>248879</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=248879</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Hodel">andrewhodel</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jer.noble</cc>
    
    <cc>karlcow</cc>
    
    <cc>ntim</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2074569</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2024-11-12 11:08:47 -0800</bug_when>
    <thetext>It is document on MDN as returning a Promise and a Promise is returned in Edge, Firefox, Chrome and Oculus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074781</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Hodel">andrewhodel</who>
    <bug_when>2024-11-13 05:17:42 -0800</bug_when>
    <thetext>Karl Dubost

Bug 248879 is marked as fixed and this problem is not fixed.  There is no promise returned by HTMLElement.requestFullscreen in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074985</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-11-13 17:07:55 -0800</bug_when>
    <thetext>const element = document.createElement(&apos;div&apos;); 
console.log(&apos;requestFullscren: &apos;, 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074987</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-11-13 17:13:49 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 248879 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>