DescriptionFix content settings's cookie code to work with PlzNavigate.
There are two main fixes:
-use GetWebContentsGetter instead of the RPH/RFH IDs since the latter don't exist for browser side navigation
-switching TabSpecificContentSettings to use the new navigation callbacks. This is needed because with PlzNavigate, the old didstartprovisionalload callback (from the new renderer) would run after the cookie request (from the browser), and so we would wipe out the settings map. Using the new callbacks preserves the order of these callbacks with PlzNavigate.
This fixes the following browser tests with PlzNavigate:
ContentSettingsTest.RedirectCrossOrigin
ContentSettingsTest.RedirectLoopCookies
BUG=504347
Committed: https://crrev.com/092d3be76da7c2aef6a84e2791b5818a06cb4689
Cr-Commit-Position: refs/heads/master@{#421224}
Patch Set 1 #
Total comments: 2
Patch Set 2 : review comments #
Messages
Total messages: 18 (12 generated)
|