<?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>109733</bug_id>
          
          <creation_ts>2013-02-13 12:31:50 -0800</creation_ts>
          <short_desc>Not every load is followed by a call to didFail or didFinish</short_desc>
          <delta_ts>2013-02-14 09:26: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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></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="Adam Barth">abarth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>benjamin</cc>
    
    <cc>dgorbik</cc>
    
    <cc>eric</cc>
    
    <cc>sam</cc>
    
    <cc>tmpsantos</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>832194</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-02-13 12:31:50 -0800</bug_when>
    <thetext>Remove bogus ASSERT in WebFrameProxy::didStartProvisionalLoad</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832198</commentid>
    <comment_count>1</comment_count>
      <attachid>188146</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-02-13 12:34:00 -0800</bug_when>
    <thetext>Created attachment 188146
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832288</commentid>
    <comment_count>2</comment_count>
      <attachid>188146</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-02-13 13:35:57 -0800</bug_when>
    <thetext>Comment on attachment 188146
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=188146&amp;action=review

&gt; Source/WebKit2/ChangeLog:15
&gt; +        The ASSERT appears to be bogus. This patch removes it.

Could you explain better why this ASSERT is bogus?  What you think it was trying to test, what&apos;s actually going on, etc.  It&apos;s not clear tdo me when &quot;didStartProvisionalLoad&quot; is called, or why it thinks that the load should be finished when that happens?

Presumably this was trying to make sure that this FrameProxy only knows about one load at a time?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832293</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-02-13 13:38:35 -0800</bug_when>
    <thetext>I agree, btw. that this is likely to be a bogus ASSERT.

Bug 109485 was about delaying the the frameloader client&apos;s &quot;we&apos;re done parsing&quot; callback until after the load event is actually done executing.  Prior to that change, isLoadingInAPI sense would return false, while we were still in teh middle of executing an onload handler, which seems wrong and was causing loads to end too early for the threaded parser since the loader would not be on the stack when we got around to processing that onload, allowing the load to end.

Restated: bug 109485 fixes two bugs, one in the normal and background-thread parser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832364</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-02-13 14:41:11 -0800</bug_when>
    <thetext>It&apos;s entirely reasonable to start a provisional load before we&apos;ve finished the previous load.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832379</commentid>
    <comment_count>5</comment_count>
      <attachid>188146</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-13 14:55:50 -0800</bug_when>
    <thetext>Comment on attachment 188146
Patch

Clearing flags on attachment: 188146

Committed r142807: &lt;http://trac.webkit.org/changeset/142807&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832380</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-13 14:55:54 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832564</commentid>
    <comment_count>7</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2013-02-13 17:10:31 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; It&apos;s entirely reasonable to start a provisional load before we&apos;ve finished the previous load.

Actually, I think in that case, there’s supposed to be a provisionalLoadDidFail callback with a “canceled” error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832576</commentid>
    <comment_count>8</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2013-02-13 17:20:23 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #4)
&gt; &gt; It&apos;s entirely reasonable to start a provisional load before we&apos;ve finished the previous load.
&gt; 
&gt; Actually, I think in that case, there’s supposed to be a provisionalLoadDidFail callback with a “canceled” error.

I think Anders is right.

I think the point of the ASSERT is that *every* load needs to end with a didFinish or a didFail before a new load starts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>833145</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-02-14 09:26:36 -0800</bug_when>
    <thetext>Re-opened per comments above.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>188146</attachid>
            <date>2013-02-13 12:34:00 -0800</date>
            <delta_ts>2013-02-13 14:55:49 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-109733-20130213123029.patch</filename>
            <type>text/plain</type>
            <size>1514</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQ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