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 #
Messages
Total messages: 18 (11 generated)
|