Closed Bug 1238036 Opened 10 years ago Closed 10 years ago

Selection menu doesn't show Find in Page if Find in Page bar is focused

Categories

(Firefox for iOS :: Browser, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios 2.0+ ---

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

Attachments

(1 file)

Follow-up issue from bug 1229593. STR: Select text while the find-in-page bar is already visible and focused. The selected text menu won't have Find in Page as an option. I think this is because the web view isn't the first responder, so it doesn't get asked which items to show. Steph has some comments in https://github.com/mozilla/firefox-ios/pull/1408.
touchesBegan doesn't get fired for WKWebView, presumably because they don't fire the super UIView.hitTest implementation triggers the touch events. As a workaround, we can hook into hitTest directly.
Attachment #8706596 - Flags: review?(sleroux)
Comment on attachment 8706596 [details] [review] Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1431 Looks like this works. Its kind of a hack considering this isn't what hitTest is meant for but if it gives us a way to perform the responder resignation then so be it. Only thing that this might break is webview interactions if it relies on not being the first responder but the actions I did (navigation, long press) worked fine.
Attachment #8706596 - Flags: review?(sleroux) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: