<?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>233731</bug_id>
          
          <creation_ts>2021-12-01 15:56:52 -0800</creation_ts>
          <short_desc>[GStreamer] test fast/mediastream/getDisplayMedia-size.html fails</short_desc>
          <delta_ts>2023-04-28 02:58:44 -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>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>
          
          <blocked>235885</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Arcady Goldmints-Orlov">crzwdjk</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>pnormand</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1819450</commentid>
    <comment_count>0</comment_count>
    <who name="Arcady Goldmints-Orlov">crzwdjk</who>
    <bug_when>2021-12-01 15:56:52 -0800</bug_when>
    <thetext>In bug 231286, a case was fixed wherein &quot;a valid applyConstraints on a MediaStreamTrack is now throwing OverconstrainedError. This used to work in earlier versions of safari and has regressed only with Safari 15. Attaching a sample html page that illustrates the issue&quot; and added a test fast/mediastream/getDisplayMedia-size.html for that issue, which fails on GTK and WPE.

The sample HTML page from that issue (https://bug-231286-attachments.webkit.org/attachment.cgi?id=440353) demonstrates the failure on the GTK minibrowser, but works fine in Firefox so presumably this is something that should be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819652</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-12-02 04:25:08 -0800</bug_when>
    <thetext>(In reply to Arcady Goldmints-Orlov from comment #0)

&gt; The sample HTML page from that issue
&gt; (https://bug-231286-attachments.webkit.org/attachment.cgi?id=440353)
&gt; demonstrates the failure on the GTK minibrowser, but works fine in Firefox
&gt; so presumably this is something that should be fixed.

run-minibrowser --gtk --enable-mock-capture-devices=1 &quot;https://bug-231286-attachments.webkit.org/attachment.cgi?id=440353&quot; works fine here

With real devices I get a crash (sorry, no debug symbs)

(gdb) bt
#0  0x00007f457631790a in WebCore::RealtimeVideoCaptureSource::ensureIntrinsicSizeMaintainsAspectRatio() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#1  0x00007f4576c37798 in WebCore::GStreamerVideoCaptureSource::settingsDidChange(WTF::OptionSet&lt;WebCore::RealtimeMediaSourceSettings::Flag&gt;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#2  0x00007f4576302a87 in WebCore::RealtimeMediaSource::notifySettingsDidChangeObservers(WTF::OptionSet&lt;WebCore::RealtimeMediaSourceSettings::Flag&gt;) ()
    at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#3  0x00007f457630431a in WebCore::RealtimeMediaSource::setSize(WebCore::IntSize const&amp;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#4  0x00007f457631730b in WebCore::RealtimeVideoCaptureSource::setSizeAndFrameRate(std::optional&lt;int&gt;, std::optional&lt;int&gt;, std::optional&lt;double&gt;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#5  0x00007f45763061ac in WebCore::RealtimeMediaSource::applyConstraints(WebCore::FlattenedConstraint const&amp;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#6  0x00007f4576306382 in WebCore::RealtimeMediaSource::applyConstraints(WebCore::MediaConstraints const&amp;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#7  0x00007f4576c36e94 in WebCore::GStreamerVideoCaptureSource::createPipewireSource(WTF::String&amp;&amp;, int, WTF::String&amp;&amp;, WebCore::MediaConstraints const*, WebCore::CaptureDevice::DeviceType) ()
    at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#8  0x00007f4576c3ba3f in WebCore::GStreamerDisplayCaptureDeviceManager::createDisplayCaptureSource(WebCore::CaptureDevice const&amp;, WebCore::MediaConstraints const*) ()
    at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#9  0x00007f4576c389e4 in WebCore::GStreamerDisplayCaptureSourceFactory::createDisplayCaptureSource(WebCore::CaptureDevice const&amp;, WebCore::MediaConstraints const*) ()
    at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#10 0x00007f4576306ed1 in WebCore::RealtimeMediaSourceCenter::createMediaStream(WTF::Ref&lt;WTF::Logger const, WTF::RawPtrTraits&lt;WTF::Logger const&gt; &gt;&amp;&amp;, WTF::Function&lt;void (std::experimental::fundamentals_v3::expected&lt;WTF::Ref&lt;WebCore::MediaStreamPrivate, WTF::RawPtrTraits&lt;WebCore::MediaStreamPrivate&gt; &gt;, WTF::String&gt;&amp;&amp;)&gt;&amp;&amp;, WTF::String&amp;&amp;, WebCore::CaptureDevice&amp;&amp;, WebCore::CaptureDevice&amp;&amp;, WebCore::MediaStreamRequest const&amp;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#11 0x00007f4575663994 in WTF::Detail::CallableWrapper&lt;WebCore::UserMediaRequest::allow(WebCore::CaptureDevice&amp;&amp;, WebCore::CaptureDevice&amp;&amp;, WTF::String&amp;&amp;, WTF::CompletionHandler&lt;void ()&gt;&amp;&amp;)::$_5, void&gt;::call()
    () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#12 0x00007f4575afb188 in WebCore::EventLoop::run() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#13 0x00007f4575b85be4 in WebCore::WindowEventLoop::didReachTimeToRun() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#14 0x00007f45761b6773 in WebCore::ThreadTimers::sharedTimerFiredInternal() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#15 0x00007f45727ea2ec in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::$_3::__invoke(void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#16 0x00007f45727e971a in WTF::RunLoop::$_0::__invoke(_GSource*, int (*)(void*), void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#17 0x00007f456f0e9294 in g_main_dispatch (context=0xbb13d0) at ../glib/gmain.c:3381
#18 g_main_context_dispatch (context=0xbb13d0) at ../glib/gmain.c:4099
#19 0x00007f456f0e9638 in g_main_context_iterate (context=0xbb13d0, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4175
#20 0x00007f456f0e9943 in g_main_loop_run (loop=0xc5a120) at ../glib/gmain.c:4373
#21 0x00007f45727e9cea in WTF::RunLoop::run() () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#22 0x00007f4574c9e69c in WebKit::WebProcessMain(int, char**) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#23 0x00007f456ea40b90 in __libc_start_main (main=0x4008a0 &lt;main&gt;, argc=3, argv=0x7ffc6d77bb58, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffc6d77bb48)
    at ../csu/libc-start.c:332
#24 0x00000000004007de in _start () at ../sysdeps/x86_64/start.S:120</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946029</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2023-04-02 05:01:33 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/12292</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947919</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-11 07:48:31 -0700</bug_when>
    <thetext>Committed 262825@main (e5975bd98661): &lt;https://commits.webkit.org/262825@main&gt;

Reviewed commits have been landed. Closing PR #12292 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947920</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-11 07:49:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/107882604&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>