Bug 212243 - iOS: Pressing tab in the Mail subject field moves focus to the body, but pressing shift tab doesn't move it back
Summary: iOS: Pressing tab in the Mail subject field moves focus to the body, but pres...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
: 212242 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-05-21 17:28 PDT by Tim Horton
Modified: 2020-05-22 04:15 PDT (History)
5 users (show)

See Also:


Attachments
Patch (9.67 KB, patch)
2020-05-21 17:31 PDT, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (9.72 KB, patch)
2020-05-22 03:43 PDT, Tim Horton
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2020-05-21 17:28:33 PDT
iOS: Pressing tab in the Mail subject field moves focus to the body, but pressing shift tab doesn't move it back
Comment 1 Tim Horton 2020-05-21 17:31:58 PDT
Created attachment 400004 [details]
Patch
Comment 2 Tim Horton 2020-05-21 17:32:00 PDT
<rdar://problem/59127764>
Comment 3 Tim Horton 2020-05-21 18:22:36 PDT
*** Bug 212242 has been marked as a duplicate of this bug. ***
Comment 4 Wenson Hsieh 2020-05-21 23:06:29 PDT
Comment on attachment 400004 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=400004&action=review

> Source/WebCore/page/FocusController.cpp:453
> +    Document* document = focusedOrMainFrame().document();

I think we generally prefer the strong ref here, as it’s not clear that the code below won’t nuke document.

> Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:847
> +    TestWebKitAPI::Util::run(&delegate.get()->_done);

Nit - I don’t think you need the .get() here.

> Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:862
> +    TestWebKitAPI::Util::run(&delegate.get()->_done);

Ditto.

> Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:876
> +    TestWebKitAPI::Util::run(&delegate.get()->_didSendKeyEvent);

Ditto.

> Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:878
> +    ASSERT_FALSE(delegate.get()->_done);

Ditto.
Comment 5 Tim Horton 2020-05-22 03:43:43 PDT
Created attachment 400035 [details]
Patch
Comment 6 EWS 2020-05-22 04:15:04 PDT
Committed r262051: <https://trac.webkit.org/changeset/262051>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 400035 [details].