<?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>24578</bug_id>
          
          <creation_ts>2009-03-13 10:43:50 -0700</creation_ts>
          <short_desc>Changing location hash on a frameset causes reload</short_desc>
          <delta_ts>2011-12-18 21:57: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>Frames</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://pilgrimwebdesign.com/changehash.html</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="Jonathan Hurshman">jhurshman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>chaylock</cc>
    
    <cc>gabor.kormany</cc>
    
    <cc>japhet</cc>
    
    <cc>sezginm</cc>
    
    <cc>trmsw</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113620</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Hurshman">jhurshman</who>
    <bug_when>2009-03-13 10:43:50 -0700</bug_when>
    <thetext>Changing the location hash on a frameset causes the frameset to reload. This occurs whether the hash is changed manually or programmatically by setting window.location.hash.

Firefox and IE do not exhibit this behavior; neither non-frameset pages nor frameset pages reload when the hash is changed.

This is troublesome for trying to maintain state by setting the hash.

Reduction is available at http://pilgrimwebdesign.com/changehash.html. This is a frameset containing only one frame. That frame displays new Date().getSeconds(). It also kicks off a timeout for 5 seconds to set the top&apos;s hash value. The result in WebKit is that the whole page reloads every 5 seconds, and one can observe the value displayed in the frame changing. In Firefox and IE, no reload happens.

I have reproduced this in the current nightly, in Safari 3.1.2, and in Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113621</commentid>
    <comment_count>1</comment_count>
      <attachid>28585</attachid>
    <who name="Jonathan Hurshman">jhurshman</who>
    <bug_when>2009-03-13 10:44:58 -0700</bug_when>
    <thetext>Created attachment 28585
Reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116150</commentid>
    <comment_count>2</comment_count>
    <who name="Tolga Arican">chaylock</who>
    <bug_when>2009-04-01 02:38:12 -0700</bug_when>
    <thetext>http://www.dxenia.com/hash/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116153</commentid>
    <comment_count>3</comment_count>
    <who name="Sezgin">sezginm</who>
    <bug_when>2009-04-01 02:50:02 -0700</bug_when>
    <thetext>I have same problem too, waiting for immediate action...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147492</commentid>
    <comment_count>4</comment_count>
    <who name="Gabor Kormany">gabor.kormany</who>
    <bug_when>2009-09-16 02:09:07 -0700</bug_when>
    <thetext>Hi

Same problem here. Frameset based page, using hash to navigate. Safari and chrome doesn&apos;t work properly. Though sometimes there is a workaround but overall it increases the development and maintenance time.

Best Regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147493</commentid>
    <comment_count>5</comment_count>
    <who name="Tolga Arican">chaylock</who>
    <bug_when>2009-09-16 02:18:34 -0700</bug_when>
    <thetext>Example page: http://www.utopicfarm.com/tolga/hash/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210009</commentid>
    <comment_count>6</comment_count>
      <attachid>52828</attachid>
    <who name="Marc Bonnier">chrome</who>
    <bug_when>2010-04-07 23:05:30 -0700</bug_when>
    <thetext>Created attachment 52828
Display the reload event when the location.hash is changed.

Same bug here.
Is it possible to assign this light bug to somebody ?

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>523302</commentid>
    <comment_count>7</comment_count>
    <who name="TomSW">trmsw</who>
    <bug_when>2011-12-17 08:40:00 -0800</bug_when>
    <thetext>
The current behaviour is caused by FrameLoader::shouldScrollToAnchor
in WebCore/loader/FrameLoader.cpp.

Scrolling to an anchor is explicitly excluded for a frameset, the reason is given in the comments: &quot;we don&apos;t want to just scroll if a link from within a frameset is trying to reload the frameset into _top.&quot;

In Firefox a link from within the frameset can reload the frameset, but only as long as the link contains no hash.

ie   &lt;a href=&quot;index.html&quot; target=&quot;_top&quot;&gt;Reload!&lt;/a&gt;
will reload the frameset

but  &lt;a href=&quot;index.html#&quot; target=&quot;_top&quot;&gt;Reload!&lt;/a&gt;
will not.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>28585</attachid>
            <date>2009-03-13 10:44:58 -0700</date>
            <delta_ts>2009-03-13 10:44:58 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>changehash.zip</filename>
            <type>application/zip</type>
            <size>691</size>
            <attacher name="Jonathan Hurshman">jhurshman</attacher>
            
              <data encoding="base64">UEsDBAoAAAAAABZtbToAAAAAAAAAAAAAAAALABAAY2hhbmdlaGFzaC9VWAwAkZq6SZyaukn2AfYB
UEsDBBQACAAIAEVqbToAAAAAAAAAAAAAAAAaABAAY2hhbmdlaGFzaC9jaGFuZ2VoYXNoLmh0bWxV
WAwAn5q6SVKVukn2AfYBs0krSsxNLU4tseNSULABcxSKi5JtlZIzEvPSUzMSizPAgnoZJbk5SnZc
NvoIDQBQSwcIfkGu3S8AAAA8AAAAUEsDBBQACAAIAPhqbToAAAAAAAAAAAAAAAAfABAAY2hhbmdl
aGFzaC9jaGFuZ2VoYXNoZnJhbWUuaHRtbFVYDACfmrpJpJa6SfYB9gE9jkEOwiAURPc9xU9XEA1l
48q2q95A94bQr8VYIPBpNca7i2Lcvpm8mTbqYDwBPTx2NeGdmqtaVKF1XwEsKkBE7ewYoQOLKwyK
kHFxQToUzvg+FyPS0czoErFzspqMs4zDE8h5cXNafYCYVJyyJi9FOtWw+atfW9hJKb+m0ek0oyWx
BpOnfpUctU051ldvUEsHCKPY06SOAAAAuAAAAFBLAQIVAwoAAAAAABZtbToAAAAAAAAAAAAAAAAL
AAwAAAAAAAAAAEDtQQAAAABjaGFuZ2VoYXNoL1VYCACRmrpJnJq6SVBLAQIVAxQACAAIAEVqbTp+
Qa7dLwAAADwAAAAaAAwAAAAAAAAAAECkgTkAAABjaGFuZ2VoYXNoL2NoYW5nZWhhc2guaHRtbFVY
CACfmrpJUpW6SVBLAQIVAxQACAAIAPhqbTqj2NOkjgAAALgAAAAfAAwAAAAAAAAAAECkgcAAAABj
aGFuZ2VoYXNoL2NoYW5nZWhhc2hmcmFtZS5odG1sVVgIAJ+aukmklrpJUEsFBgAAAAADAAMA8gAA
AKsBAAAAAA==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>52828</attachid>
            <date>2010-04-07 23:05:30 -0700</date>
            <delta_ts>2010-04-07 23:05:30 -0700</delta_ts>
            <desc>Display the reload event when the location.hash is changed.</desc>
            <filename>frameset-hash-reload.html</filename>
            <type>text/html</type>
            <size>526</size>
            <attacher name="Marc Bonnier">chrome</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8dGl0bGU+QnVnIFdlYktpdDogbG9jYXRpb24uaGFzaCBhc3NpZ24gcmVs
b2FkIGEgZnJhbWVzZXQgZG9jdW1lbnQ8L3RpdGxlPgo8c2NyaXB0IHR5cGU9InRleHQvamF2YXNj
cmlwdCI+CmZ1bmN0aW9uIHJ1bigpIHsKCWFsZXJ0KCJEb2N1bWVudCBsb2FkcyB3aXRoIGxvY2F0
aW9uLmhhc2g6IiArIHdpbmRvdy5sb2NhdGlvbi5oYXNoKQoJaWYgKGxvY2F0aW9uLmhhc2ggPT0g
IiIpIHNldFRpbWVvdXQoJ3dpbmRvdy5sb2NhdGlvbi5oYXNoID0gIiMzIicsIDEwMDApCgl9CmZ1
bmN0aW9uIGluZm8oKSB7CglyZXR1cm4gJ0NoYW5naW5nIHRoZSB0b3AubG9jYXRpb24uaGFzaCBy
ZWxvYWRzIHRoZSBkb2N1bWVudC4gSXQgc2hvdWxkIG5vdC4nCgl9Cjwvc2NyaXB0Pgo8L2hlYWQ+
CjxmcmFtZXNldCByb3dzPSIqLDIwMCIgb25sb2FkPSJydW4oKSI+Cgk8ZnJhbWUgc3JjPSJqYXZh
c2NyaXB0OnBhcmVudC5pbmZvKCkiPgoJPGZyYW1lIHNyYz0iYWJvdXQ6YmxhbmsiPgo8L2ZyYW1l
c2V0Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>