Skip to content

Commit

Permalink
Cherry-pick 4f8eae6. rdar://problem/107442491
Browse files Browse the repository at this point in the history
    Cherry-pick 260286.12@webkit-2023.2-embargoed (042db6f). rdar://104813991

        Add test for display contents on focus change
        https://bugs.webkit.org/show_bug.cgi?id=251380

        Reviewed by Antti Koivisto.

        Already fixed by #248776, but add this test for
        completeness.

        * LayoutTests/fast/css/content/display-contents-on-focus-crash-expected.txt: Added.
        * LayoutTests/fast/css/content/display-contents-on-focus-crash.html: Added.

        Canonical link: https://commits.webkit.org/260286.12@webkit-2023.2-embargoed

    Canonical link: https://commits.webkit.org/259548.438@safari-7615-branch

Identifier: 245886.871@safari-7613.4.1.0-branch
  • Loading branch information
csaavedra authored and drobson1005 committed Apr 19, 2023
1 parent f6fab21 commit bfa4aa7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

This test passes if it doesn't crash.
24 changes: 24 additions & 0 deletions LayoutTests/fast/css/content/display-contents-on-focus-crash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<style>
dfn:focus-within { display: contents }
html { mask-image: url(about:)}
</style>

<script>
if (window.testRunner)
testRunner.dumpAsText();

function main() {
input.setCustomValidity("foo");
input.reportValidity();
}
</script>

</style>
<body onload="main()">
<dfn>
<textarea autofocus>
</textarea>
</dfn>
<input id="input">
<p>This test passes if it doesn't crash.</p>
</body>

0 comments on commit bfa4aa7

Please sign in to comment.