Skip to content

Commit 28d18ba

Browse files
committed
2 parents 090bfb0 + 68c5d71 commit 28d18ba

File tree

1,116 files changed

+12192
-23168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,116 files changed

+12192
-23168
lines changed

LayoutTests/TestExpectations

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8126,6 +8126,10 @@ imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-js-expose.
81268126

81278127
fast/canvas/image-buffer-resource-limits.html [ Slow ]
81288128

8129+
# CSS Nesting interleaved declarations and rules
8130+
# https://bugs.webkit.org/show_bug.cgi?id=275365
8131+
imported/w3c/web-platform-tests/css/css-nesting/nesting-basic.html [ ImageOnlyFailure ]
8132+
81298133
# Standardized CSS zoom tests.
81308134
imported/w3c/web-platform-tests/css/css-viewport/width.html [ ImageOnlyFailure ]
81318135
imported/w3c/web-platform-tests/css/css-viewport/zoom/border-spacing.html [ ImageOnlyFailure ]
@@ -8147,3 +8151,11 @@ webkit.org/b/275663 imported/w3c/web-platform-tests/webrtc-encoded-transform/scr
81478151

81488152
# https://bugs.webkit.org/show_bug.cgi?id=266843 flakey tests with racey promise console.logs
81498153
imported/w3c/web-platform-tests/dom/observable/tentative/observable-from.any.html [ Skip ]
8154+
8155+
# Dump `rendertree` rather than proper test expectation as `testharness` test
8156+
imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/global-mutable-prototype.any.html [ Skip ]
8157+
imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/global-mutable-prototype.any.worker.html [ Skip ]
8158+
8159+
# Below tests give `Error fetching /interfaces/webidl.idl` in test output
8160+
imported/w3c/web-platform-tests/WebIDL/idlharness.any.html [ Skip ]
8161+
imported/w3c/web-platform-tests/WebIDL/idlharness.any.worker.html [ Skip ]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This test should not crash.
2+
3+
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] -->
2+
<html lang="en">
3+
<head>
4+
<script src="../../resources/ui-helper.js"></script>
5+
<style>
6+
.header {
7+
padding: .1rem .1rem;
8+
position: relative;
9+
width: 100%;
10+
}
11+
12+
li {
13+
position: relative;
14+
line-height: 100rem;
15+
}
16+
17+
.overlap {
18+
height: 70vh;
19+
margin-top: -.01rem;
20+
max-height: 200px;
21+
overflow-x: hidden;
22+
overflow-y: auto;
23+
width: 100%;
24+
}
25+
26+
.aaaa {
27+
max-width: 300px;
28+
max-height: 200px;
29+
}
30+
</style>
31+
</head>
32+
<body>
33+
34+
<p>This test should not crash.</p>
35+
36+
<div id="wrapper">
37+
<div class="aaaa">
38+
<div class="header">
39+
</div>
40+
<div class="overlap">
41+
<ul>
42+
<li></li>
43+
</ul>
44+
</div>
45+
</div>
46+
</div>
47+
48+
<script>
49+
if (window.testRunner) {
50+
testRunner.waitUntilDone();
51+
testRunner.dumpAsText();
52+
}
53+
54+
window.onload = async () => {
55+
await UIHelper.renderingUpdate();
56+
document.getElementById("wrapper").style.visibility = "hidden";
57+
58+
await UIHelper.renderingUpdate();
59+
60+
if (window.testRunner)
61+
testRunner.notifyDone();
62+
};
63+
64+
</script>
65+
</body>
66+
</html>

LayoutTests/fast/mediastream/video-mediastream-restricted-invisible-autoplay-not-allowed.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535

3636
async function pause2()
3737
{
38-
// At this point, we are interrupted, calling play should be a no-op and should not confuse our interruption state tracking.
39-
video.play();
40-
4138
run('video.style.removeProperty("visibility")');
4239
waitForEventOnce('play', play3);
4340
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
:~:text=This,-is%20a%20very
1+
:~:text=Th,-is%20is%20a

LayoutTests/http/tests/scroll-to-text-fragment/generation-does-not-emit-empty-prefix.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
window.addEventListener('load', () => {
1010
const range = document.createRange();
1111
range.setStart(document.body.childNodes[0], 0);
12-
range.setEnd(document.body.childNodes[0], 4);
12+
range.setEnd(document.body.childNodes[0], 2);
1313
document.body.innerText = internals.textFragmentDirectiveForRange(range).split('#')[1];
1414
});
1515
</script>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
PASS Setup activated but not running worker
4+
PASS Service worker preloadResponse is correctly served when there is no running worker when receiving the preload response
5+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<script src="/common/utils.js"></script>
5+
<script src="/resources/testharness.js"></script>
6+
<script src="/resources/testharnessreport.js"></script>
7+
<script src="resources/routines.js"></script>
8+
</head>
9+
<body>
10+
<script>
11+
const url = "/WebKit/service-workers/resources/fetch-service-worker-preload-script.py?useNavigationPreloadPromise=true&token=" + token();
12+
13+
promise_test(async (test) => {
14+
if (window.testRunner) {
15+
testRunner.setUseSeparateServiceWorkerProcess(true);
16+
await fetch("").then(() => { }, () => { });
17+
}
18+
19+
const registration = await navigator.serviceWorker.register("/WebKit/service-workers/simple-fetch-service-worker-preload-worker.js", { scope : url });
20+
await waitForState(registration.installing ? registration.installing : registration.active, "activated");
21+
22+
if (registration.navigationPreload)
23+
await registration.navigationPreload.enable();
24+
25+
if (window.testRunner) {
26+
testRunner.terminateServiceWorkers();
27+
await fetch("").then(() => { }, () => { });
28+
}
29+
}, "Setup activated but not running worker");
30+
31+
promise_test(async (test) => {
32+
await fetch(url + "&value=use-preload", { method: 'POST' });
33+
34+
const frame = await withIframe(url);
35+
assert_equals(frame.contentWindow.value, "use-preload");
36+
}, "Service worker preloadResponse is correctly served when there is no running worker when receiving the preload response");
37+
</script>
38+
</body>
39+
</html>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
self.addEventListener('fetch', async (event) => {
2+
if (event.request.url.includes("no-fetch-event-handling"))
3+
return;
4+
5+
if (event.request.url.includes("useNavigationPreloadPromise") && event.preloadResponse) {
6+
event.respondWith(event.preloadResponse);
7+
return;
8+
}
9+
10+
if (event.request.url.includes("getResponseFromNavigationPreload") && event.preloadResponse) {
11+
event.respondWith((async () => {
12+
const response = await event.preloadResponse;
13+
if (response)
14+
return response;
15+
return fetch(event.request);
16+
})());
17+
return;
18+
}
19+
20+
if (event.request.url.includes("getResponseFromRequestWithCustomHeader")) {
21+
const newRequest = new Request(event.request, {
22+
headers: { "x-custom-header": "my-custom-header" },
23+
});
24+
event.respondWith(fetch(newRequest));
25+
return;
26+
}
27+
28+
if (event.request.url.includes("getCloneResponseFromNavigationPreload") && event.preloadResponse) {
29+
event.respondWith((async () => {
30+
const response = await event.preloadResponse;
31+
if (response)
32+
return response.clone();
33+
return fetch(event.request);
34+
})());
35+
return;
36+
}
37+
38+
event.respondWith(fetch(event.request));
39+
});

LayoutTests/imported/w3c/resources/import-expectations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@
345345
"web-platform-tests/webgl": "skip",
346346
"web-platform-tests/webgpu": "skip",
347347
"web-platform-tests/webhid": "skip",
348+
"web-platform-tests/webidl": "import",
348349
"web-platform-tests/webmessaging": "import",
349350
"web-platform-tests/webmidi": "skip",
350351
"web-platform-tests/webnn": "skip",

0 commit comments

Comments
 (0)