Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PageLoadMetrics: Notify parents of inner frames' navigation and deletion
This patch forwards inner frame's navigation and deletion events to parents at PageLoadTracker layer regardless of each observer's policy. While forwarding events, ones for main frame are converted as ones for sub-frames. This PageLoadTracker level forwarding is needed to preprocess information to extract per-outermost page events such as page lifecycle events. Details are: - Route inner page's page deletion to the outermost page. + Dispatch SubFrameDeleted event also to the parent tracker at PageLoadTracker layer. + Dispatch RenderFrameDeleted event as a sub-frame deletion to the parent tracker at PageLoadTracker layer. + Omit forwarding relevant events at the observer layer. - Route inner page's navigation to the outermost page. + Dispatch DidFinishSubFrameNavigation event also to the parent tracker at PageLoadTracker layer. + Dispatch Commit, DidCommitSameDocumentNavigation, and DidInternalNavigationAbort evenst as finishing a sub-frame navigation to the parent tracker at PageLoadTracker layer. + Omit forwarding relevant events at the observer layer. Also, there is a bug that the primary tracker is set as a parent tracker on prerendering page. This patch fixes the issue to make some subresource filter related tests pass. Change-Id: Iff7bb81e9ff43e697fbab2d17b20fdc8d097a1dd Bug: 1301880 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3578508 Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org> Cr-Commit-Position: refs/heads/main@{#992328}
- Loading branch information
Showing
6 changed files
with
131 additions
and
50 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
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