Skip to content

Commit

Permalink
Cherry-pick 263022.9@webkit-2023.4-embargoed (a064530). https://bugs.…
Browse files Browse the repository at this point in the history
…webkit.org/show_bug.cgi?id=251370

    Add test case for bug 251370
    https://bugs.webkit.org/show_bug.cgi?id=251370

    Reviewed by Chris Dumez.

    Already fixed by https://commits.webkit.org/263022.8@webkit-2023.4-embargoed, but
    add this test for completeness.

    * LayoutTests/fast/canvas/canvas-print-crash-expected.txt: Added.
    * LayoutTests/fast/canvas/canvas-print-crash.html: Added.

    Canonical link: https://commits.webkit.org/263022.9@webkit-2023.4-embargoed
  • Loading branch information
rwlbuis authored and mcatanzaro committed Jul 28, 2023
1 parent 8536c77 commit 6217482
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions LayoutTests/fast/canvas/canvas-print-crash-expected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PASS
13 changes: 13 additions & 0 deletions LayoutTests/fast/canvas/canvas-print-crash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script src="data:"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
onload = () => {
let canvas = document.createElement('canvas');
document.body.append(canvas);
canvas.getContext('2d');
print();
canvas.remove();
};
</script>
PASS

0 comments on commit 6217482

Please sign in to comment.