<?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>76602</bug_id>
          
          <creation_ts>2012-01-18 21:22:30 -0800</creation_ts>
          <short_desc>[chromium] worker-read-blob-async is flaky.</short_desc>
          <delta_ts>2012-01-24 15:12:39 -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>DOM</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>
          <dependson>76503</dependson>
    
    <dependson>76756</dependson>
    
    <dependson>76942</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Levin">levin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dslomov</cc>
    
    <cc>jianli</cc>
    
    <cc>levin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>538455</commentid>
    <comment_count>0</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2012-01-18 21:22:30 -0800</bug_when>
    <thetext>http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&amp;tests=fast%2Ffiles%2Fworkers%2Fworker-read-blob-async.html

I did http://trac.webkit.org/changeset/105238 to help us figure this out, so now we know which assert is firing but it is unclear why the test is failing and how the assert/failure are related.

We should probably roll out r105238 when we figure this out. (Even better if we improve asserts so this type of hack wouldn&apos;t be needed.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>538573</commentid>
    <comment_count>1</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2012-01-19 02:48:02 -0800</bug_when>
    <thetext>More data, I think the line that it the exception is about is here:

http://code.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/LayoutTests/fast/files/workers/resources/worker-apply-blob-url-to-xhr.js&amp;l=32


This line seems clearly incorrect (now) as it calls revokeObjectURL directly instead of doing webkitURL.revokeObjectURL. There are two questions that come from this:
1. Why doesn&apos;t this exception happen everytime?
2. Why does the assert fire when this exception gets hit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>538576</commentid>
    <comment_count>2</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2012-01-19 02:54:46 -0800</bug_when>
    <thetext>More notes: This is carry over from the previous test and this issue seems to be the reason why fast/files/workers/worker-apply-blob-url-to-xhr.html is always failing.

So the console message is random depending on timing.

It could be that the assert always occurs when a url hasn&apos;t been revoked and the worker context is cleaned up but we only happen to hit this during the next test occaisionally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>538586</commentid>
    <comment_count>3</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2012-01-19 03:20:12 -0800</bug_when>
    <thetext>Another note:
It looks like DOMURL *leaks* object url&apos;s if the destructor is called and DOMURL::contextDestroyed isn&apos;t.


 (I would guess that this would be the common case because the WorkerContext should have the last ref to DOMURL and that ref should go away in ~WorkerContext which is before contextDestroyed should be called from ScriptExecutionContext.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>541754</commentid>
    <comment_count>4</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2012-01-24 15:12:39 -0800</bug_when>
    <thetext>This no longer repros but I have addressed at least two issues I found (see dependent bugs).

Also the leak is fixed but bug 74386 that fixed it has issues as noted in that bug.

So I&apos;m resolving this one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>