Closed
Bug 1230473
Opened 9 years ago
Closed 8 years ago
crash in nsEditor::EnsureComposition | In a compositionstart listener, blur() then focus() causes a segfault
Categories
(Core :: DOM: Editor, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla52
People
(Reporter: david, Assigned: masayuki)
References
()
Details
(Keywords: crash, inputmethod, testcase)
Crash Data
Attachments
(2 files)
58 bytes,
text/x-review-board-request
|
smaug
:
review+
gchang
:
approval-mozilla-aurora+
jcristau
:
approval-mozilla-beta-
|
Details |
12.08 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/45.0.2454.101 Chrome/45.0.2454.101 Safari/537.36
Steps to reproduce:
1. On Ubuntu 15.10, go to http://jsfiddle.net/6tsyptoh/2/ .
2. Trigger a compositionstart event. For example, press backtick twice in the UK (Extended WinKeys) keyboard layout. (Various IMEs I've tried seem to cause the same results)
Actual results:
The browser segfaults after the listener returns.
You can get the same effect by replacing the "blur(); focus()" with an alert(), in which case the segfault does not happen until the alert dialog is closed.
Expected results:
No segfault (though the IME may be interrupted)
Comment 1•9 years ago
|
||
Can you reproduce the crash with a build from mozilla.org? If so, please submit a crash report, then post the respective report ID from about:crashes in a comment here.
https://www.mozilla.org/firefox/all/
https://developer.mozilla.org/docs/How_to_get_a_stacktrace_for_a_bug_report
Severity: normal → critical
Component: Untriaged → DOM: Events
Flags: needinfo?(david)
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64
Yes it segfaults a mozilla.org build too; report ID bp-27dfb1e4-70b0-4fd7-bd4c-073542151204 (sorry for not including this before).
Flags: needinfo?(david)
Comment 3•9 years ago
|
||
null pointer crash. Regression from bug 960866?
Updated•9 years ago
|
Status: UNCONFIRMED → ASSIGNED
Crash Signature: [@ nsEditor::EnsureComposition ]
Component: DOM: Events → Editor
Ever confirmed: true
Summary: In a compositionstart listener, blur() then focus() causes a segfault → crash in nsEditor::EnsureComposition | In a compositionstart listener, blur() then focus() causes a segfault
Comment 5•8 years ago
|
||
Crash volume for signature 'nsEditor::EnsureComposition':
- nightly(version 50):0 crashes from 2016-06-06.
- aurora (version 49):18 crashes from 2016-06-07.
- beta (version 48):1 crash from 2016-06-06.
- release(version 47):12 crashes from 2016-05-31.
- esr (version 45):3 crashes from 2016-04-07.
Crash volume on the last weeks:
W. N-1 W. N-2 W. N-3 W. N-4 W. N-5 W. N-6 W. N-7
- nightly 0 0 0 0 0 0 0
- aurora 6 0 1 0 1 1 7
- beta 1 0 0 0 0 0 0
- release 0 4 2 2 1 0 3
- esr 0 0 1 1 0 0 1
Affected platforms: Windows, Mac OS X, Linux
status-firefox47:
--- → affected
status-firefox48:
--- → affected
status-firefox49:
--- → affected
status-firefox-esr45:
--- → affected
Assignee | ||
Updated•8 years ago
|
Crash Signature: [@ nsEditor::EnsureComposition ] → [@ nsEditor::EnsureComposition ]
[@ mozilla::EditorBase::EnsureComposition ]
Assignee | ||
Updated•8 years ago
|
Keywords: inputmethod
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 7•8 years ago
|
||
Updated•8 years ago
|
Priority: -- → P2
Comment hidden (mozreview-request) |
Comment 9•8 years ago
|
||
mozreview-review |
Comment on attachment 8808559 [details]
Bug 1230473 If there is no TextComposition instance even when EditorBase receives eCompositionStart event, the editor should do nothing
https://reviewboard.mozilla.org/r/91372/#review91222
Attachment #8808559 -
Flags: review?(bugs) → review+
Comment 10•8 years ago
|
||
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/6184510d1b73
If there is no TextComposition instance even when EditorBase receives eCompositionStart event, the editor should do nothing r=smaug
Comment 11•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Assignee | ||
Comment 12•8 years ago
|
||
Comment on attachment 8808559 [details]
Bug 1230473 If there is no TextComposition instance even when EditorBase receives eCompositionStart event, the editor should do nothing
Approval Request Comment
[Feature/regressing bug #]: bug 960866
[User impact if declined]: According to comments in crash reports, this bug can be reproduced with some IMEs (we're not sure what they are) when user logs in to Firefox Account at setting Firefox Sync on Android. I think that Firefox Sync is very important feature of Firefox for Android. So, this should be uplifted as far as possible.
[Describe test coverage new/current, TreeHerder]: Landed on mozilla-central a couple of days ago and has automated test.
[Risks and why]: Low, the patch removes MOZ_CRASH() and in such case, stops handling "outdated" composition events. The new behavior is tested by the automated test.
[String/UUID change made/needed]: Nothing.
Attachment #8808559 -
Flags: approval-mozilla-beta?
Attachment #8808559 -
Flags: approval-mozilla-aurora?
Comment 13•8 years ago
|
||
Comment on attachment 8808559 [details]
Bug 1230473 If there is no TextComposition instance even when EditorBase receives eCompositionStart event, the editor should do nothing
This patch fixes a crash and includes tests. Take it in 51 aurora.
Attachment #8808559 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 15•8 years ago
|
||
Sorry! This is rebased patch for Aurora.
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(masayuki)
Comment 16•8 years ago
|
||
bugherder uplift |
Comment 17•8 years ago
|
||
Comment on attachment 8808559 [details]
Bug 1230473 If there is no TextComposition instance even when EditorBase receives eCompositionStart event, the editor should do nothing
This was uplifted to 51 before it went to beta, so nothing to uplift there anymore.
Attachment #8808559 -
Flags: approval-mozilla-beta? → approval-mozilla-beta-
You need to log in
before you can comment on or make changes to this bug.
Description
•