Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "[mparch] Update ContentFaviconDriver"
This is a reland of 37e51f1 Changes in this reland - We now ignore manifest URL updates in ContentFaviconDriver if they arrive prior to the onload handler firing to match current behavior. See crbug.com/1205018 for details. - Added tests for the above. - I have removed the unused WCI::favicon_urls_ Original change's description: > [mparch] Update ContentFaviconDriver > > With this change, we only process favicon updates upon activation > (i.e., in the primary main frame). To make this work I've done the > following: > - moved per-document state to RFHI rather than the WCI or the content > favicon driver to avoid clobbering while prerendering > - ensured that this state is cleared when necessary (thanks to lfg@ > for advice on when to do this) > - calling UpdateFaviconURLs after activation making use of the state > stored on the RFHI. > - Exposed two new functions on NavigationHandle: > - IsInPrimaryMainFrame, and > - IsPrerenderedPageActivation. > > I'd hoped that taking the approach above would replicate the order of > events that other favicon-related code would see during a normal > activation, but there may still be some work required if they're > listening to navigation events. > > Testing this required exposing some prerender testing machinery to > chrome/browser. As suggested by lfg@, I've bundled the prerendering > test helper machinery into an object that can be aggregated by test > classes (i.e., no inheritance required). > > I also needed to switch some of the WCI unittests over to RFHI tests > since I'm now storing state at that level. > > Bug: 1190827 > Change-Id: I3f2bbbaf19769f216119d048f60e73feab3c35d4 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2787388 > Commit-Queue: Ian Vollick <vollick@chromium.org> > Reviewed-by: Alexander Timin <altimin@chromium.org> > Reviewed-by: Scott Violet <sky@chromium.org> > Reviewed-by: Peter Kotwicz <pkotwicz@chromium.org> > Reviewed-by: Matt Falkenhagen <falken@chromium.org> > Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> > Reviewed-by: Kevin McNee <mcnee@chromium.org> > Cr-Commit-Position: refs/heads/master@{#875938} Bug: 1190827 Change-Id: I90b26e2fd528b09eaa6c343f5ca1c963b86edf04 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2852141 Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Reviewed-by: Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Ian Vollick <vollick@chromium.org> Cr-Commit-Position: refs/heads/master@{#879437}
- Loading branch information
Ian Vollick
authored and
Chromium LUCI CQ
committed
May 5, 2021
1 parent
68f2211
commit 6d75ac3
Showing
28 changed files
with
593 additions
and
318 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
Oops, something went wrong.