Closed Bug 107494 Opened 23 years ago Closed 23 years ago

IME's committed string is entered twice due to new nsHTMLEditRules

Categories

(Core :: DOM: Editor, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: masaki.katakai, Assigned: mozeditor)

References

Details

(Keywords: inputmethod, Whiteboard: fixinhand; regression; landed on 096 branch and trunk)

Attachments

(2 files)

bug 25452 is now reproducible again with new Editor codes.
The first composed character can not be deleted on both Windows and
Linux. Also committed string is entered twice on Linux.

nsHTMLEditRules::WillInsertText() has been changed and now
uses

    res = wsObj.InsertText(*inString,...);

but the method just returns when inString = null but it should
handle the case for IME to delete composed text. See detail
bug 25452.

I have made a patch for nsWSRunObject.cpp. Please review.
It's serious for IME users.
--> jfrancis

Joe, can you look over katakai's patch?
Assignee: kin → jfrancis
I believe I want to put the test up in nsHTMLEditRules::WillInsertText() rather
than down in the whitespace handling code.  Thanks to Masaki for investigating this!
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
Due to this problem, mail composer can not be used at all in japanese
environment on recent nightly. I heard many complaints of japanese users.
New version of patch that puts empty string test up in WillInsertText() rather
than down in the whitespacehandling code.
Whiteboard: fixinhand; regression; need r=,sr=,a=
Comment on attachment 57648 [details] [diff] [review]
patch to nsHTMLEditRules.cpp

r=sfraser
Attachment #57648 - Flags: review+
Comment on attachment 57648 [details] [diff] [review]
patch to nsHTMLEditRules.cpp

sr=kin@netscape.com

With the comment we talked about explaining why we need to sidestep the wsObj
code.
Attachment #57648 - Flags: superreview+
Comment on attachment 57648 [details] [diff] [review]
patch to nsHTMLEditRules.cpp

a=blizzard on behalf of drivers for 0.9.6
Attachment #57648 - Flags: approval+
This fix has landed on the 096 branch and trunk.

I need some verification help here.  I was able to test the fix for the deletion
portion of the bug description, but I was unable to test the linux issue, nor am
I confident this patch fixes the linux problem.  Can someone with a Linux IME
setup please verify this fix?
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: fixinhand; regression; need r=,sr=,a= → fixinhand; regression; landed on 096 branch and trunk
I have already verified your patch on Solaris environment on my local build.
It works fine.
OK, I'll try nightly build tomorrow on linux.
Masaki,

please let us know after you verified this on Linux.

Then if you can mark this bug VERIFIED-FIXED...thanks..
I've verified today's linux nightly it works fine.

However, Windows (111403) IME doesn't work at all. I can not see
any composed text. I'm not sure this change cause this problem
but 1113 nightly works fine.

How about your environment?
filed as bug 110170.
marking verified per comments. new bug is addressed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: