<?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>256136</bug_id>
          
          <creation_ts>2023-04-29 13:57:47 -0700</creation_ts>
          <short_desc>Features specific to other ports should not be compiled in</short_desc>
          <delta_ts>2023-05-03 13:27:24 -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 Local 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=255518</see_also>
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1952033</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2023-04-29 13:57:47 -0700</bug_when>
    <thetext>After bug #255518 I have noticed that some of the features which end
up in the built code do not make any sense for the GLib ports. For
example:

  AcceleratedDrawingEnabled:
    type: bool
    status: internal
    defaultsOverridable: true
    humanReadableName: &quot;GraphicsLayerCA accelerated drawing&quot;
    humanReadableDescription: &quot;Enable GraphicsLayerCA accelerated drawing&quot;
    ...

The above feature is specific to the Apple ports, as none of WPE, GTK,
WinCairo, or PlayStation can use CoreAnimation.

It would be good to go over the list in UnifiedWebPreferences.yaml and
add missing conditions for such cases; e.g. in the example above we need
to add:

    condition: USE(CA)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952201</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2023-05-01 12:57:41 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #0)
&gt; After bug #255518 I have noticed that some of the features which end
&gt; up in the built code do not make any sense for the GLib ports. For
&gt; example:
&gt; 
&gt;   AcceleratedDrawingEnabled:
&gt;     type: bool
&gt;     status: internal
&gt;     defaultsOverridable: true
&gt;     humanReadableName: &quot;GraphicsLayerCA accelerated drawing&quot;
&gt;     humanReadableDescription: &quot;Enable GraphicsLayerCA accelerated drawing&quot;
&gt;     ...
&gt; 
&gt; The above feature is specific to the Apple ports, as none of WPE, GTK,
&gt; WinCairo, or PlayStation can use CoreAnimation.
&gt; 
&gt; It would be good to go over the list in UnifiedWebPreferences.yaml and
&gt; add missing conditions for such cases; e.g. in the example above we need
&gt; to add:
&gt; 
&gt;     condition: USE(CA)

Mmmmkay, maybe this wasn&apos;t the best example because the feature setting is
used also by ports that don&apos;t define USE(CA), so in this case the course of
action would be to change the description to read “GraphicsLayer accelerated
drawing” (without the “CA”); but the general idea applies to other feature
settings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952597</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2023-05-03 02:00:14 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13392</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952715</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-03 13:26:20 -0700</bug_when>
    <thetext>Committed 263646@main (8cb6215d7346): &lt;https://commits.webkit.org/263646@main&gt;

Reviewed commits have been landed. Closing PR #13392 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952716</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-03 13:27:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/108857292&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>