Let `about:blank#ref` also be classified as initial empty document.
Before this CL, content::FrameTreeNode used to classify only the literal `about:blank` as the URL corresponding to the initial empty document. However, navigations from the initial empty document to URLs such as `about:blank#ref` are same-document and therefore re-use the initial empty document, so committing any such same-document navigations should not be considered "real loads" by FrameTreeNode (given they are not considered "real loads" by Blink). This CL changes FrameTreeNode::SetCurrentURL() to use !IsAboutBlank() to determine whether the first real load is currently taking place in a frame, that is, whether it is a first time a URL is being committed that is not the initial empty document (modulo an optional #fragment). Bug: 821022, 729021 Change-Id: I040a11f58bf27174e0c450377f8cd81a7abeac70 Reviewed-on: https://chromium-review.googlesource.com/958925Reviewed-by:Charlie Reis <creis@chromium.org> Commit-Queue: Balazs Engedy <engedy@chromium.org> Commit-Queue: Charlie Reis <creis@chromium.org> Cr-Commit-Position: refs/heads/master@{#542645}
Showing
Please register or sign in to comment