-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add null check in CheckboxInputType::performSwitchAnimation
https://bugs.webkit.org/show_bug.cgi?id=267429 rdar://120841254 Reviewed by Tim Nguyen. * LayoutTests/fast/forms/checkbox-click-without-renderer-expected.txt: Added. * LayoutTests/fast/forms/checkbox-click-without-renderer.html: Added. * Source/WebCore/html/CheckboxInputType.cpp: (WebCore::CheckboxInputType::performSwitchAnimation): Canonical link: https://commits.webkit.org/272956@main
- Loading branch information
1 parent
67e8a20
commit c620752
Showing
3 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/forms/checkbox-click-without-renderer-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 @@ | ||
This test passes if it does not crash. |
10 changes: 10 additions & 0 deletions
10
LayoutTests/fast/forms/checkbox-click-without-renderer.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,10 @@ | ||
<script> | ||
if (window.testRunner) { testRunner.dumpAsText() } | ||
let input0 = document.createElement('input'); | ||
input0.type = 'checkbox'; | ||
input0.switch = true; | ||
let label0 = document.createElement('label'); | ||
label0.append(input0); | ||
label0.click(); | ||
</script> | ||
This test passes if it does not crash. |
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