<?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>109211</bug_id>
          
          <creation_ts>2013-02-07 10:55:21 -0800</creation_ts>
          <short_desc>[V8] Binding Integrity crash in V8MediaStream::createWrapper</short_desc>
          <delta_ts>2013-02-07 14:03:36 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Sepez">tsepez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>cevans</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>feature-media-reviews</cc>
    
    <cc>hta</cc>
    
    <cc>jschuh</cc>
    
    <cc>ojan.autocc</cc>
    
    <cc>tommyw</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>827696</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Sepez">tsepez</who>
    <bug_when>2013-02-07 10:55:21 -0800</bug_when>
    <thetext>LocalMediaStream wrapped as a MediaStream despite having IDL that knows better.

0x01fca175	 [Google Chrome Framework]	 + 0x01fa9175]	WebCore::V8MediaStream::createWrapper(WTF::PassRefPtr&lt;WebCore::MediaStream&gt;, v8::Handle&lt;v8::Object&gt;, v8::Isolate*)
0x01eab664	 [Google Chrome Framework]	 + 0x01e8a664]	WebCore::MediaStreamAudioDestinationNodeV8Internal::streamAttrGetter(v8::Local&lt;v8::String&gt;, v8::AccessorInfo const&amp;)
0x0142e86f	 [Google Chrome Framework]	 + 0x0140d86f]	v8::internal::JSObject::GetPropertyWithCallback(v8::internal::Object*, v8::internal::Object*, v8::internal::String*)
0x0142e62c	 [Google Chrome Framework]	 + 0x0140d62c]	v8::internal::Object::GetProperty(v8::internal::Object*, v8::internal::LookupResult*, v8::internal::String*, PropertyAttributes*)
0x013dcc8c	 [Google Chrome Framework]	 + 0x013bbc8c]	v8::internal::LoadIC::Load(v8::internal::InlineCacheState, v8::internal::Handle&lt;v8::internal::Object&gt;, v8::internal::Handle&lt;v8::internal::String&gt;)
0x013e06e5	 [Google Chrome Framework]	 + 0x013bf6e5]	v8::internal::LoadIC_Miss(v8::internal::Arguments, v8::internal::Isolate*)

Suppress check for now, but there&apos;s an underlying bug that the stop() method in LocalMediaStream.idl won&apos;t be available on a local media stream wrapped in this manner. Need a custom wrapper to check if islocal and wrap accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>827744</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-02-07 11:18:01 -0800</bug_when>
    <thetext>@tommyw: We need to make the toV8 function for MediaStream smarter so that it can create a LocalMediaStream wrapper when appropriate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>827775</commentid>
    <comment_count>2</comment_count>
      <attachid>187144</attachid>
    <who name="Thomas Sepez">tsepez</who>
    <bug_when>2013-02-07 12:03:24 -0800</bug_when>
    <thetext>Created attachment 187144
A Patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>827794</commentid>
    <comment_count>3</comment_count>
      <attachid>187144</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-02-07 12:29:54 -0800</bug_when>
    <thetext>Comment on attachment 187144
A Patch.

Do we have a LayoutTest for this case?  Also, we should open a bug for fixing the custom wrapping dispatch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>827807</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Sepez">tsepez</who>
    <bug_when>2013-02-07 12:44:03 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 187144 [details])
&gt; Do we have a LayoutTest for this case?  Also, we should open a bug for fixing the custom wrapping dispatch.

No, I don&apos;t have a layouttest; the page in the wild which reproduced this was complex.
Followup bug is https://bugs.webkit.org/show_bug.cgi?id=109219</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>827882</commentid>
    <comment_count>5</comment_count>
      <attachid>187144</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-07 14:03:30 -0800</bug_when>
    <thetext>Comment on attachment 187144
A Patch.

Clearing flags on attachment: 187144

Committed r142177: &lt;http://trac.webkit.org/changeset/142177&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>827883</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-07 14:03:36 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>187144</attachid>
            <date>2013-02-07 12:03:24 -0800</date>
            <delta_ts>2013-02-07 14:03:30 -0800</delta_ts>
            <desc>A Patch.</desc>
            <filename>patch_109211.txt</filename>
            <type>text/plain</type>
            <size>1150</size>
            <attacher name="Thomas Sepez">tsepez</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKH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