The keygen element does not support the autofocus attribute. When a keygen element has the autofocus attribute, it does not automatically get focus.
Created attachment 86905 [details] Patch
Comment on attachment 86905 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=86905&action=review > LayoutTests/fast/forms/autofocus-keygen.html:16 > + shouldBe('focusedElement', 'document.querySelector("keygen")'); I think document.activeElement works instead of focusedElement. > LayoutTests/fast/forms/autofocus-keygen.html:23 > +successfullyParsed = true; > +</script> > +</head> > +<body onload="onLoad();"> This doesn't follow usual style of our layout tests. Please do: - remove layoutTestController.dumpAsText() in the second <script> - add window.jsTestisAsync = true in the second <script> - add finishJSTest() at the bottom of onLoad() - add <script> for js/resources/js-test-post.js at the bottom of <body>
Created attachment 86907 [details] Patch
Comment on attachment 86907 [details] Patch ok
Comment on attachment 86907 [details] Patch Clearing flags on attachment: 86907 Committed r81947: <http://trac.webkit.org/changeset/81947>
All reviewed patches have been landed. Closing bug.