Clean up HasWrongProcessForURL logic in Reload |
||
Issue descriptionIn issue 847718 , we noted some strange behavior where reloads of renderer-initiated cross-site navigations (which haven't committed yet) are hitting the HasWrongProcessForURL block of NavigationControllerImpl::Reload, which was designed for hosted app reloads that need to swap processes. This is not intentional and can lead to some bad side effects. It's due to proactively setting the SiteInstance on a pending NavigationEntry to the SiteInstance of the initiator, even when the navigation will end up in a different process due to Site Isolation. The HasWrongProcessForURL code itself seems like it could be improved or possibly handled elsewhere. We should look into: 1) Not setting the SiteInstance on the pending NavigationEntry if possible. (This is related to issue 803859.) 2) Removing or cleaning up the HasWrongProcessForURL code in Reload to handle the hosted app reload case in a better way. (Initial strawman CL at https://chromium-review.googlesource.com/c/chromium/src/+/1080326 shows that the code can't just be removed without other changes, though.) Sounds like Nasko can take a look at these in more detail.
,
Jun 15 2018
The usage of HasWrongProcessForURL in Reload is now removed. The initial comment has another part: "1) Not setting the SiteInstance on the pending NavigationEntry if possible. (This is related to issue 803859.)" Given that it is already tracked by issue 803859, I think we can consider closing this one as fixed and continue tracking 803859.
,
Jun 15 2018
That part was referring to the set_site_instance line in NavigatorImpl::DidStartMainFrameNavigation, which you already removed in r564315 for issue 849430. :) I think this is done-- thanks! |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jun 15 2018