<?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>218028</bug_id>
          
          <creation_ts>2020-10-21 08:50:59 -0700</creation_ts>
          <short_desc>Simplify ScriptExecutionContext::vm()</short_desc>
          <delta_ts>2020-10-21 16:10:32 -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>Web Audio</component>
          <version>WebKit Nightly 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=218057</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>
          
          <blocked>217724</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>cdumez</cc>
    
    <cc>darin</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>ggaren</cc>
    
    <cc>kangil.han</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1700202</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-10-21 08:50:59 -0700</bug_when>
    <thetext>Simplify ScriptExecutionContext::vm().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700204</commentid>
    <comment_count>1</comment_count>
      <attachid>411992</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-10-21 08:51:39 -0700</bug_when>
    <thetext>Created attachment 411992
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700238</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-10-21 09:40:50 -0700</bug_when>
    <thetext>Committed r268801: &lt;https://trac.webkit.org/changeset/268801&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 411992.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700240</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-21 09:41:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/70532783&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700420</commentid>
    <comment_count>4</comment_count>
      <attachid>411992</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-10-21 15:24:43 -0700</bug_when>
    <thetext>Comment on attachment 411992
Patch

I feel like this would be even better as a pure-virtual function that the subclasses would implement. That would avoid one virtual function call in the worker/worklet case as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700422</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-10-21 15:27:29 -0700</bug_when>
    <thetext>(In reply to Sam Weinig from comment #4)
&gt; Comment on attachment 411992 [details]
&gt; Patch
&gt; 
&gt; I feel like this would be even better as a pure-virtual function that the
&gt; subclasses would implement. That would avoid one virtual function call in
&gt; the worker/worklet case as well.

Good idea. I will look into this shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700425</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-10-21 15:33:38 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #5)
&gt; (In reply to Sam Weinig from comment #4)
&gt; &gt; Comment on attachment 411992 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; I feel like this would be even better as a pure-virtual function that the
&gt; &gt; subclasses would implement. That would avoid one virtual function call in
&gt; &gt; the worker/worklet case as well.
&gt; 
&gt; Good idea. I will look into this shortly.

👍</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700449</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-10-21 16:10:32 -0700</bug_when>
    <thetext>(In reply to Sam Weinig from comment #6)
&gt; (In reply to Chris Dumez from comment #5)
&gt; &gt; (In reply to Sam Weinig from comment #4)
&gt; &gt; &gt; Comment on attachment 411992 [details]
&gt; &gt; &gt; Patch
&gt; &gt; &gt; 
&gt; &gt; &gt; I feel like this would be even better as a pure-virtual function that the
&gt; &gt; &gt; subclasses would implement. That would avoid one virtual function call in
&gt; &gt; &gt; the worker/worklet case as well.
&gt; &gt; 
&gt; &gt; Good idea. I will look into this shortly.
&gt; 
&gt; 👍

https://bugs.webkit.org/show_bug.cgi?id=218057</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>411992</attachid>
            <date>2020-10-21 08:51:39 -0700</date>
            <delta_ts>2020-10-21 09:40:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-218028-20201021085138.patch</filename>
            <type>text/plain</type>
            <size>1484</size>
            <attacher name="Chris Dumez">cdumez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjY4Nzk1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYmUzNTJjMWYzYjhiY2M3
MmM5YjBiODQwNjYzMTZhMGM4NWU1ODgyYi4uNTFmOGFjMWU0YzJiMjRkNTIzYjExYjExYWIzMzQy
MTA0ZmY3MDMzMiAxMDA2NDQKLS0tIGEvU291cm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