<?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>17667</bug_id>
          
          <creation_ts>2008-03-04 04:13:56 -0800</creation_ts>
          <short_desc>REGRESSION (r30587): Document::implicitClose() not called when done loading page (Image does not get scaled to fit)</short_desc>
          <delta_ts>2008-03-04 13:13:57 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://factoryjoe.com/blog/2007/08/25/groups-for-twitter-or-a-proposal-for-twitter-tag-channels/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Hunt">oliver</reporter>
          <assigned_to>mitz</assigned_to>
          <cc>bdakin</cc>
    
    <cc>hyatt</cc>
    
    <cc>mitz</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72676</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-03-04 04:13:56 -0800</bug_when>
    <thetext>The image at the top of the post is not correctly scaled</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72679</commentid>
    <comment_count>1</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-03-04 04:22:12 -0800</bug_when>
    <thetext>Looking in inspector one difference i noticed was that there was no listing for the img elements inline style...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72693</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 07:14:44 -0800</bug_when>
    <thetext>The script library the page uses does not alter the inline style when running in Safari.

I hit this assertion failure when navigating away from this page:

void FrameView::scheduleRelayout()
{
    ASSERT(!m_frame-&gt;document() || !m_frame-&gt;document()-&gt;inPageCache());
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72706</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 08:48:57 -0800</bug_when>
    <thetext>I cannot reproduce either problem with a low-bandwidth connection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72709</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 09:27:30 -0800</bug_when>
    <thetext>Setting a breakpoint at Document::implicitClose() confirms that the load event is never dispatched when the page finishes loading, thus the script that&apos;s supposed to resize the images doesn&apos;t run. The load event *is* dispatched when you navigate out. By then the page is in the page cache and scripts really should not be executing. The event handler runs, resizes the image, and triggers a layout of a now-cached page, which causes the assertion failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72710</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 09:30:45 -0800</bug_when>
    <thetext>Indeed, you can force the images to resize by entering
javascript: document.close()
in the address bar after the page has finished loading.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72711</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 10:13:45 -0800</bug_when>
    <thetext>The page links to a 404 style sheet, &lt;http://factoryjoe.com/blog/wp-content/plugins/diso-profile/profile.css&gt;, so I highly suspect &lt;http://trac.webkit.org/projects/webkit/changeset/30587&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72712</commentid>
    <comment_count>7</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 10:29:58 -0800</bug_when>
    <thetext>&lt;rdar://problem/5779658&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72713</commentid>
    <comment_count>8</comment_count>
      <attachid>19526</attachid>
    <who name="">mitz</who>
    <bug_when>2008-03-04 10:38:15 -0800</bug_when>
    <thetext>Created attachment 19526
Call setLoadInProgress(false) in the 4xx case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72718</commentid>
    <comment_count>9</comment_count>
      <attachid>19526</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-03-04 12:03:06 -0800</bug_when>
    <thetext>Comment on attachment 19526
Call setLoadInProgress(false) in the 4xx case

r=me, though what&apos;s with &quot;\ No newline at end of file&quot; in the middle of the testcase?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72719</commentid>
    <comment_count>10</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2008-03-04 12:04:25 -0800</bug_when>
    <thetext>r=me too, but I noticed another potential problem: do we need to surround the call to object-&gt;error() inside Loader::didReceiveData with calls to setLoadInProgress(true) and then setLoadInProgress(false)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72724</commentid>
    <comment_count>11</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 12:16:57 -0800</bug_when>
    <thetext>(In reply to comment #10)
&gt; r=me too, but I noticed another potential problem: do we need to surround the
&gt; call to object-&gt;error() inside Loader::didReceiveData with calls to
&gt; setLoadInProgress(true) and then setLoadInProgress(false)?

I think so but I do not know how to make a test case to prove it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72725</commentid>
    <comment_count>12</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 12:18:05 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; (From update of attachment 19526 [edit])
&gt; r=me, though what&apos;s with &quot;\ No newline at end of file&quot; in the middle of the
&gt; testcase?

There used not to be a newline, now there should be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72732</commentid>
    <comment_count>13</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-04 13:13:57 -0800</bug_when>
    <thetext>Landed in &lt;http://trac.webkit.org/projects/webkit/changeset/30762&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>19526</attachid>
            <date>2008-03-04 10:38:15 -0800</date>
            <delta_ts>2008-03-04 12:03:06 -0800</delta_ts>
            <desc>Call setLoadInProgress(false) in the 4xx case</desc>
            <filename>17667_r1.diff</filename>
            <type>text/plain</type>
            <size>3665</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAzMDc1OCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTUgQEAKKzIwMDgtMDMtMDQgIERhbiBCZXJuc3RlaW4gIDxtaXR6QGFwcGxlLmNv
bT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAtIGZp
eCBodHRwOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNzY2NworICAgICAgICAg
IDxyZGFyOi8vcHJvYmxlbS81Nzc5NjU4PiBSRUdSRVNTSU9OIChyMzA1ODcpOiBEb2N1bWVudDo6
aW1wbGljaXRDbG9zZSgpIG5vdCBjYWxsZWQgd2hlbiBkb25lIGxvYWRpbmcgcGFnZSAoSW1hZ2Ug
ZG9lcyBub3QgZ2V0IHNjYWxlZCB0byBmaXQpCisKKyAgICAgICAgKiBsb2FkZXIvbG9hZGVyLmNw
cDoKKyAgICAgICAgKFdlYkNvcmU6OkxvYWRlc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ICsxLDE2IEBACiA8c2NyaXB0PgogICAgIGlmICh3aW5kb3cu
bGF5b3V0VGVzdENvbnRyb2xsZXIpCiAgICAgICAgIGxheW91dFRlc3RDb250cm9sbGVyLmR1bXBB
c1RleHQoKTsKKyAgICBmdW5jdGlvbiBkaWRMb2FkKCkKKyAgICB7CisgICAgICAgIGRvY3VtZW50
LmdldEVsZW1lbnRCeUlkKCJsb2FkU3RhdHVzIikuaW5uZXJUZXh0ID0gIlBBU1M6IExvYWQgZXZl
bnQgZmlyZWQuIjsKKyAgICB9CisgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoImxvYWQiLCBk
aWRMb2FkKTsKIDwvc2NyaXB0PgogCiA8bGluayBocmVmPSIvYWRlbGVhbmRiZXRocm9jay5jc3Mi
IHJlbD0ic3R5bGVzaGVldCIgdHlwZT0idGV4dC9jc3MiPgogCi1UaGlzIHRlc3QgcGFzc2VzIGlm
IGl0IGRvZXMgbm90IEFTU0VSVCB0aGF0IHRoZSBkb2N1bWVudCdzIHBlbmRpbmcgc3R5bGUgc2hl
ZXQgY291bnQgaXMgbGVzcyB0aGFuIDAuICAKLSAKXCBObyBuZXdsaW5lIGF0IGVuZCBvZiBmaWxl
CitUaGlzIHRlc3QgcGFzc2VzIGlmIGl0IGRvZXMgbm90IEFTU0VSVCB0aGF0IHRoZSBkb2N1bWVu
dCdzIHBlbmRpbmcgc3R5bGUgc2hlZXQgY291bnQgaXMgbGVzcyB0aGFuIDAsIGFuZCB0aGUgbG9h
ZCBldmVudCBmaXJlcy4KKzxwIGlkPSJsb2FkU3RhdHVzIj4KK0ZBSUw6IExvYWQgZXZlbnQgZGlk
IG5vdCBmaXJlLgorPC9wPgo=
</data>
<flag name="review"
          id="8543"
          type_id="1"
          status="+"
          setter="oliver"
    />
          </attachment>
      

    </bug>

</bugzilla>