Scheme check in SiteInstance::IsSameWebSite may not be correct for blob/filesystem URLs |
||
Issue descriptionWhile working on https://codereview.chromium.org/2831683002 we noticed that SiteInstance::IsSameWebSite has a scheme check when comparing sites: if (src_url.scheme() != dest_url.scheme()) return false; This won't work for blob or filesystem URLs. For example, if src_url is http://foo.com and dest_url is blob:http://foo.com/{id}, I think the two URLs should be considered to have the same site. We need to investigate exactly what might be broken because of this and fix it. E.g., this might be causing unnecessary process transfers.
,
May 26 2017
I think the behavior alex describes would pair nicely with a "block local-scheme URL navigations in NavigationThrottle if different-origin from the last committed origin of the initiating RenderFrameHost". Currently we can't implement that, because of the lack of initiator info -- but I'm told it's coming soon.
,
Jun 1 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/cbf99578af94e8d3e95ac8da4ee10d0689e20993 commit cbf99578af94e8d3e95ac8da4ee10d0689e20993 Author: alexmos <alexmos@chromium.org> Date: Thu Jun 01 03:13:13 2017 Fix scheme check in SiteInstance::IsSameWebSite for nested URLs. BUG= 726370 Review-Url: https://codereview.chromium.org/2913443002 Cr-Commit-Position: refs/heads/master@{#476164} [modify] https://crrev.com/cbf99578af94e8d3e95ac8da4ee10d0689e20993/content/browser/site_instance_impl.cc [modify] https://crrev.com/cbf99578af94e8d3e95ac8da4ee10d0689e20993/content/browser/site_instance_impl_unittest.cc
,
Jun 1 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by alex...@chromium.org
, May 26 2017