In WebKitTestRunner pixel results, form controls don't look highlighted. They have the appearance that they have in background windows. Also, focus rings don't show up, and the caret is disabled.
<rdar://problem/10235607>
Actually form controls look OK, but just different in Lion. Focus rings are still missing though.
DRT/WK1 have some smarts here that we may need to replicate: in - (void)webView:(WebView *)sender didCommitLoadForFrame:(WebFrame *)frame: gLayoutTestController->setWindowIsKey(true); NSView *documentView = [[mainFrame frameView] documentView]; [[[mainFrame webView] window] makeFirstResponder:documentView]; void LayoutTestController::setWindowIsKey(bool windowIsKey) { m_windowIsKey = windowIsKey; [[mainFrame webView] _updateActiveState]; } WebView: - (void)_updateActiveState { if (_private && _private->page) _private->page->focusController()->setActive([[self window] isKeyWindow]); }
*** This bug has been marked as a duplicate of bug 42688 ***