Closed Bug 1342788 Opened 7 years ago Closed 7 years ago

Autocompleted domains do a search using Gboard

Categories

(Firefox for iOS :: Browser, defect, P1)

Other
iOS
defect

Tracking

()

VERIFIED FIXED
Tracking Status
fxios-v6.1 --- affected
fxios 8.2 ---

People

(Reporter: bnicholson, Assigned: maurya1985)

References

Details

(Whiteboard: [MobileCore][ThirdPartyKeyboards])

Attachments

(1 file, 1 obsolete file)

Bug report from mfinkle: https://twitter.com/mfinkle/status/835630006374105097

Switch to the Gboard keyboard. Type "wiki", which will autocomplete to "wikipedia.org". Hit Go. This will do a Google search instead of going to the autocompleted domain.
Google search -> search with the default search engine
Summary: Autocompleted domains do a Google search using Gboard → Autocompleted domains do a search using Gboard
Assignee: nobody → maurya1985
Status: NEW → ASSIGNED
Brian, hitting the "Go" button on a Gboard is causing the textField(_:shouldChangeCharactersIn:replacementString:) function to be called. It's basically trying to say that no new text has been entered, but I still am calling this function. I couldn't find any documentation that describes this behavior with third-party keyboards. This behavior doesn't happen for the system keyboard.

How does this matter to us? Well, I just wanted to be sure that we are not explicitly creating a callback to this function when the "Go" button is tapped on a third-party keyboard. If we are, then I want to verify that flow for bugs as well. I couldn't find any reference in the code to such a callback. So, just curious if you might have any thoughts on this.
Attachment #8851338 - Flags: review?(bnicholson)
Priority: -- → P3
Whiteboard: [MobileCore]
Comment on attachment 8851338 [details] [review]
Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/2563

This is fragile code, so please test extensively! I'll land once you can confirm you've tested the steps mentioned in the pull request (plus anything else you can think of).
Attachment #8851338 - Flags: review?(bnicholson) → review+
I've tested this patch in a local build and the bug is no longer reproducible, I've also tested the scenarios mentioned in the pull request using the standard keyboard and the behavior is as expected.

Farhan,
Hit save to soon :)

Maurya, Farhan, can we land this patch?
Flags: needinfo?(maurya1985)
Flags: needinfo?(fpatel)
Blocks: 1365651
Im cool with merging this once its rebased and the tests are re-run :)
Flags: needinfo?(fpatel)
Whiteboard: [MobileCore] → [MobileCore][needsuplift]
Whiteboard: [MobileCore][needsuplift] → [MobileCore]
Need to land this.
Flags: needinfo?(jdarcangelo)
Whiteboard: [MobileCore] → [MobileCore][papercut]
Justin, this has been rebased. But, unfortunately I'm not able to test on a real device as I don't have the ability to install onto a real device.
Flags: needinfo?(maurya1985)
Actually I managed to find a way to install to a device and test. Repeated the tests mentioned in the PR and it looks good.
Attachment #8851338 - Attachment is obsolete: true
Attachment #8882769 - Flags: review?(fpatel)
Attachment #8882769 - Flags: review?(fpatel) → review-
Flags: needinfo?(jdarcangelo)
Priority: P3 → P2
Priority: P2 → P1
Comment on attachment 8882769 [details] [review]
Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/2563

There is a small change that needs to be made that I will land in a follow up
Attachment #8882769 - Flags: review- → review+
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
(In reply to Farhan Patel [:farhan] from comment #12)
> Comment on attachment 8882769 [details] [review]
> Link to Github pull-request:
> https://github.com/mozilla-mobile/firefox-ios/pull/2563
> 
> There is a small change that needs to be made that I will land in a follow up

Yeah I've noticed there has been a push to land this feature. Unfortunately, I still don't have my physical mac with me and have been using a remote mac which doesn't allow me to install the app onto my phone. The Gboard can't be installed on the simulator, so I need to test on the phone.
Verifying as fixed in master e14617f7e
Status: RESOLVED → VERIFIED
Whiteboard: [MobileCore][papercut] → [MobileCore][ThirdPartyKeyboards]
Whiteboard: [MobileCore][ThirdPartyKeyboards] → [MobileCore][ThirdPartyKeyboards][needsuplift]
Uplifted to v8.x
Whiteboard: [MobileCore][ThirdPartyKeyboards][needsuplift] → [MobileCore][ThirdPartyKeyboards]
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Reverted this patch in v8.x
fixed in
https://github.com/mozilla-mobile/firefox-ios/commit/b7d2697641fda38ee9851650f01fb62ad207adb5
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Verifying as fix on master and beta 8.2(5120).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: