<?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>262515</bug_id>
          
          <creation_ts>2023-10-02 16:56:41 -0700</creation_ts>
          <short_desc>Fix build break for ENABLE(MEDIA_SOURCE) &amp;&amp; !ENABLE(MANAGED_MEDIA_SOURCE) after https://commits.webkit.org/268711@main</short_desc>
          <delta_ts>2023-10-09 16:57:19 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=262438</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="Jigen Zhou">jigen.zhou</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>tomoki.imai</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>Yousuke.Kimoto</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1981917</commentid>
    <comment_count>0</comment_count>
    <who name="Jigen Zhou">jigen.zhou</who>
    <bug_when>2023-10-02 16:56:41 -0700</bug_when>
    <thetext>The code change in https://commits.webkit.org/268711@main works if both ENABLE(MEDIA_SOURCE) &amp;&amp; ENABLE(MANAGED_MEDIA_SOURCE), but a compiling error can be caused by the generated code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982788</commentid>
    <comment_count>1</comment_count>
    <who name="Tomoki Imai">tomoki.imai</who>
    <bug_when>2023-10-05 01:25:10 -0700</bug_when>
    <thetext>The following code is a part of WebCore/DerivedSources/JSVideoTrack.cpp.
It accesses &quot;managedMediaSourceEnabled&quot; without &quot;#if ENABLE(ManagedMediaSourceEnabled)&quot; block and causes a build failure if ENABLE(MEDIA_SOURCE) &amp;&amp; !ENABLE(ManagedMediaSourceEnabled).


#if ENABLE(MEDIA_SOURCE)
    if (!(downcast&lt;Document&gt;(jsCast&lt;JSDOMGlobalObject*&gt;(globalObject())-&gt;scriptExecutionContext())-&gt;settingsValues().mediaSourceEnabled || downcast&lt;Document&gt;(jsCast&lt;JSDOMGlobalObject*&gt;(globalObject())-&gt;scriptExecutionContext())-&gt;settingsValues().managedMediaSourceEnabled)) {
        hasDisabledRuntimeProperties = true;
        auto propertyName = Identifier::fromString(vm, &quot;sourceBuffer&quot;_s);
        VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
        DeletePropertySlot slot;
        JSObject::deleteProperty(this, globalObject(), propertyName, slot);
    }
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982789</commentid>
    <comment_count>2</comment_count>
    <who name="Tomoki Imai">tomoki.imai</who>
    <bug_when>2023-10-05 01:35:45 -0700</bug_when>
    <thetext>In WebCore/DerivedSources/Settings.h, &quot;managedMediaSourceEnabled&quot; is blocked by &quot; ENABLE(MANAGED_MEDIA_SOURCE)&quot;.


class Settings : public SettingsBase, public RefCounted&lt;Settings&gt; {
    struct Values {
...
#if ENABLE(MANAGED_MEDIA_SOURCE)
        bool managedMediaSourceEnabled : 1;
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983864</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-09 16:57:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/116707041&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>