Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCNS: Ignore the cookie changes made by the navigation request
In https://crrev.com/c/4235289, we move the cookie change listener to NavigationRequest, which will observe all the cookie modification since the start of the navigation until the end of the document's life time. The cookie modification will be used as a signal indicating the necessity of inactive document destruction, so we should exclude the ones made by the navigation request itself. In this CL, instead of just keeping two boolean values in `CookieChangeListener`, we use two counters instead, which makes it possible to decrement the number of cookie modification observed from `CookieAccessObserver`. Bug: 1399741 Change-Id: I567816a060b2548bee34a4a7741af553331d2974 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4328755 Reviewed-by: Rakina Zata Amni <rakina@chromium.org> Commit-Queue: Mingyu Lei <leimy@chromium.org> Cr-Commit-Position: refs/heads/main@{#1116265}
- Loading branch information
Showing
5 changed files
with
84 additions
and
43 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
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
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