Skip to content

Commit 29730d2

Browse files
committed
Merge remote-tracking branch 'upstream'
2 parents 83a2c97 + 8c41028 commit 29730d2

File tree

1,311 files changed

+5711
-3810
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,311 files changed

+5711
-3810
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//@ runDefault("--useConcurrentJIT=0", "--jitPolicyScale=0")
2+
try {
3+
var BUGNUMBER = 730831;
4+
var summary = "Date.prototype.toISOString returns an invalid ISO-8601 string";
5+
print((BUGNUMBER + ": ") + summary);
6+
function iso(a10) {
7+
const v12 = new Date(a10);
8+
return v12.toISOString();
9+
}
10+
for (let v14 = 0; v14 < 67; v14++) {
11+
const v16 = [print];
12+
Reflect.apply(summary.matchAll, summary, v16);
13+
}
14+
function utc(a20, a21, a22, a23, a24, a25, a26) {
15+
const v29 = new Date_1(0);
16+
var date = v29;
17+
date.setUTCFullYear(a20, a21 - 1, a22);
18+
date.setUTCHours(a23, a24, a25, a26);
19+
return date.getTime();
20+
}
21+
var maxDateSimple = utc(9999, 12, 31, 23, 59, 59, 999);
22+
var minDateSimple = utc(0, 1, 1, 0, 0, 0, 0);
23+
var maxDateExtended = utc(+275760, 9, 13, 0, 0, 0, 0);
24+
var minDateExtended = utc(-271821, 4, 20, 0, 0, 0, 0);
25+
} catch { }
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
(module
3+
(import "env" "memory" (memory 1))
4+
(func $compare (import "wasm:js-string" "compare") (param externref externref) (result i32))
5+
6+
(func (export "compareAndLoad") (param $a externref) (param $b externref) (result i32)
7+
(call $compare (local.get $a) (local.get $b))
8+
(i32.load)
9+
)
10+
)
11+
*/
12+
const WASM_MODULE_CODE = new Uint8Array([0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x07, 0x01, 0x60, 0x02, 0x6f, 0x6f, 0x01, 0x7f, 0x02, 0x28, 0x02, 0x03, 0x65, 0x6e, 0x76, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x02, 0x00, 0x01, 0x0e, 0x77, 0x61, 0x73, 0x6d, 0x3a, 0x6a, 0x73, 0x2d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x00, 0x00, 0x03, 0x02, 0x01, 0x00, 0x07, 0x12, 0x01, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x41, 0x6e, 0x64, 0x4c, 0x6f, 0x61, 0x64, 0x00, 0x01, 0x0a, 0x0d, 0x01, 0x0b, 0x00, 0x20, 0x00, 0x20, 0x01, 0x10, 0x00, 0x28, 0x02, 0x00, 0x0b, 0x00, 0x1c, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x01, 0x0a, 0x01, 0x00, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x02, 0x09, 0x01, 0x01, 0x02, 0x00, 0x01, 0x61, 0x01, 0x01, 0x62]);
13+
14+
function main() {
15+
const memory = new WebAssembly.Memory({
16+
initial: 1,
17+
});
18+
const module = new WebAssembly.Module(WASM_MODULE_CODE, {
19+
builtins: ['js-string']
20+
});
21+
const instance = new WebAssembly.Instance(module, {
22+
env: {
23+
memory
24+
}
25+
});
26+
27+
for (let i = 0; i < 10000; i++) {
28+
try {
29+
// Should throw an exception and not crash on a load from the comparison result of -1
30+
const value = instance.exports.compareAndLoad('a', 'b');
31+
} catch {
32+
}
33+
}
34+
}
35+
36+
main();

LayoutTests/TestExpectations

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ overlay-region [ Skip ]
120120
pdf [ Skip ]
121121
ipc/mac [ Skip ]
122122
ipc/restrictedendpoints/mac [ Skip ]
123+
security/cocoa [ Skip ]
123124

124125
# Requires async overflow scrolling
125126
compositing/shared-backing/overflow-scroll [ Skip ]
@@ -1279,12 +1280,6 @@ imported/w3c/web-platform-tests/resource-timing/TAO-match.html [ Pass Failure ]
12791280
imported/w3c/web-platform-tests/resource-timing/iframe-failed-commit.html [ Pass Failure ]
12801281
imported/w3c/web-platform-tests/resource-timing/fetch-cross-origin-redirect.https.html [ Pass Failure ]
12811282

1282-
# Flaky timing tests:
1283-
webkit.org/b/214677 imported/w3c/web-platform-tests/event-timing/click-timing.html [ Pass Failure ]
1284-
webkit.org/b/214677 imported/w3c/web-platform-tests/event-timing/crossiframe.html [ Pass Failure ]
1285-
webkit.org/b/214677 imported/w3c/web-platform-tests/event-timing/interactionid-click.html [ Pass Failure ]
1286-
webkit.org/b/214677 imported/w3c/web-platform-tests/event-timing/timingconditions.html [ Pass Failure ]
1287-
12881283
# Timing out (missing auxclick automation?):
12891284
webkit.org/b/214677 imported/w3c/web-platform-tests/event-timing/interactionid-aux-pointerdown-and-pointerdown.html [ Skip ]
12901285
webkit.org/b/214677 imported/w3c/web-platform-tests/event-timing/interactionid-aux-pointerdown.html [ Skip ]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PASS
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!DOCTYPE html><!-- webkit-test-runner [ dumpJSConsoleLogInStdErr=true ] -->
2+
<html>
3+
<head>
4+
<style>
5+
html, body, table, span, abbr, p, video, output {
6+
font-variant-ligatures: common-ligatures no-contextual;
7+
justify-self: unsafe self-end;
8+
-webkit-column-span: all;
9+
transform: scale3d(9, 1, 0);
10+
overflow: -webkit-paged-y clip;
11+
font-style: normal;
12+
}
13+
</style>
14+
<script>
15+
window.testRunner?.waitUntilDone();
16+
window.testRunner?.dumpAsText();
17+
resizeValue = 1
18+
insertListCount = 0
19+
20+
setTimeout(() => {
21+
document.writeln("PASS");
22+
window.testRunner?.notifyDone();
23+
}, 1000);
24+
25+
function main() {
26+
let outputElement = document.querySelector("output");
27+
let videoElement = document.querySelector("video");
28+
document.getElementById("target").addEventListener("DOMNodeRemoved", () => {
29+
try { outputElement.remove(); } catch (e) { }
30+
resizeTo(resizeValue, resizeValue++);
31+
requestAnimationFrame(() => {
32+
find("F");
33+
requestAnimationFrame(() => {
34+
document.execCommand("insertUnorderedList");
35+
});
36+
});
37+
});
38+
document.styleSheets[0].media.appendMedium("all and (orientation:portrait)");
39+
videoElement.remove();
40+
}
41+
</script>
42+
</head>
43+
<body onload="main()" contenteditable autofocus>
44+
<table rules="none" spellcheck="false" accesskey="A" border="989"></table>
45+
<span id="text">F</span>
46+
<abbr>
47+
A
48+
<p>
49+
<span id="target">
50+
<video></video>
51+
<output></output>
52+
</span>
53+
</p>
54+
</abbr>
55+
</body>
56+
</html>

LayoutTests/fast/page-color-sampling/color-sampling-ignores-subscrollers-expected.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

LayoutTests/fast/page-color-sampling/color-sampling-ignores-text.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
jsTestIsAsync = true;
3535

3636
addEventListener("load", async () => {
37+
await UIHelper.setObscuredInsets(100, 0, 0, 0);
38+
3739
let header = document.querySelector("header");
3840
sampledTopColors = []
3941
for (let i = 0; i < 10; ++i) {

LayoutTests/fast/page-color-sampling/color-sampling-stability-for-same-element-expected.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
PASS colorsAfterScrollingDown.top is "rgb(200, 0, 0)"
21
PASS colorsAfterScrollingDown.left is null
32
PASS colorsAfterScrollingDown.right is null
43
PASS colorsAfterScrollingDown.bottom is null
5-
PASS colorsAfterScrollingUp.top is "rgb(200, 0, 0)"
64
PASS colorsAfterScrollingUp.left is null
75
PASS colorsAfterScrollingUp.right is null
86
PASS colorsAfterScrollingUp.bottom is null
7+
PASS colorsAfterScrollingDown.top is colorsAfterScrollingUp.top
98
PASS successfullyParsed is true
109

1110
TEST COMPLETE

LayoutTests/fast/page-color-sampling/color-sampling-stability-for-same-element.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
await UIHelper.ensurePresentationUpdate();
5656

5757
colorsAfterScrollingDown = await UIHelper.fixedContainerEdgeColors();
58-
shouldBeEqualToString("colorsAfterScrollingDown.top", "rgb(200, 0, 0)");
5958
shouldBeNull("colorsAfterScrollingDown.left");
6059
shouldBeNull("colorsAfterScrollingDown.right");
6160
shouldBeNull("colorsAfterScrollingDown.bottom");
@@ -64,10 +63,10 @@
6463
await UIHelper.ensurePresentationUpdate();
6564

6665
colorsAfterScrollingUp = await UIHelper.fixedContainerEdgeColors();
67-
shouldBeEqualToString("colorsAfterScrollingUp.top", "rgb(200, 0, 0)");
6866
shouldBeNull("colorsAfterScrollingUp.left");
6967
shouldBeNull("colorsAfterScrollingUp.right");
7068
shouldBeNull("colorsAfterScrollingUp.bottom");
69+
shouldBe("colorsAfterScrollingDown.top", "colorsAfterScrollingUp.top");
7170

7271
finishJSTest();
7372
});
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
PASS colors.top is "rgb(0, 122, 255)"
2+
PASS colors.left is "multiple"
3+
PASS colors.right is "multiple"
4+
PASS colors.bottom is "rgb(225, 225, 225)"
5+
PASS successfullyParsed is true
6+
7+
TEST COMPLETE
8+

0 commit comments

Comments
 (0)