<?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>247926</bug_id>
          
          <creation_ts>2022-11-14 16:46:17 -0800</creation_ts>
          <short_desc>Add a &apos;status&apos; field to feature flags denoting their use case</short_desc>
          <delta_ts>2023-04-17 14:15:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit 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>
          <dependson>250065</dependson>
    
    <dependson>250066</dependson>
    
    <dependson>255547</dependson>
          <blocked>222885</blocked>
    
    <blocked>250106</blocked>
    
    <blocked>250539</blocked>
    
    <blocked>250156</blocked>
    
    <blocked>250164</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Williams">emw</reporter>
          <assigned_to name="Elliott Williams">emw</assigned_to>
          <cc>caitp</cc>
    
    <cc>commit-queue</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1912467</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-11-14 16:46:17 -0800</bug_when>
    <thetext>This is a step toward the semantics described in https://bugs.webkit.org/show_bug.cgi?id=222885, where each feature is marked with a &quot;status&quot; label that indicates how it is intended to be used, and whether it should be surfaced in browser UI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912468</commentid>
    <comment_count>1</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-11-14 16:46:31 -0800</bug_when>
    <thetext>rdar://92112770</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912472</commentid>
    <comment_count>2</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-11-14 17:19:02 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6497</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915434</commentid>
    <comment_count>3</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-11-29 15:15:35 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6945</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915525</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-29 22:30:38 -0800</bug_when>
    <thetext>Committed 257166@main (429cc4c78986): &lt;https://commits.webkit.org/257166@main&gt;

Reviewed commits have been landed. Closing PR #6945 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916288</commentid>
    <comment_count>5</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-12-02 12:05:13 -0800</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/7081</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922767</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-03 17:56:24 -0800</bug_when>
    <thetext>Committed 258413@main (4663bc861b1e): &lt;https://commits.webkit.org/258413@main&gt;

Reviewed commits have been landed. Closing PR #7081 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922802</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2023-01-03 23:11:45 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 250065</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922929</commentid>
    <comment_count>8</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-01-04 12:23:47 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8206</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922974</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-04 13:46:03 -0800</bug_when>
    <thetext>Committed 258448@main (9def6e6f0258): &lt;https://commits.webkit.org/258448@main&gt;

Reviewed commits have been landed. Closing PR #8206 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924226</commentid>
    <comment_count>10</comment_count>
    <who name="Caitlin Potter (:caitp)">caitp</who>
    <bug_when>2023-01-09 16:58:40 -0800</bug_when>
    <thetext>While we&apos;re refactoring WebPreferences, would it be worth integrating JSC feature flags defined in OptionList.h, or providing a simple cross-port way to have a WebCore feature imply a JSC feature?

I&apos;ve been struggling to get this to work for the one-off case of WebAPIsInShadowRealmEnabled implying JSC_useShadowRealm, it would be super helpful if there were a simpler way to do this for future JS features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924231</commentid>
    <comment_count>11</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-01-09 17:17:28 -0800</bug_when>
    <thetext>&gt; While we&apos;re refactoring WebPreferences, would it be worth integrating JSC feature flags defined in OptionList.h, or providing a simple cross-port way to have a WebCore feature imply a JSC feature?

The trouble with JSC options is that (as I understand it), its options are loaded before WebCore is initialized, and the config is frozen after the VM is instantiated. But I agree that it would be really nice to have a better way to pass things down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924409</commentid>
    <comment_count>12</comment_count>
    <who name="Caitlin Potter (:caitp)">caitp</who>
    <bug_when>2023-01-10 07:35:46 -0800</bug_when>
    <thetext>(In reply to Elliott Williams from comment #11)
&gt; &gt; While we&apos;re refactoring WebPreferences, would it be worth integrating JSC feature flags defined in OptionList.h, or providing a simple cross-port way to have a WebCore feature imply a JSC feature?
&gt; 
&gt; The trouble with JSC options is that (as I understand it), its options are
&gt; loaded before WebCore is initialized, and the config is frozen after the VM
&gt; is instantiated. But I agree that it would be really nice to have a better
&gt; way to pass things down.

My current thinking is that this comes down to individual ports accessing shared WebPreferences in a UI process, and using that to modify launch options for the web process which would in turn affect JSC&apos;s configuration - but since I primarily work on JSC, I&apos;m not sure what would be needed to achieve this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925210</commentid>
    <comment_count>13</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-01-12 18:20:16 -0800</bug_when>
    <thetext>(In reply to Caitlin Potter (:caitp) from comment #12)
&gt; 
&gt; My current thinking is that this comes down to individual ports accessing
&gt; shared WebPreferences in a UI process, and using that to modify launch
&gt; options for the web process which would in turn affect JSC&apos;s configuration -
&gt; but since I primarily work on JSC, I&apos;m not sure what would be needed to
&gt; achieve this.

OK, this makes sense! I think it would work. Filed https://bugs.webkit.org/show_bug.cgi?id=250539 to track this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>