<?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>299873</bug_id>
          
          <creation_ts>2025-09-30 06:45:50 -0700</creation_ts>
          <short_desc>[GStreamer] Don&apos;t advertise support for HDR on systems that don&apos;t explicitly declare that support</short_desc>
          <delta_ts>2025-10-07 11:25:17 -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>New Bugs</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Enrique Ocaña">eocanha</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>dpino</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2147152</commentid>
    <comment_count>0</comment_count>
    <who name="Enrique Ocaña">eocanha</who>
    <bug_when>2025-09-30 06:45:50 -0700</bug_when>
    <thetext>Some websites and JS players can try to play HDR video on systems that don&apos;t support it. Even when there isn&apos;t an effective HDR connected screen detection mechanism yet in place on GStreamer ports, it would be nice to at least report HDR as unsupported to those webpages asking for it.

See: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1564</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2147238</commentid>
    <comment_count>1</comment_count>
    <who name="Enrique Ocaña">eocanha</who>
    <bug_when>2025-09-30 11:58:12 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/51577</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2148674</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-06 02:29:03 -0700</bug_when>
    <thetext>Committed 301049@main (989ce9fac92b): &lt;https://commits.webkit.org/301049@main&gt;

Reviewed commits have been landed. Closing PR #51577 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2148676</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-10-06 02:30:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/162019644&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149116</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-10-07 08:20:03 -0700</bug_when>
    <thetext>The changeset broke WPE build when `WPE_PLATFORM` is disabled:

```
2345678[6/12] Linking CXX shared library lib/libWPEWebKit-2.0.so.1.7.0
FAILED: lib/libWPEWebKit-2.0.so.1.7.0
: &amp;&amp; /usr/bin/clang++-20 -fPIC -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wl,--no-undefined -L/home/pwuser/webkit/WebKitBuild/DependenciesWPE/Root/lib -Wl,--gc-sections -Wl,--disable-new-dtags   -Wl,--version-script,/home/pwuser/webkit/Source/WebKit/webkitglib-symbols.map -shared -Wl,-soname,libWPEWebKit-2.0.so.1 -o lib/libWPEWebKit-2.0.so.1.7.0 @CMakeFiles/WebKit.rsp  &amp;&amp; :
/usr/bin/ld: Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-56.cpp.o: in function `WebCore::GStreamerRegistryScanner::isConfigurationSupported(WebCore::GStreamerRegistryScanner::Configuration, WebCore::MediaConfiguration const&amp;) const&apos;:
UnifiedSource-3c72abbe-56.cpp:(.text._ZNK7WebCore24GStreamerRegistryScanner24isConfigurationSupportedENS0_13ConfigurationERKNS_18MediaConfigurationE+0x7c): undefined reference to `WebCore::primaryScreenDisplayID()&apos;
/usr/bin/ld: UnifiedSource-3c72abbe-56.cpp:(.text._ZNK7WebCore24GStreamerRegistryScanner24isConfigurationSupportedENS0_13ConfigurationERKNS_18MediaConfigurationE+0x80): undefined reference to `WebCore::screenData(unsigned int)&apos;
clang++-20: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
```

Functions `screenData` and `primaryScreenDisplayID` are only defined when `WPE_PLATFORM` is enabled https://github.com/WebKit/WebKit/blob/main/Source/WebCore/platform/PlatformScreen.cpp#L29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149117</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-10-07 08:22:13 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/51946</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149121</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-07 08:41:08 -0700</bug_when>
    <thetext>Committed 301141@main (d2b685c24ae4): &lt;https://commits.webkit.org/301141@main&gt;

Reviewed commits have been landed. Closing PR #51946 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149162</commentid>
    <comment_count>7</comment_count>
    <who name="Enrique Ocaña">eocanha</who>
    <bug_when>2025-10-07 11:25:17 -0700</bug_when>
    <thetext>Diego, sorry for having introduced this error and thank a lot for having fixed it 🙏🙏🙏</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>