LayoutTests:
Reviewed by Hyatt.
Tests for:
- fixed <rdar://problem/
4198619> REGRESSION: tabbing through links fails after hitting text field w/ sys's "tab to all controls" off
- fixed <rdar://problem/
4463760> REGRESSION: Can't tab from old text field (like password fields) to new text field (6811)
(http://bugzilla.opendarwin.org/show_bug.cgi?id=6811)
- fixed tab and shift tab don't select the right things
http://bugzilla.opendarwin.org/show_bug.cgi?id=5685
* fast/forms/focus-control-to-page-expected.txt: Added.
* fast/forms/focus-control-to-page.html: Added.
WebCore:
Reviewed by Hyatt.
- fixed <rdar://problem/
4198619> REGRESSION: tabbing through links fails after hitting text field w/ sys's "tab to all controls" off
- fixed <rdar://problem/
4463760> REGRESSION: Can't tab from old text field (like password fields) to new text field (6811)
(http://bugzilla.opendarwin.org/show_bug.cgi?id=6811)
- fixed tab and shift tab don't select the right things
http://bugzilla.opendarwin.org/show_bug.cgi?id=5685
* bridge/mac/FrameMac.mm:
(WebCore::FrameMac::nextKeyViewInFrame):
* bridge/mac/WebCoreFrameBridge.h:
WebKit:
Reviewed by Hyatt.
- fixed <rdar://problem/
4198619> REGRESSION: tabbing through links fails after hitting text field w/ sys's "tab to all controls" off
- fixed <rdar://problem/
4463760> REGRESSION: Can't tab from old text field (like password fields) to new text field (6811)
(http://bugzilla.opendarwin.org/show_bug.cgi?id=6811)
- fixed tab and shift tab don't select the right things
http://bugzilla.opendarwin.org/show_bug.cgi?id=5685
* WebCoreSupport/WebFrameBridge.m:
(-[WebFrameBridge willMakeFirstResponderForNodeFocus]): New method
- let WebHTMLView know that the next time it becomes first
responder, it's to change focus within the page and the right node
has already been set, so it should not move focus forward or
backward inside it.
* WebView/WebHTMLView.m:
(-[NSArray needsPanelToBecomeKey]): Override to return YES, oddly enough this
is the right way to tell AppKit that you should be in the tab cycle loop.
(-[NSArray becomeFirstResponder]): Don't move forward or back in tab cycle
when this becomeFirstResponder is for tabbing from a control in the page.
(-[WebHTMLView _willMakeFirstResponderForNodeFocus]): Note that the next
time this view becomes first responder, it will be for in-page focus
navigation.
* WebView/WebHTMLViewInternal.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13648
268f45cc-cd09-0410-ab3c-
d52691b4dbfc