<?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>36755</bug_id>
          
          <creation_ts>2010-03-29 06:51:18 -0700</creation_ts>
          <short_desc>[Qt] REGRESSION: Loading of external CSS and JS files over network fails in some cases</short_desc>
          <delta_ts>2010-05-18 02:45:39 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.nokia.fi</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>35784</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kim Grönholm">kim.1.gronholm</reporter>
          <assigned_to name="QtWebKit Unassigned">webkit-qt-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>hausmann</cc>
    
    <cc>jesus</cc>
    
    <cc>jturcotte</cc>
    
    <cc>kling</cc>
    
    <cc>koshuin</cc>
    
    <cc>markus</cc>
    
    <cc>petri.latvala</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>zecke</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>205417</commentid>
    <comment_count>0</comment_count>
    <who name="Kim Grönholm">kim.1.gronholm</who>
    <bug_when>2010-03-29 06:51:18 -0700</bug_when>
    <thetext>Some sites that have both extrenal css and js files fail to load them. Some examples:
http://www.nokia.fi
http://scripty2.com/demos/touch/photofun/

The regression is caused by the patch in https://bugs.webkit.org/show_bug.cgi?id=32113

Tested with Qt versions 4.6.2 and 4.7 with both Ubuntu and Windows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205423</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-03-29 07:05:20 -0700</bug_when>
    <thetext>Kim, if the Qt::DirectionConnection broke this, do you have any idea what exactly could&apos;ve caused it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205427</commentid>
    <comment_count>2</comment_count>
    <who name="Kim Grönholm">kim.1.gronholm</who>
    <bug_when>2010-03-29 07:20:03 -0700</bug_when>
    <thetext>No. I didn&apos;t dig in deeper and I&apos;m not very familiar with this part of QtWebKit. We found the patch to blame by bisecting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205927</commentid>
    <comment_count>3</comment_count>
    <who name="Janne Koskinen">koshuin</who>
    <bug_when>2010-03-30 03:24:13 -0700</bug_when>
    <thetext>Tested with Qt 4.6.2 and webkit built from trunk@56711 on Symbian using Anomaly. Both URLs get stuck when loading the page and never finish.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206003</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-03-30 07:36:43 -0700</bug_when>
    <thetext>A reduction is needed. Holger suggested on IRC:

&quot;a start would be to use the mirror tool, either by mirroring as far as we get. or by using a older qt and get the complete file
then we can use the power of sqlite to see the difference in requests (completed) and reducing it..
other useful hints would be: What kind of request is failing? XMLHttpRequest? sync/async one? is the load deferred?
&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214425</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-19 18:42:28 -0700</bug_when>
    <thetext>Darn, I can&apos;t reproduce this with trunk and Qt 4.7 anymore ;(

I mirrored it with Holger&apos;s tool and it loads through the builtin http server, too.

Maybe it is/was a fix in Qt 4.7?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216936</commentid>
    <comment_count>6</comment_count>
    <who name="Markus Goetz">markus</who>
    <bug_when>2010-04-26 01:18:05 -0700</bug_when>
    <thetext>Can someone who reproduced it before try this also with current 4.6. from git and with 4.7 from git?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217658</commentid>
    <comment_count>7</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-04-27 04:39:15 -0700</bug_when>
    <thetext>(On current Qt 4.7) Can&apos;t reproduce with WebKit trunk or WebKit from Qt 4.7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220690</commentid>
    <comment_count>8</comment_count>
    <who name="Kim Grönholm">kim.1.gronholm</who>
    <bug_when>2010-05-04 11:43:17 -0700</bug_when>
    <thetext>Tested with current Qt 4.6 from git (4.6.3) and current Qt 4.7 from git and both work fine! Then tested again with Qt 4.6.2 and the bug appears.

We could change the version check to:
#if QT_VERSION &gt; QT_VERSION_CHECK(4, 6, 2)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220979</commentid>
    <comment_count>9</comment_count>
    <who name="Markus Goetz">markus</who>
    <bug_when>2010-05-05 00:15:38 -0700</bug_when>
    <thetext>That sounds like an OK workaround to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221681</commentid>
    <comment_count>10</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-05-06 07:53:43 -0700</bug_when>
    <thetext>I bisected Qt 4.6 and indeed commit 232defa5d084386a9cdeb229cefee0a4a09bca85 in Qt fixes the problem:


commit 232defa5d084386a9cdeb229cefee0a4a09bca85
Author: Markus Goetz &lt;Markus.Goetz@nokia.com&gt;
Date:   Thu Feb 11 13:21:57 2010 +0100

    QNAM HTTP: Set channel to IdleState at better place
    
    The readyRead() from the expand() function called from allDone()
    had a new request triggered for that channel even if it is not really
    finished yet. Move the assignment to IdleState inside
    allDone to avoid this error.
    
    Reviewed-by: Andreas Kling
    Reviewed-by: Peter Hartmann</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221683</commentid>
    <comment_count>11</comment_count>
      <attachid>55238</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-05-06 07:57:14 -0700</bug_when>
    <thetext>Created attachment 55238
Patch to enable direct connections only for &gt; Qt 4.6.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221902</commentid>
    <comment_count>12</comment_count>
      <attachid>55238</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-05-06 13:01:48 -0700</bug_when>
    <thetext>Comment on attachment 55238
Patch to enable direct connections only for &gt; Qt 4.6.2

Clearing flags on attachment: 55238

Committed r58903: &lt;http://trac.webkit.org/changeset/58903&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221903</commentid>
    <comment_count>13</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-05-06 13:01:56 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222216</commentid>
    <comment_count>14</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-05-07 00:30:00 -0700</bug_when>
    <thetext>Revision r58903 cherry-picked into qtwebkit-2.0 with commit 102de4f0e2622dd85a2eb33008473013710dd177</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227209</commentid>
    <comment_count>15</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2010-05-18 02:45:39 -0700</bug_when>
    <thetext>*** Bug 37852 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>55238</attachid>
            <date>2010-05-06 07:57:14 -0700</date>
            <delta_ts>2010-05-06 13:01:48 -0700</delta_ts>
            <desc>Patch to enable direct connections only for &gt; Qt 4.6.2</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1529</size>
            <attacher name="Simon Hausmann">hausmann</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
Y2ZmYTY5Mi4uMmE5NWYzMiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNSBAQAorMjAxMC0wNS0wNiAgU2ltb24gSGF1c21h
bm4gIDxzaW1vbi5oYXVzbWFubkBub2tpYS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9C
T0RZIChPT1BTISkuCisKKyAgICAgICAgW1F0XSBSRUdSRVNTSU9OOiBMb2FkaW5nIG9mIGV4dGVy
bmFsIENTUyBhbmQgSlMgZmlsZXMgb3ZlciBuZXR3b3JrIGZhaWxzIGluIHNvbWUgY2FzZXMKKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTM2NzU1CisKKyAg
ICAgICAgRW5hYmxlIHRoZSBkaXJlY3QgY29ubmVjdGlvbiBiZXR3ZWVuIFF0TmV0d29yayBhbmQg
UXRXZWJLaXQgb25seSBmb3IgUXQgdmVyc2lvbnMKKyAgICAgICAgZ3JlYXRlciB0aGFuIDQuNi4y
LCBkdWUgdG8gYSBidWcgaW4gUXQgdGhhdCdzIGJlZW4gZml4ZWQgYWZ0ZXIgNC42LjIuCisKKyAg
ICAgICAgKiBwbGF0Zm9ybS9uZXR3b3JrL3F0L1FOZXR3b3JrUmVwbHlIYW5kbGVyLmNwcDoKKwog
MjAxMC0wNS0wNSAgQWxlamFuZHJvIEcuIENhc3RybyAgPGFsZXhAaWdhbGlhLmNvbT4KIAogICAg
ICAgICBSZXZpZXdlZCBieSBYYW4gTG9wZXouCmRpZmYgLS1naXQgYS9XZWJDb3JlL3BsYXRmb3Jt
L25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