forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream'
- Loading branch information
Showing
240 changed files
with
21,832 additions
and
1,327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
LayoutTests/editing/pasteboard/copy-text-from-uneditable-element-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Test that we unconditionally allow copying from uneditable elements | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
PASS result.value is "foo" | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
Copy foo Paste |
48 changes: 48 additions & 0 deletions
48
LayoutTests/editing/pasteboard/copy-text-from-uneditable-element.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!DOCTYPE html> | ||
<script src="../../resources/js-test.js"></script> | ||
<script src="../../resources/ui-helper.js"></script> | ||
<button id="copyButton">Copy foo</button> | ||
<button id="pasteButton">Paste</button> | ||
<input id="result"> | ||
<script> | ||
jsTestIsAsync = true; | ||
description("Test that we unconditionally allow copying from uneditable elements"); | ||
|
||
addEventListener("load", async () => { | ||
copyButton.addEventListener("click", () => { | ||
const input = document.createElement("input"); | ||
input.hidden = true; | ||
input.value = "value"; | ||
document.body.append(input); | ||
input.select(); | ||
document.execCommand("copy"); | ||
input.remove(); | ||
}); | ||
pasteButton.addEventListener("click", () => { | ||
result.focus(); | ||
document.execCommand("paste", true); | ||
}); | ||
|
||
document.addEventListener("copy", (e) => { | ||
e.clipboardData?.clearData(); | ||
e.clipboardData?.setData("text/plain", "foo"); | ||
e.preventDefault(); | ||
}, true); | ||
|
||
doneWithPaste = false; | ||
result.addEventListener("paste", event => { | ||
setTimeout(() => { | ||
shouldBeEqualToString("result.value", "foo"); | ||
finishJSTest(); | ||
}, 0); | ||
doneWithPaste = true; | ||
}); | ||
|
||
if (window.testRunner) { | ||
await UIHelper.activateElement(copyButton); | ||
result.focus(); | ||
document.execCommand("paste"); | ||
await shouldBecomeEqual("doneWithPaste", "true"); | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LayoutTests/fast/editing/recursive-reapply-edit-command-crash-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
CONSOLE MESSAGE: RangeError: Maximum call stack size exceeded. | ||
|
||
This test passes if it does not crash. |
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/editing/recursive-reapply-edit-command-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/flexbox/child-becomes-out-of-flow-crash-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PASS if no crash. | ||
|
17 changes: 17 additions & 0 deletions
17
LayoutTests/fast/flexbox/child-becomes-out-of-flow-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
PASS if no crash. | ||
<div style="display: flex;" id=flex_container> | ||
<div id=flex_item></div> | ||
</div> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
document.body.offsetHeight; | ||
flex_item.style.position = "absolute"; | ||
document.body.offsetHeight; | ||
flex_item.remove(); | ||
for (let i = 0; i < 100; ++i) { | ||
document.body.offsetHeight; | ||
flex_container.appendChild(document.createElement("div")); | ||
} | ||
</script> |
23 changes: 23 additions & 0 deletions
23
...tTests/fast/flexbox/percent-height-flex-content-with-space-taking-scrollbar-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
margin: 0px; | ||
} | ||
|
||
.container { | ||
width: 100px; | ||
height: 100%; | ||
overflow: scroll; | ||
position: fixed; | ||
} | ||
|
||
.tall-content { | ||
height: 10000px; | ||
background-color: green; | ||
display: inline-block; | ||
width: 100px; | ||
} | ||
</style> | ||
<div class=container> | ||
<div class=tall-content></div> | ||
</div> |
28 changes: 28 additions & 0 deletions
28
LayoutTests/fast/flexbox/percent-height-flex-content-with-space-taking-scrollbar.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
.flex-container { | ||
display: flex; | ||
position: absolute; | ||
inset: 0; | ||
} | ||
|
||
.flex-item-child { | ||
height: 100%; | ||
overflow: auto; | ||
} | ||
|
||
.tall-content { | ||
height: 10000px; | ||
background-color: green; | ||
display: inline-block; | ||
width: 100px; | ||
} | ||
</style> | ||
<!-- PASS if green area is scrollable --> | ||
<div class=flex-container> | ||
<div> | ||
<div class=flex-item-child> | ||
<div class=tall-content></div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
CONSOLE MESSAGE: promises created | ||
CONSOLE MESSAGE: A VideoFrame was destroyed without having been closed explicitly | ||
CONSOLE MESSAGE: device0 lost! | ||
CONSOLE MESSAGE: | ||
CONSOLE MESSAGE: device0 lost! | ||
CONSOLE MESSAGE: | ||
CONSOLE MESSAGE: device0 lost! | ||
CONSOLE MESSAGE: | ||
CONSOLE MESSAGE: device0 lost! | ||
CONSOLE MESSAGE: | ||
CONSOLE MESSAGE: device0 lost! | ||
CONSOLE MESSAGE: | ||
CONSOLE MESSAGE: device0 lost! | ||
CONSOLE MESSAGE: | ||
CONSOLE MESSAGE: device0 lost! | ||
CONSOLE MESSAGE: | ||
CONSOLE MESSAGE: device0 lost! | ||
CONSOLE MESSAGE: | ||
CONSOLE MESSAGE: error | ||
CONSOLE MESSAGE: GPUPipelineError | ||
CONSOLE MESSAGE: GPUPipelineError | ||
CONSOLE MESSAGE: _ | ||
CONSOLE MESSAGE: GPUPipelineError - validation | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 [color=#99DDBBCC] [bgcolor=#102030E0] | ||
RenderBody {BODY} at (8,8) size 784x584 | ||
RenderImage {IMG} at (0,172) size 16x1 | ||
RenderImage {IMG} at (16,84) size 20x89 | ||
RenderImage {IMG} at (36,169) size 105x4 | ||
RenderImage {IMG} at (141,55) size 80x118 | ||
RenderImage {IMG} at (221,157) size 7x16 | ||
RenderImage {IMG} at (228,166) size 45x7 | ||
layer at (281,8) size 300x173 | ||
RenderHTMLCanvas {CANVAS} at (273,0) size 300x173 |
Oops, something went wrong.