<?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>21949</bug_id>
          
          <creation_ts>2008-10-29 11:35:24 -0700</creation_ts>
          <short_desc>No need to clobber all ResourceRequest fields in FrameLoader::reload()</short_desc>
          <delta_ts>2008-11-04 11:41:18 -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>All</rep_platform>
          <op_sys>All</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Fisher (:fishd, Google)">fishd</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97009</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-10-29 11:35:24 -0700</bug_when>
    <thetext>No need to clobber all ResourceRequest fields in FrameLoader::reload()

Presently, FrameLoader::reload clobbers all fields of the initialRequest when there is an unreachableURL associated with the current DocumentLoader.  This causes problems for the Chromium port since we store some extra data on the ResourceRequest object that we need to have preserved across a FrameLoader::reload call.

FrameLoader::reloadAllowingStaleData is careful to only call setURL when there is an unreachableURL, and I think that FrameLoader::reload should do the same.  I suspect that it was not intentional to make FrameLoader::reload behave differently in this respect.

Please see the attached patch for further details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97010</commentid>
    <comment_count>1</comment_count>
      <attachid>24751</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-10-29 11:39:57 -0700</bug_when>
    <thetext>Created attachment 24751
v1 patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97011</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-10-29 11:42:06 -0700</bug_when>
    <thetext>To clarify, this causes problems for us because the HTTP method is forced to be GET.  If the previous request was something else, then that information is lost.  I guess this doesn&apos;t cause a problem for Safari, but it still seems like an error to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97153</commentid>
    <comment_count>3</comment_count>
      <attachid>24751</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-10-30 13:00:59 -0700</bug_when>
    <thetext>Comment on attachment 24751
v1 patch

Anders, can you please take a look at this patch?  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97573</commentid>
    <comment_count>4</comment_count>
      <attachid>24751</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2008-11-04 09:25:15 -0800</bug_when>
    <thetext>Comment on attachment 24751
v1 patch

Looks good, I can&apos;t think of a reason why it would break things (but I&apos;ve been wrong before ;)

r=me!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97600</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-11-04 11:41:18 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/38107</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>24751</attachid>
            <date>2008-10-29 11:39:57 -0700</date>
            <delta_ts>2008-11-04 09:25:15 -0800</delta_ts>
            <desc>v1 patch</desc>
            <filename>frame_loader_1.diff</filename>
            <type>text/plain</type>
            <size>1747</size>
            <attacher name="Darin Fisher (:fishd, Google)">fishd</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDM3OTcz
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMDgtMTAt
MjkgIERhcmluIEZpc2hlciAgPGRhcmluQGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBObyBuZWVkIHRvIGNsb2JiZXIgYWxsIFJl
c291cmNlUmVxdWVzdCBmaWVsZHMgaW4gRnJhbWVMb2FkZXI6OnJlbG9hZCgpCisgICAgICAgIGh0
dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMTk0OQorCisgICAgICAgICog
bG9hZGVyL0ZyYW1lTG9hZGVyLmNwcDoKKyAgICAgICAgKFdlYkNvcmU6OkZyYW1lTG9hZGVyOjpy
ZWxvYWQpOgorCiAyMDA4LTEwLTI5ICBCcmV0dCBXaWxzb24gIDxicmV0dHdAY2hyb21pdW0ub3Jn
PgogCiAgICAgICAgIFJldmlld2VkIGJ5IERhcmluIEFkbGVyCkluZGV4OiBsb2FkZXIvRnJhbWVM
b2FkZXIuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT0KLS0tIGxvYWRlci9GcmFtZUxvYWRlci5jcHAJKHJldmlzaW9u
IDM3OTczKQorKysgbG9hZGVyL0ZyYW1lTG9hZGVyLmNwcAkod29ya2luZyBjb3B5KQpAQCAtMjQz
OCwxNyArMjQzOCwxNyBAQCB2b2lkIEZyYW1lTG9hZGVyOjpyZWxvYWQoKQogICAgIGlmICghbV9k
b2N1bWVudEx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tZSBtX2RvY3VtZW50TG9hZGVyIGV2ZW50dWFsbHksCiAgICAgLy8gYnV0
IGZpcnN0IGl0IGhhcyB0byBiZSB0aGUgInBvbGljeSIgZG9jdW1lbnQgbG9hZGVyLCBhbmQgdGhl
biB0aGUgInByb3Zpc2lvbmFsIiBkb2N1bWVudCBsb2FkZXIuCg==
</data>
<flag name="review"
          id="11321"
          type_id="1"
          status="+"
          setter="andersca"
    />
          </attachment>
      

    </bug>

</bugzilla>