From 01241ec90081870c1e919348930c18cab97f9d1e Mon Sep 17 00:00:00 2001 From: arthursonzogni Date: Mon, 25 Nov 2019 16:15:56 +0000 Subject: [PATCH] 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 Reviewed-by: Nasko Oskov Cr-Commit-Position: refs/heads/master@{#712541} -- wpt-commits: f099d1524bd576cc415e51407d9dcf870ca9bbc6 wpt-pr: 19978 --- .../frame-src/frame-src-same-document-meta.html | 54 ++++++++++++++++++++++ .../frame-src/frame-src-same-document.html | 25 ++++++++++ .../frame-src/frame-src-same-document.html.headers | 1 + 3 files changed, 80 insertions(+) create mode 100644 testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document-meta.html create mode 100644 testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html create mode 100644 testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html.headers diff --git a/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document-meta.html b/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document-meta.html new file mode 100644 index 000000000000..f3750b1e7d83 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document-meta.html @@ -0,0 +1,54 @@ + + + + + + diff --git a/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html b/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html new file mode 100644 index 000000000000..398d0223bcb7 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html @@ -0,0 +1,25 @@ + + + + + + diff --git a/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html.headers b/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html.headers new file mode 100644 index 000000000000..6502444407f5 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/frame-src/frame-src-same-document.html.headers @@ -0,0 +1 @@ +Content-Security-Policy: frame-src 'none' -- 2.11.4.GIT