Skip to content
Permalink
Browse files
Rewrite plugins/object-onfocus-mutation-crash.html to stop relying on…
… autofocus

https://bugs.webkit.org/show_bug.cgi?id=231327

Reviewed by Chris Dumez.

This test mostly tests onfocus and <object>, we don't need it to use autofocus.
The new autofocus timing will be async so we don't want this test to break with the new
behavior implemented. Use input.focus() instead.

* plugins/object-onfocus-mutation-crash.html:

Canonical link: https://commits.webkit.org/242602@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
nt1m committed Oct 6, 2021
1 parent c0acba4 commit b97c953c554bfd6aa3f83b9263e4efae8d829973
Showing 2 changed files with 18 additions and 3 deletions.
@@ -1,3 +1,16 @@
2021-10-06 Tim Nguyen <ntim@apple.com>

Rewrite plugins/object-onfocus-mutation-crash.html to stop relying on autofocus
https://bugs.webkit.org/show_bug.cgi?id=231327

Reviewed by Chris Dumez.

This test mostly tests onfocus and <object>, we don't need it to use autofocus.
The new autofocus timing will be async so we don't want this test to break with the new
behavior implemented. Use input.focus() instead.

* plugins/object-onfocus-mutation-crash.html:

2021-10-06 Ayumi Kojima <ayumi_kojima@apple.com>

[ iOS macOS wk2 ] http/tests/preload/onload_event.html is flaky failing.
@@ -1,12 +1,17 @@
<!DOCTYPE html>
<html>
<body>
<object data="a">
<input id="input" onfocus="crash()">
</object>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}

input.focus();

function finish() {
if (window.testRunner)
testRunner.notifyDone();
@@ -17,8 +22,5 @@
setTimeout("finish()", 0);
}
</script>
<object data="a">
<input autofocus="" onfocus="crash()">
</object>
</body>
</html>

0 comments on commit b97c953

Please sign in to comment.