Bug 256136 - Features specific to other ports should not be compiled in
Summary: Features specific to other ports should not be compiled in
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adrian Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-29 13:57 PDT by Adrian Perez
Modified: 2023-05-03 13:27 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2023-04-29 13:57:47 PDT
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: "GraphicsLayerCA accelerated drawing"
    humanReadableDescription: "Enable GraphicsLayerCA accelerated drawing"
    ...

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)
Comment 1 Adrian Perez 2023-05-01 12:57:41 PDT
(In reply to Adrian Perez from comment #0)
> 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: "GraphicsLayerCA accelerated drawing"
>     humanReadableDescription: "Enable GraphicsLayerCA accelerated drawing"
>     ...
> 
> 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)

Mmmmkay, maybe this wasn't the best example because the feature setting is
used also by ports that don'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.
Comment 2 Adrian Perez 2023-05-03 02:00:14 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13392
Comment 3 EWS 2023-05-03 13:26:20 PDT
Committed 263646@main (8cb6215d7346): <https://commits.webkit.org/263646@main>

Reviewed commits have been landed. Closing PR #13392 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2023-05-03 13:27:24 PDT
<rdar://problem/108857292>