<?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>216182</bug_id>
          
          <creation_ts>2020-09-04 09:29:40 -0700</creation_ts>
          <short_desc>Remove stale reference to RuntimeEnabledFeatures</short_desc>
          <delta_ts>2025-05-14 10:07:23 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=215962</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>GoodFirstBug, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>215981</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Weinig">sam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>emw</cc>
    
    <cc>graouts</cc>
    
    <cc>ntim</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1685693</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-09-04 09:29:40 -0700</bug_when>
    <thetext>Use of WebCore::RuntimeEnabledFeatures is almost always wrong as it is a global singleton that can be set by multiple different API layer preferences objects.

Over the years, it has become convenient, as it &quot;works&quot; for settings that need to be accessed in non-page accessible places, but in reality, those are likely threading issues waiting to happen or layering violations due to use of RuntimeEnabledFeatures from the platform directory.

See related, 215962 (Obsolete DeprecatedGlobalSettings)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685695</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-09-04 09:31:20 -0700</bug_when>
    <thetext>The biggest thing to do here is likely adding a mechanism to extend WebCore::Settings (as generated from Settings.yaml) or a subset thereof, to work with Workers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1687738</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-09-11 09:30:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/68714643&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976555</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-08 16:02:38 -0700</bug_when>
    <thetext>Only able to find one incorrect include &apos;RuntimeEnabledFeatures&apos; (using this search):

https://searchfox.org/wubkat/source/PerformanceTests/DecoderTest/DecoderTest/main.mm#35

and

https://searchfox.org/wubkat/source/PerformanceTests/DecoderTest/DecoderTest/main.mm#100

It also got consolidated here: https://github.com/WebKit/WebKit/commit/5ddb4127ac4e4a104338422e546a1cdc7b698769

@Tim - you reviewed above commit, do we need this bug to remain open?

@Alexey - any help if Tim is not right contact?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976577</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-09-08 18:48:37 -0700</bug_when>
    <thetext>CC&apos;ing some folks who worked on feature flags recently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990119</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-11-06 01:57:17 -0800</bug_when>
    <thetext>Yeah RuntimeEnabledFeatures was removed. I&apos;m going to repurpose this to be about removing the stale include Ahmad found.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2116414</commentid>
    <comment_count>6</comment_count>
    <who name="Alexsander Borges Damaceno">alexbdamac</who>
    <bug_when>2025-05-11 23:35:56 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/45233</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2117094</commentid>
    <comment_count>7</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2025-05-14 10:07:10 -0700</bug_when>
    <thetext>I removed this file (along with the whole DecoderTest directory) in https://bugs.webkit.org/show_bug.cgi?id=292936 / 593ffb9. We can close this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>