Turn designMode on and then off could still receive "composition" event

NEW
Unassigned

Status

()

P3
normal
3 years ago
2 years ago

People

(Reporter: ywu, Unassigned)

Tracking

({inputmethod})

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8776789 [details]
text.html

User-Agent: 
  firefox nightly 51.0a1 on mac 10.11.6
  firefox 47.0 on mac 10.11.6

When trying to turn designMode on and then off, I can still be able to receive "composition" event. And firefox 47 works fine but firefox nightly 51.0a1 works weird.
 
Reproducible: Always

Steps to Reproduce:
1.Type in with IME and you can see the text field below the button is updated.
2.Click the button to turn off the designMode 
3.Keep typing with IME and you will see the text field below the button updated.

Expected Results: 
when the designMode is off, gecko shouldn't send "composition" event to window.
Maybe, nsHTMLDocument::EditingStateChanged or nsEditSession::TearDownEditorOnWindow should commit current composition.
Keywords: inputmethod
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.