Open Bug 1633399 Opened 4 years ago Updated 4 days ago

Twitter crashes while typing Korean (likely due to a DraftJS bug)

Categories

(Core :: DOM: Editor, defect, P3)

x86_64
Windows 10
defect

Tracking

()

Tracking Status
firefox77 --- affected

People

(Reporter: saschanaz, Unassigned)

References

(Depends on 2 open bugs)

Details

(Keywords: inputmethod, webcompat:site-wait)

Attachments

(2 files, 1 obsolete file)

  1. Access twitter.com
  2. Type "가" and press enter key.
  3. Tap Control+Shift+Home to select all texts including newline.
  4. Type "가" again and press space key.

Expected: "가"
Actual: Twitter crashes - "Something went wrong, but don’t fret — it’s not your fault."

This also causes a bug on Chrome but it doesn't crash. I guess we need to contact Twitter.

Twitter crashes or some child process of Firefox crashes?
(I don't know what "Twitter crashes" means :) )

Maybe this is a tech evangelism bug?

Flags: needinfo?(krosylight)
Priority: -- → P3

It's Twitter that crashes, not the Firefox tab itself. Seemingly an exception occurs from a mutation observer callback.

exports (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#9)
registerMutation (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#9)
registerMutations (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#9)
e (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#9)
e (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#9)
onCompositionStart (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#9)
onCompositionStart (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#9)
_buildHandler (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#1)
ta (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
unstable_runWithPriority (https://abs.twimg.com/responsive-web/web/main.82ef4e44.js#10)
ta (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
unstable_flushControlled (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
_buildHandler (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#1)
exports (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#9)
_buildHandler (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#1)
ta (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
unstable_runWithPriority (https://abs.twimg.com/responsive-web/web/main.82ef4e44.js#10)
ta (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
unstable_flushControlled (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
_buildHandler (https://abs.twimg.com/responsive-web/web/bundle.RichTextCompose.3bbd68a4.js#1)
a (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
p (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
O (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
O (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
C (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
P (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
R (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
kn (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
Ia (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
ze (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
Cn (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
En (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
pr (https://abs.twimg.com/responsive-web/web/vendors~main.e0482f54.js#65)
Flags: needinfo?(krosylight)
Severity: -- → S3

This may worth webcompat team's attention.

Non-ascii text + selection reminds me of Bug 1625475... I'll email Twitter today.

Flags: needinfo?(miket)

Here's a screenshot of what this looks like. Note: I had to install the Korean IME to get this to reproduce, it's not enough to merely copy and paste the chars.

I sent an email to our mozilla-twitter mailing list.

Flags: needinfo?(miket)

Can you test on https://draftjs.org/ ? Look for any errors in the console. We generally just use that as our editor without too many frills on top, so any issues are likely with that editor itself. We're a minor version behind, so it's possible upgrading might help.

OK, yeah. I think Twitter is off the hook, this manages to nuke the entire DraftJS page. :)

Summary: Twitter crashes while typing Korean → Twitter crashes while typing Korean (likely due to a DraftJS bug)
Blocks: 1643070

Masayuki, is this another variant of bug 1739489?

Flags: needinfo?(masayuki)
See Also: → 1739489

(In reply to Hsin-Yi Tsai [:hsinyi] from comment #10)

Masayuki, is this another variant of bug 1739489?

Could be, but not directly same thing since Windows does not use the new path for inputting commit string without composition events.

Flags: needinfo?(masayuki)

Kagami, do you still see this issue?

Flags: needinfo?(krosylight)

Yes, but it does not crash anymore but instead cleans all the text away unexpectedly.

Flags: needinfo?(krosylight)
See Also: → 903746
See Also: → 1835339

(Still reproducible. Just wanted to say as there's a new see-also)

Attachment #9387005 - Attachment is obsolete: true
Depends on: 1835339
See Also: 1835339
No longer blocks: 1643070
Depends on: 1643070
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: