Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Issue 2956013002: [ios] Workaround error affecting 3rd party keyboards and omnibox. (Closed)

Created:
3 years, 5 months ago by justincohen
Modified:
3 years, 5 months ago
CC:
chromium-reviews, marq+watch_chromium.org, jdonnelly+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Workaround error affecting 3rd party keyboards and omnibox. This is an attempted workaround to UIKit bug (://32817402) relating to third party keyboards that check the value of textDocumentProxy.documentContextBeforeInput to show keyboard suggestions. It appears that calling setAttributedText during an EditingChangedUIControlEvent somehow triggers this bug. The reason we update the attributed text here is to change the colors of the omnibox (such as host, protocol) when !self.editing, but also to hide real UITextField text under the _selection text when self.editing. Since we will correct the omnibox editing text color anytime |self.text| is different than |fieldText|, it seems it's OK to skip calling self.attributedText during the condition added below. If we change mobile omnibox to match desktop and also color the omnibox while self.editing, this workaround will no longer work. BUG=737589 Review-Url: https://codereview.chromium.org/2956013002 Cr-Commit-Position: refs/heads/master@{#483196} Committed: https://chromium.googlesource.com/chromium/src/+/dacc85d6208232ec0b2af40786ceec71559fa39c

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment. #

Patch Set 3 : typo #

Total comments: 8

Patch Set 4 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -1 line) Patch
M ios/chrome/browser/about_flags.mm View 1 chunk +9 lines, -0 lines 0 comments Download
M ios/chrome/browser/chrome_switches.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/chrome_switches.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M ios/chrome/browser/experimental_flags.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/experimental_flags.mm View 2 chunks +16 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm View 1 2 3 2 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 18 (11 generated)
justincohen
for your consideration.
3 years, 5 months ago (2017-06-27 03:57:29 UTC) #2
rohitrao (ping after 24h)
https://codereview.chromium.org/2956013002/diff/1/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm File ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm (right): https://codereview.chromium.org/2956013002/diff/1/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm#newcode465 ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm:465: GetApplicationContext()->GetApplicationLocale() == "ja") { This should check the primaryLanguage ...
3 years, 5 months ago (2017-06-27 13:48:48 UTC) #7
justincohen
ptal
3 years, 5 months ago (2017-06-28 15:19:31 UTC) #8
rohitrao (ping after 24h)
lgtm https://codereview.chromium.org/2956013002/diff/40001/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm File ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm (right): https://codereview.chromium.org/2956013002/diff/40001/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm#newcode463 ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm:463: // The following bool was introduced to workaround ...
3 years, 5 months ago (2017-06-28 16:48:23 UTC) #10
justincohen
https://codereview.chromium.org/2956013002/diff/40001/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm File ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm (right): https://codereview.chromium.org/2956013002/diff/40001/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm#newcode463 ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm:463: // The following bool was introduced to workaround a ...
3 years, 5 months ago (2017-06-28 21:38:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2956013002/60001
3 years, 5 months ago (2017-06-28 21:45:18 UTC) #15
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 23:34:30 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/dacc85d6208232ec0b2af40786ce...

Powered by Google App Engine
This is Rietveld 408576698