Closed
Bug 1236705
Opened 10 years ago
Closed 9 years ago
Regression in GeckoEditable.onTextChange when handling certain changes
Categories
(Firefox for Android Graveyard :: Keyboards and IME, defect)
Tracking
(firefox44 unaffected, firefox45+ fixed, firefox46 fixed, fennec45+)
RESOLVED
FIXED
Firefox 46
Tracking | Status | |
---|---|---|
firefox44 | --- | unaffected |
firefox45 | + | fixed |
firefox46 | --- | fixed |
fennec | 45+ | --- |
People
(Reporter: jchen, Assigned: jchen)
References
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file)
4.84 KB,
patch
|
esawin
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
This is a regression from bug 1051556, which had a patch to optimize GeckoEditable.onTextChange. However, that patch introduced a regression where data loss can occur if the changed text has a larger range than expected.
Assignee | ||
Updated•10 years ago
|
Keywords: regression
Assignee | ||
Comment 1•10 years ago
|
||
Handle all text change scenarios efficiently but correctly. In
particular, when we have a pending "replace text" action, make sure we
preserve old and new spans as much as we can, and make sure we merge the
text from the pending action with the actual changed text.
Attachment #8703860 -
Flags: review?(esawin)
Comment 2•10 years ago
|
||
Will this fix bug 1236715?
Comment 4•10 years ago
|
||
Comment on attachment 8703860 [details] [diff] [review]
Correctly handle all text change scenarios (v1)
Review of attachment 8703860 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/java/org/mozilla/gecko/GeckoEditable.java
@@ +1058,3 @@
> // The new text exactly matches our sequence, so do a direct replace.
> geckoReplaceText(start, oldEnd, action.mSequence);
> +
Blank line.
Attachment #8703860 -
Flags: review?(esawin) → review+
Comment 5•10 years ago
|
||
Jim, could you fill the uplift request to aurora? Thanks
Crash Signature: [@ java.lang.IllegalArgumentException: invalid selection notification range at org.mozilla.gecko.GeckoEditable.onSelectionChange(GeckoEditable.java)]
status-firefox45:
--- → affected
status-firefox46:
--- → affected
Flags: needinfo?(nchen)
Keywords: crash
Updated•10 years ago
|
tracking-firefox45:
--- → +
Comment 7•10 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Updated•10 years ago
|
tracking-fennec: --- → 45+
status-firefox44:
--- → unaffected
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8703860 [details] [diff] [review]
Correctly handle all text change scenarios (v1)
Approval Request Comment
[Feature/regressing bug #]: Bug 1051556
[User impact if declined]: Crash on some pages
[Describe test coverage new/current, TreeHerder]: Locally, m-c
[Risks and why]: Small, patch introduces some new code, but it should be more robust than before
[String/UUID change made/needed]: None
Flags: needinfo?(nchen)
Attachment #8703860 -
Flags: approval-mozilla-aurora?
Comment 9•10 years ago
|
||
Comment on attachment 8703860 [details] [diff] [review]
Correctly handle all text change scenarios (v1)
Fix a crash, taking it.
Attachment #8703860 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 10•10 years ago
|
||
bugherder uplift |
This is still happening in 45.0b3
https://crash-stats.mozilla.com/report/index/8ba5d6eb-ce2c-4221-a39e-f443a2160206
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 12•9 years ago
|
||
I'll open a new bug for the recent crashes.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 9 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Version: unspecified → 45 Branch
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•