forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove incorrect DCHECK when de-duplicating FrameNavigationEntries.
This CL includes two test cases that demonstrate how arbitrary values in FrameNavigationEntry (such as initiator_origin) can change between two FNEs that end up treated as duplicates and become shared in a future session. While these cases failed an assumption in a DCHECK, it seems reasonable to proceed with the de-duplication rather than leaving them as separate copies, since the resulting shared entry still came from a valid state. Such cases can only occur from sessions that were originally created from pre-M93 versions, or due to opaque origins that do not preserve their internal nonce across restore. The second test also provides a more accurate set of expectations for the de-duplication fix in https://crbug.com/1275257. Bug: 1354634, 1275257 Change-Id: I7b67804924fe1ca0d1b721f94872a7027cc78dfa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4241996 Commit-Queue: Charlie Reis <creis@chromium.org> Reviewed-by: Nate Chapin <japhet@chromium.org> Cr-Commit-Position: refs/heads/main@{#1104148}
- Loading branch information
Showing
2 changed files
with
242 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters