<?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>250149</bug_id>
          
          <creation_ts>2023-01-05 14:01:40 -0800</creation_ts>
          <short_desc>Add plumbing for Gamepad.vibrationActuator support</short_desc>
          <delta_ts>2023-01-06 16:28:04 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>248989</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1923274</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-01-05 14:01:40 -0800</bug_when>
    <thetext>Add plumbing for Gamepad.vibrationActuator support:
- https://w3c.github.io/gamepad/extensions.html#dom-gamepadhapticactuator</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923275</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-01-05 14:17:49 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8251</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923595</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-06 13:57:03 -0800</bug_when>
    <thetext>Committed 258559@main (7203ee047b6c): &lt;https://commits.webkit.org/258559@main&gt;

Reviewed commits have been landed. Closing PR #8251 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923596</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-06 13:58:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/103966957&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923640</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-06 16:05:05 -0800</bug_when>
    <thetext>Looks like this broke the GTK build:

/home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/gamepad/EmptyGamepadProvider.cpp: In member function ‘virtual void WebCore::EmptyGamepadProvider::playEffect(unsigned int, const WTF::String&amp;, WebCore::GamepadHapticEffectType, const WebCore::GamepadEffectParameters&amp;, WTF::CompletionHandler&lt;void(bool)&gt;&amp;&amp;)’:
/home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/gamepad/EmptyGamepadProvider.cpp:52:22: error: no match for call to ‘(WTF::CompletionHandler&lt;void(bool)&gt;) (bool)’
   52 |     completionHandler(false);
      |     ~~~~~~~~~~~~~~~~~^~~~~~~
/home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/gamepad/EmptyGamepadProvider.cpp: In member function ‘virtual void WebCore::EmptyGamepadProvider::stopEffects(unsigned int, const WTF::String&amp;, WTF::CompletionHandler&lt;void()&gt;&amp;&amp;)’:
/home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/gamepad/EmptyGamepadProvider.cpp:57:22: error: no match for call to ‘(WTF::CompletionHandler&lt;void()&gt;) ()’
   57 |     completionHandler();
      |     ~~~~~~~~~~~~~~~~~^~

The code *looks* correct, though...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923645</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-01-06 16:11:22 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #4)
&gt; Looks like this broke the GTK build:
&gt; 
&gt; /home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/gamepad/
&gt; EmptyGamepadProvider.cpp: In member function ‘virtual void
&gt; WebCore::EmptyGamepadProvider::playEffect(unsigned int, const WTF::String&amp;,
&gt; WebCore::GamepadHapticEffectType, const WebCore::GamepadEffectParameters&amp;,
&gt; WTF::CompletionHandler&lt;void(bool)&gt;&amp;&amp;)’:
&gt; /home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/gamepad/
&gt; EmptyGamepadProvider.cpp:52:22: error: no match for call to
&gt; ‘(WTF::CompletionHandler&lt;void(bool)&gt;) (bool)’
&gt;    52 |     completionHandler(false);
&gt;       |     ~~~~~~~~~~~~~~~~~^~~~~~~
&gt; /home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/gamepad/
&gt; EmptyGamepadProvider.cpp: In member function ‘virtual void
&gt; WebCore::EmptyGamepadProvider::stopEffects(unsigned int, const WTF::String&amp;,
&gt; WTF::CompletionHandler&lt;void()&gt;&amp;&amp;)’:
&gt; /home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/gamepad/
&gt; EmptyGamepadProvider.cpp:57:22: error: no match for call to
&gt; ‘(WTF::CompletionHandler&lt;void()&gt;) ()’
&gt;    57 |     completionHandler();
&gt;       |     ~~~~~~~~~~~~~~~~~^~
&gt; 
&gt; The code *looks* correct, though...

Maybe we need to include &lt;wtf/CompletionHandler.h&gt; inside EmptyGamepadProvider.cpp. Would you be able to try?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923650</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-06 16:16:03 -0800</bug_when>
    <thetext>I had the same idea. Pretty sure it worked: my build is nearly done....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923654</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-06 16:21:47 -0800</bug_when>
    <thetext>Yes, that works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923659</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-06 16:24:23 -0800</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/8331</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923662</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-06 16:27:57 -0800</bug_when>
    <thetext>Committed 258578@main (3383a19ab4f9): &lt;https://commits.webkit.org/258578@main&gt;

Reviewed commits have been landed. Closing PR #8331 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>