<?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>284216</bug_id>
          
          <creation_ts>2024-12-06 20:39:51 -0800</creation_ts>
          <short_desc>Create WebKitWebExtensionMatchPattern API for WebKitGTK</short_desc>
          <delta_ts>2025-01-31 08:03:41 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=286813</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jamie Murphy">jmurphy</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>dpino</cc>
    
    <cc>philn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2079853</commentid>
    <comment_count>0</comment_count>
    <who name="Jamie Murphy">jmurphy</who>
    <bug_when>2024-12-06 20:39:51 -0800</bug_when>
    <thetext>This API exposes WebExtensionMatchPattern support to WebKitGtk, which can then be used by future implementations of WebExtension and WebExtensionContext.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2079854</commentid>
    <comment_count>1</comment_count>
    <who name="Jamie Murphy">jmurphy</who>
    <bug_when>2024-12-06 20:42:05 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/37582</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084816</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-03 16:45:11 -0800</bug_when>
    <thetext>Committed 288424@main (b2a4be47a0aa): &lt;https://commits.webkit.org/288424@main&gt;

Reviewed commits have been landed. Closing PR #37582 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084850</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-01-04 03:17:24 -0800</bug_when>
    <thetext>After this patch, the &apos;GTK-Linux-64-bit-Release-Debian-Stable-Build&apos; bot is failing with the following error:

https://build.webkit.org/#/builders/46/builds/46081

```
/home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/WebKitBuild/GTK/Release/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:641:11: error: ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_NONE’ was not declared in this scope; did you mean ‘WEBKIT_TYPE_WEB_EXTENSION_MATCH_PATTERN_OPTIONS’?
  641 |         { WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_NONE, &quot;WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_NONE&quot;, &quot;none&quot; },
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           WEBKIT_TYPE_WEB_EXTENSION_MATCH_PATTERN_OPTIONS
/home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/WebKitBuild/GTK/Release/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:642:11: error: ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_SCHEMES’ was not declared in this scope; did you mean ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_ERROR_INVALID_SCHEME’?
  642 |         { WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_SCHEMES, &quot;WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_SCHEMES&quot;, &quot;ignore-schemes&quot; },
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           WEBKIT_WEB_EXTENSION_MATCH_PATTERN_ERROR_INVALID_SCHEME
/home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/WebKitBuild/GTK/Release/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:643:11: error: ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_PATHS’ was not declared in this scope; did you mean ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_ERROR_INVALID_PATH’?
  643 |         { WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_PATHS, &quot;WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_PATHS&quot;, &quot;ignore-paths&quot; },
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           WEBKIT_WEB_EXTENSION_MATCH_PATTERN_ERROR_INVALID_PATH
/home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/WebKitBuild/GTK/Release/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:644:11: error: ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_MATCH_BIDIRECTIONALLY’ was not declared in this scope
  644 |         { WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_MATCH_BIDIRECTIONALLY, &quot;WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_MATCH_BIDIRECTIONALLY&quot;, &quot;match-bidirectionally&quot; },
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084851</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-01-04 03:17:55 -0800</bug_when>
    <thetext>Re-opening for pull request https://github.com/webkit/webkit/pull/38530</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084853</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-04 03:51:16 -0800</bug_when>
    <thetext>Committed 288434@main (1ddcb1544050): &lt;https://commits.webkit.org/288434@main&gt;

Reviewed commits have been landed. Closing PR #38530 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084856</commentid>
    <comment_count>6</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-01-04 05:14:26 -0800</bug_when>
    <thetext>After landing the patch before, there was another build error reported by &apos;GTK-Linux-64-bit-Release-Ubuntu-LTS-Build&apos;:

https://build.webkit.org/#/builders/68/builds/39352

```
/home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/Source/WebKit/UIProcess/API/glib/WebKitWebExtensionMatchPattern.cpp:393:12: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
  393 |     return nullptr;
      |            ^~~~~~~
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084857</commentid>
    <comment_count>7</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-01-04 05:15:08 -0800</bug_when>
    <thetext>Re-opening for pull request https://github.com/webkit/webkit/pull/38531</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084858</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-04 05:24:59 -0800</bug_when>
    <thetext>Committed 288435@main (d812f50c13b6): &lt;https://commits.webkit.org/288435@main&gt;

Reviewed commits have been landed. Closing PR #38531 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084899</commentid>
    <comment_count>9</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-01-05 03:34:39 -0800</bug_when>
    <thetext>(In reply to Diego Pino from comment #3)
&gt; After this patch, the &apos;GTK-Linux-64-bit-Release-Debian-Stable-Build&apos; bot is
&gt; failing with the following error:
&gt; 
&gt; https://build.webkit.org/#/builders/46/builds/46081
&gt; 
&gt; ```
&gt; /home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/
&gt; WebKitBuild/GTK/Release/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:
&gt; 641:11: error: ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_NONE’ was not
&gt; declared in this scope; did you mean
&gt; ‘WEBKIT_TYPE_WEB_EXTENSION_MATCH_PATTERN_OPTIONS’?
&gt;   641 |         { WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_NONE,
&gt; &quot;WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_NONE&quot;, &quot;none&quot; },
&gt;       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&gt;       |           WEBKIT_TYPE_WEB_EXTENSION_MATCH_PATTERN_OPTIONS
&gt; /home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/
&gt; WebKitBuild/GTK/Release/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:
&gt; 642:11: error: ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_SCHEMES’
&gt; was not declared in this scope; did you mean
&gt; ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_ERROR_INVALID_SCHEME’?
&gt;   642 |         { WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_SCHEMES,
&gt; &quot;WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_SCHEMES&quot;,
&gt; &quot;ignore-schemes&quot; },
&gt;       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&gt;       |           WEBKIT_WEB_EXTENSION_MATCH_PATTERN_ERROR_INVALID_SCHEME
&gt; /home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/
&gt; WebKitBuild/GTK/Release/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:
&gt; 643:11: error: ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_PATHS’ was
&gt; not declared in this scope; did you mean
&gt; ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_ERROR_INVALID_PATH’?
&gt;   643 |         { WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_PATHS,
&gt; &quot;WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_IGNORE_PATHS&quot;, &quot;ignore-paths&quot; },
&gt;       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&gt;       |           WEBKIT_WEB_EXTENSION_MATCH_PATTERN_ERROR_INVALID_PATH
&gt; /home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-12-Build/build/
&gt; WebKitBuild/GTK/Release/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:
&gt; 644:11: error:
&gt; ‘WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_MATCH_BIDIRECTIONALLY’ was not
&gt; declared in this scope
&gt;   644 |         {
&gt; WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_MATCH_BIDIRECTIONALLY,
&gt; &quot;WEBKIT_WEB_EXTENSION_MATCH_PATTERN_OPTIONS_MATCH_BIDIRECTIONALLY&quot;,
&gt; &quot;match-bidirectionally&quot; },
&gt;       |          
&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&gt; ```

That happens because there&apos;s a spurious WK_WEB_EXTENSIONS ifdef in Source/WebKit/UIProcess/API/glib/webkit.h.in...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084900</commentid>
    <comment_count>10</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-01-05 03:35:35 -0800</bug_when>
    <thetext>Re-opening for another PR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084901</commentid>
    <comment_count>11</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-01-05 03:38:38 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/38541</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084902</commentid>
    <comment_count>12</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-05 03:40:54 -0800</bug_when>
    <thetext>Committed 288441@main (2df70530c94c): &lt;https://commits.webkit.org/288441@main&gt;

Reviewed commits have been landed. Closing PR #38541 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084903</commentid>
    <comment_count>13</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-01-05 03:55:55 -0800</bug_when>
    <thetext>WebKitWebExtensionMatchPattern.h is GTK-specific, shouldn&apos;t be included in WPE&apos;s webkit.h. Re-opening for follow-up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084904</commentid>
    <comment_count>14</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2025-01-05 04:00:02 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/38542</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084905</commentid>
    <comment_count>15</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-05 04:02:25 -0800</bug_when>
    <thetext>Committed 288442@main (42a7911be14f): &lt;https://commits.webkit.org/288442@main&gt;

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

    </bug>

</bugzilla>