Move fenced frame ref tests to http/tests and use PHP to serve the file
with the desired headers The document loaded in a fenced frame should have 'Supports-Loading-Mode' header. Change-Id: I7cc80deefa9ee3a724f8183b5079272b5a153db8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3400985 Reviewed-by: Dave Tapuska <dtapuska@chromium.org> Reviewed-by: Dominic Farolino <dom@chromium.org> Reviewed-by: Dirk Pranke <dpranke@google.com> Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Nan Lin <linnan@chromium.org> Cr-Commit-Position: refs/heads/main@{#961140}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
8882b7979d
commit
f84a9ab61a
BUILD.gn
third_party/blink/web_tests
TestExpectationsVirtualTestSuites
http
tests
virtual
fenced-frame-mparch
http
tests
fenced-frame-shadow-dom
http
tests
1
BUILD.gn
1
BUILD.gn
@ -1268,7 +1268,6 @@ if (!is_ios) {
|
||||
"//third_party/blink/web_tests/editing/",
|
||||
"//third_party/blink/web_tests/external/",
|
||||
"//third_party/blink/web_tests/fast/",
|
||||
"//third_party/blink/web_tests/fenced_frame/",
|
||||
"//third_party/blink/web_tests/fonts/",
|
||||
"//third_party/blink/web_tests/fragmentation/",
|
||||
"//third_party/blink/web_tests/fullscreen/",
|
||||
|
2
third_party/blink/web_tests/TestExpectations
vendored
2
third_party/blink/web_tests/TestExpectations
vendored
@ -227,7 +227,7 @@ crbug.com/1093466 virtual/portals/wpt_internal/portals/* [ Pass ]
|
||||
# These tests require fenced-frames
|
||||
# Keep this in sync with VirtualTestSuites.
|
||||
crbug.com/1123606 wpt_internal/fenced_frame/* [ Skip ]
|
||||
crbug.com/1123606 fenced_frame/* [ Skip ]
|
||||
crbug.com/1123606 http/tests/fenced_frame/* [ Skip ]
|
||||
crbug.com/1123606 virtual/fenced-frame-shadow-dom/* [ Pass ]
|
||||
crbug.com/1123606 virtual/fenced-frame-mparch/* [ Pass ]
|
||||
|
||||
|
@ -1029,7 +1029,7 @@
|
||||
{
|
||||
"prefix": "fenced-frame-mparch",
|
||||
"bases": [
|
||||
"fenced_frame",
|
||||
"http/tests/fenced_frame",
|
||||
"wpt_internal/fenced_frame",
|
||||
"http/tests/inspector-protocol/fenced-frame"
|
||||
],
|
||||
@ -1038,7 +1038,7 @@
|
||||
{
|
||||
"prefix": "fenced-frame-shadow-dom",
|
||||
"bases": [
|
||||
"fenced_frame",
|
||||
"http/tests/fenced_frame",
|
||||
"wpt_internal/fenced_frame"
|
||||
],
|
||||
"args": ["--enable-features=FencedFrames:implementation_type/shadow_dom,Prerender2,PartitionedCookies"]
|
||||
|
@ -10,6 +10,6 @@
|
||||
</script>
|
||||
<fencedframe
|
||||
style="width: 100%; height: 300px; border: 0"
|
||||
src="resources/fenced_frame.html"></fencedframe>
|
||||
src="resources/fenced_frame.php"></fencedframe>
|
||||
</body>
|
||||
</html>
|
@ -1,3 +1,7 @@
|
||||
<?php
|
||||
header('Content-Type: text/html');
|
||||
header('Supports-Loading-Mode: fenced-frame');
|
||||
?>
|
||||
<body style="margin: 0px">
|
||||
<div style="background: red; width: 20px; height: 20px"></div>
|
||||
<script>
|
@ -1,3 +1,7 @@
|
||||
<?php
|
||||
header('Content-Type: text/html');
|
||||
header('Supports-Loading-Mode: fenced-frame');
|
||||
?>
|
||||
<body style="margin: 0px">
|
||||
<div id="placeholder" style="background: red; width: 20px; height: 20px"></div>
|
||||
<script>
|
@ -10,6 +10,6 @@
|
||||
</script>
|
||||
<fencedframe
|
||||
style="width: 100%; height: 300px; border: 0"
|
||||
src="resources/visibility-changed-inner.html"></fencedframe>
|
||||
src="resources/visibility-changed-inner.php"></fencedframe>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user