<?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>70229</bug_id>
          
          <creation_ts>2011-10-17 05:24:24 -0700</creation_ts>
          <short_desc>[Curl] ResourceHandleManager::startJob() for Data URLs is missing deref()</short_desc>
          <delta_ts>2017-07-18 15:16:42 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>173991</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jens">jens.rosenboom</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>basuke</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>485072</commentid>
    <comment_count>0</comment_count>
    <who name="Jens">jens.rosenboom</who>
    <bug_when>2011-10-17 05:24:24 -0700</bug_when>
    <thetext>Hello All,

IMHO a deref() is missing for asynchronous jobs with data:// URLs.

In function ResourceHandleManager.cpp:
- function add() calls ref() on a new job and adds it to a list
- function startScheduledJobs() takes it from that list and calls startJob()
- function startJob() calls handleDataUrl() (for data:// URLs)

Shouldn&apos;t startJob() call deref() after handleDataUrl() returns?

Best regards,
Jens</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1330152</commentid>
    <comment_count>1</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2017-07-18 15:16:14 -0700</bug_when>
    <thetext>Because of the new architecture, this bug is invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1330153</commentid>
    <comment_count>2</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2017-07-18 15:16:42 -0700</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=173991</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>