<?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>43664</bug_id>
          
          <creation_ts>2010-08-06 20:23:31 -0700</creation_ts>
          <short_desc>Scripts on local filesystem injected after window.onload are never reloaded</short_desc>
          <delta_ts>2010-08-07 01:33:27 -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>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>30862</dup_id>
          
          <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>0</everconfirmed>
          <reporter name="Ryan Grove">ryan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>am5050</cc>
    
    <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>261639</commentid>
    <comment_count>0</comment_count>
      <attachid>63799</attachid>
    <who name="Ryan Grove">ryan</who>
    <bug_when>2010-08-06 20:23:31 -0700</bug_when>
    <thetext>Created attachment 63799
Reduced test case that reproduces the bug

A script on the local filesystem (i.e., a file:// URL) that&apos;s loaded via a script node added after the window.onload event has fired will never be reloaded until the cache is manually cleared. In Google Chrome (which also exhibits this bug), even manually clearing the cache is ineffective.

When the same script is injected before the window.onload event has fired, it behaves as expected and is reloaded normally whenever the page is refreshed.

To reproduce:

1. Download the attached test.zip file and extract it.
2. Open the extracted test.html file from your local filesystem. You should see the string &quot;foo&quot; in bold at the bottom of the page.
3. Edit test.js and change the value of the string to &quot;bar&quot;.
4. Reload the page. You&apos;ll still see &quot;foo&quot;.
5. (If using Google Chrome) Clear your cache. Reload. Still &quot;foo&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261683</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-08-07 00:49:35 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 30862 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>63799</attachid>
            <date>2010-08-06 20:23:31 -0700</date>
            <delta_ts>2010-08-06 20:23:31 -0700</delta_ts>
            <desc>Reduced test case that reproduces the bug</desc>
            <filename>test.zip</filename>
            <type>application/zip</type>
            <size>710</size>
            <attacher name="Ryan Grove">ryan</attacher>
            
              <data encoding="base64">UEsDBBQAAAAIAKihBj3Uh1M+wgEAAO0CAAAJAAAAdGVzdC5odG1sXVI9j9QwEO3zK4Y02ZU4HyWC
bAqWq5AOBCuh04nCsSexT44d2ZNdRYj/zsQOV5AiiuX3NS/Tvvn89Xx5+vYAhibXVa1BqbsK+Gkn
JAnKyJiQTvVCw937er8iSw67n9h/sQRJRTsTWJ8wkg0elFQGoV/G9r4Aq/a+6LZ90GtXVe3cVTvb
4xUjRHRB6gQuKOl2xQRkJIGMyNovqAg16NXLyTLGrSAHYiYZrG7W63ATwW8iwIKewMgEg42oBbvP
u+clsNMcg14UvoWMJmMTzHJECF4hDDFMsIYl7lEG6zCtiXAS8BQWSCYsTkNCrOohhJqjbRFYIcox
ytlAz6PcBDyGG6DmAQkTiZcE0uutTc9OG+Eq3cKeQx4gUbR+BApQ9zLWAr7jHg5ztuzdOG6G7PZG
hOwu4OxQxhI41y6qQhXwI0ML7LUCsPpUG1uz0OrwxLee7m5oR0Mf+uB03e3I8gu6/6o9wbB4lX/y
4Qi/8zJc2X9fgRPooJaJ6xcqoiR8cLidDk0BNMePmVJOIkXFlGYvqCl3rwoj0k5Pn9aLHB/lhIdm
26Pm+Pzul5DzjF6fjXX6UARZ/Q9P+i86f5Z14+3Ly/0XUEsDBBQAAAAIAMyhBj1XXoM+NgAAADEA
AAAHAAAAdGVzdC5qcwExAM7/ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2hpJykuaW5uZXJIVE1M
ID0gJ2Zvbyc7ClBLAQIUAxQAAAAIAKihBj3Uh1M+wgEAAO0CAAAJAAAAAAAAAAAAAACkgQAAAAB0
ZXN0Lmh0bWxQSwECFAMUAAAACADMoQY9V16DPjYAAAAxAAAABwAAAAAAAAAAAAAApIHpAQAAdGVz
dC5qc1BLBQYAAAAAAgACAGwAAABEAgAAAAA=
</data>

          </attachment>
      

    </bug>

</bugzilla>