Summary: | Changing location hash on a frameset causes reload | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jonathan Hurshman <jhurshman> | ||||||
Component: | Frames | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | UNCONFIRMED --- | ||||||||
Severity: | Normal | CC: | ap, beidson, chaylock, gabor.kormany, japhet, sezginm, trmsw | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.5 | ||||||||
URL: | http://pilgrimwebdesign.com/changehash.html | ||||||||
Attachments: |
|
Description
Jonathan Hurshman
2009-03-13 10:43:50 PDT
Created attachment 28585 [details]
Reduction
I have same problem too, waiting for immediate action... Hi Same problem here. Frameset based page, using hash to navigate. Safari and chrome doesn't work properly. Though sometimes there is a workaround but overall it increases the development and maintenance time. Best Regards Example page: http://www.utopicfarm.com/tolga/hash/ Created attachment 52828 [details]
Display the reload event when the location.hash is changed.
Same bug here.
Is it possible to assign this light bug to somebody ?
Thanks.
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: "we don't want to just scroll if a link from within a frameset is trying to reload the frameset into _top." In Firefox a link from within the frameset can reload the frameset, but only as long as the link contains no hash. ie <a href="index.html" target="_top">Reload!</a> will reload the frameset but <a href="index.html#" target="_top">Reload!</a> will not. |