Bug 63860 - Loading same page often treated as a reload
Summary: Loading same page often treated as a reload
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-02 07:32 PDT by Robert Hogan
Modified: 2011-07-02 11:51 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Hogan 2011-07-02 07:32:25 PDT
Lots of details at: http://www.stevesouders.com/blog/2011/06/27/unexpected-reloads-in-webkit/

This looks like at least one possible source of the behaviour:

void FrameLoader::load(DocumentLoader* newDocumentLoader)
{
    ResourceRequest& r = newDocumentLoader->request();
    addExtraFieldsToMainResourceRequest(r);
    FrameLoadType type;

    if (shouldTreatURLAsSameAsCurrent(newDocumentLoader->originalRequest().url())) {
        r.setCachePolicy(ReloadIgnoringCacheData);
        type = FrameLoadTypeSame;
    } else
        type = FrameLoadTypeStandard;
<..>
}
Comment 1 Robert Hogan 2011-07-02 07:37:09 PDT
The linked blog post suggests this happens on Safari, iPhone and Android but not Chrome.
Comment 2 Alexey Proskuryakov 2011-07-02 11:51:36 PDT
Yes, this is by design - the idea is that if a user hits Return in address bar, that's to refresh page content.