Bug 1592294 [wpt PR 19978] - Force error page to be classified as cross-document...
commit01241ec90081870c1e919348930c18cab97f9d1e
authorarthursonzogni <arthursonzogni@chromium.org>
Mon, 25 Nov 2019 16:15:56 +0000 (25 16:15 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 29 Nov 2019 10:55:13 +0000 (29 10:55 +0000)
tree3e83c1cb68d4970638e77d11847a6f33415925fa
parentd3d1bf0329ab9ec296fb07bfb40984e45679750d
Bug 1592294 [wpt PR 19978] - Force error page to be classified as cross-document., a=testonly

Automatic update from web-platform-tests
Force error page to be classified as cross-document.

Bug https://crbug.com/1018385 is caused by navigation initially
classified as "same-document" committing error pages.

During the commit phase of the navigation, the NavigationRequest is
transfered in one of these RenderFrameHostImpl's bucket:
 - same_document_navigation_request_
 - navigation_requests_

A navigation classified as "same-document" ends up in the bucket
incompatible with error pages.
DidCommitPerNavigationMojoInterfaceNavigation expects to find the
navigation is the other bucket.

Add several regressions tests, including WPT tests.

Bug: 1018385
Change-Id: I3d92af1dd487f7b60a3e50a792716a07b074e5eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1886339
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712541}

--

wpt-commits: f099d1524bd576cc415e51407d9dcf870ca9bbc6
wpt-pr: 19978
testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document-meta.html [new file with mode: 0644]
testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html [new file with mode: 0644]
testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html.headers [new file with mode: 0644]