<?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>119142</bug_id>
          
          <creation_ts>2013-07-26 04:36:01 -0700</creation_ts>
          <short_desc>REGRESION(r151091) ASSERTION FAILED: m_readableData || m_writableData</short_desc>
          <delta_ts>2013-07-30 04:13:13 -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>WebKit Qt</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="Allan Sandfeld Jensen">allan.jensen</reporter>
          <assigned_to name="Allan Sandfeld Jensen">allan.jensen</assigned_to>
          <cc>arurajku</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jturcotte</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>911934</commentid>
    <comment_count>0</comment_count>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2013-07-26 04:36:01 -0700</bug_when>
    <thetext>http/tests/misc/drag-over-iframe-invalid-source.html asserts with &apos;ASSERTION FAILED: m_readableData || m_writableData&apos;. The problem seems to be that the r151091 refactoring left us with an incorrect assert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911935</commentid>
    <comment_count>1</comment_count>
      <attachid>207523</attachid>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2013-07-26 04:38:28 -0700</bug_when>
    <thetext>Created attachment 207523
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912739</commentid>
    <comment_count>2</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2013-07-30 03:19:29 -0700</bug_when>
    <thetext>Arun, what do you intend with this assert?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912745</commentid>
    <comment_count>3</comment_count>
    <who name="Arunprasad Rajkumar">arurajku</who>
    <bug_when>2013-07-30 03:24:51 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Arun, what do you intend with this assert?

Either m_readableData or m_writableData should be valid, and not both.

I just moved the legacy to new interface, old code also had this assertion.

But anyhow I run all LayoutTests to confirm, Don&apos;t know how I missed this :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912750</commentid>
    <comment_count>4</comment_count>
    <who name="Arunprasad Rajkumar">arurajku</who>
    <bug_when>2013-07-30 03:35:18 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; But anyhow I run all LayoutTests to confirm, Don&apos;t know how I missed this :(

I remember running all test case before raising for a review, whether that test case is added newly?(atleast after a commit build-bot might have run LayoutTests right?, i&apos;m wondering how it is missed)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912751</commentid>
    <comment_count>5</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2013-07-30 03:38:02 -0700</bug_when>
    <thetext>The assertion in this case is that &quot;at least one of the two&quot; is non-null when readData() is called. So if you just ported it I think we can just remove it then, I was wondering if you were intending that readData shouldn&apos;t be called in this case.
Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912753</commentid>
    <comment_count>6</comment_count>
    <who name="Arunprasad Rajkumar">arurajku</who>
    <bug_when>2013-07-30 03:41:20 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; The assertion in this case is that &quot;at least one of the two&quot; is non-null when readData() is called. So if you just ported it I think we can just remove it then, I was wondering if you were intending that readData shouldn&apos;t be called in this case.
&gt; Thanks.

&apos;ASSERTION FAILED: m_readableData || m_writableData&apos;, in this case both were null right? Is it expected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912757</commentid>
    <comment_count>7</comment_count>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2013-07-30 03:47:26 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; The assertion in this case is that &quot;at least one of the two&quot; is non-null when readData() is called. So if you just ported it I think we can just remove it then, I was wondering if you were intending that readData shouldn&apos;t be called in this case.
&gt; &gt; Thanks.
&gt; 
&gt; &apos;ASSERTION FAILED: m_readableData || m_writableData&apos;, in this case both were null right? Is it expected?

That is expected. The old assert you ported was a bit longer and tested another value you removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912766</commentid>
    <comment_count>8</comment_count>
      <attachid>207523</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-07-30 04:13:11 -0700</bug_when>
    <thetext>Comment on attachment 207523
Patch

Clearing flags on attachment: 207523

Committed r153461: &lt;http://trac.webkit.org/changeset/153461&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912767</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-07-30 04:13:13 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>207523</attachid>
            <date>2013-07-26 04:38:28 -0700</date>
            <delta_ts>2013-07-30 04:13:11 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-119142-20130726133827.patch</filename>
            <type>text/plain</type>
            <size>1380</size>
            <attacher name="Allan Sandfeld Jensen">allan.jensen</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTUzMzY5CmRpZmYg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