Closed Bug 1322710 Opened 8 years ago Closed 8 years ago

IllegalStateException when setting GeckoEditable.DEBUG to true

Categories

(Firefox for Android Graveyard :: Keyboards and IME, defect)

All
Android
defect
Not set
normal

Tracking

(firefox53 fixed)

RESOLVED FIXED
Firefox 53
Tracking Status
firefox53 --- fixed

People

(Reporter: jchen, Assigned: jchen)

Details

Attachments

(1 file)

Setting GeckoEditable.DEBUG to true and using IME will cause an IllegalStateException in syncShadowText.
Don't use the system SpannableStringBuilder.equals implementation,
because of a bug in Android N+ that incorrectly compares spans.
Attachment #8817655 - Flags: review?(esawin)
Comment on attachment 8817655 [details] [diff] [review]
Don't use SpannableStringBuilder.equals (v1)

Review of attachment 8817655 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoEditable.java
@@ +364,5 @@
> +
> +        final Object[] o1s = s1.getSpans(0, s1.length(), Object.class);
> +        final Object[] o2s = s2.getSpans(0, s2.length(), Object.class);
> +
> +o1_loop:

Indendation and style.
Attachment #8817655 - Flags: review?(esawin) → review+
Pushed by nchen@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/75790798dd71
Don't use SpannableStringBuilder.equals; r=esawin
https://hg.mozilla.org/mozilla-central/rev/75790798dd71
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: