DescriptionDon't rely on the pending NavigationEntry for location.replace.
This CL adds a should_replace_current_entry param to commit IPCs,
and it ensures the WebDataSource is accurate on browser-initiated
navigations. To keep the CL manageable, it does not yet change
same-process location.replace navigations from EXISTING_PAGE to
NEW_PAGE, though we want to do that as well.
This goes further than the previous attempt and removes the old
code that depended on the pending entry at commit time.
This also corrects a bug where we were using the wrong pending
entry to decide whether to replace in some cases.
TBR=nasko (for IPC)
BUG=317872, 593153
TEST=See bug 593153 for repro steps.
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/865ad44678b14ada619057ec2afb0d381f8c5ddd
Cr-Commit-Position: refs/heads/master@{#381233}
Patch Set 1 #Patch Set 2 : Remove old approach #Patch Set 3 : Clean up and fix bug #Patch Set 4 : Add test for 593153 #
Total comments: 2
Patch Set 5 : Rebase #Messages
Total messages: 17 (9 generated)
|