GetSiteForUrl seems to no longer handle chrome:// urls in Debug |
||||
Issue descriptionI believe the changes at [1] to site_instance_impl.cc made in crrev.com/c/953129 breaks on chrome:// urls. The change appears to have made a unittest fail (see crrev.com/c/955625) when run on chrome://version. The cause seems to be that, as chrome://version is not a unique origin, we fall into the test case introduced in 953129. While this case should produce the same chrome: site, the new code calls origin.GetURL() which constructs a URL that fails in InitializeFromCanonicalSpec when run in debug mode. I'm not sure the right way to untangle everything, for the time being I've disabled the unittest as that seems safer than reverting or otherwise mucking about with the more widely used site instance code. [1] https://cs.chromium.org/chromium/src/content/browser/site_instance_impl.cc?rcl=b18148a55bfe0e2d8eba83d5cd58ba8105bbf9d7&l=437
,
Mar 8 2018
Do we actually need to call origin.GetURL().scheme() in the new case, as opposed to just origin.scheme()?
,
Mar 8 2018
alexmos@ - thanks for the suggestion. Going via |origin.scheme()| instead of |origin.GetURL().scheme()| avoids the DCHECK and is probably something that we should have done from the beginining. I'll put together a CL with this fix. I've also opened a separate bug in case the root case of the DCHECK needs to be investigated - issue 820194 .
,
Mar 8 2018
,
Mar 9 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d926a84917c4b9649c3cd5deb80dfd37279aef66 commit d926a84917c4b9649c3cd5deb80dfd37279aef66 Author: Lukasz Anforowicz <lukasza@chromium.org> Date: Fri Mar 09 01:50:45 2018 Avoid unneeded call to Origin::GetURL from SiteInstance::GetSiteForURL. Bug: 820070 Change-Id: I61115868be9edf2bb6be1214e7eb4283faf1cf7b Reviewed-on: https://chromium-review.googlesource.com/956308 Commit-Queue: Ćukasz Anforowicz <lukasza@chromium.org> Reviewed-by: Nick Carter <nick@chromium.org> Cr-Commit-Position: refs/heads/master@{#541986} [modify] https://crrev.com/d926a84917c4b9649c3cd5deb80dfd37279aef66/content/browser/site_instance_impl.cc
,
Mar 9 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Mar 8 2018