Closed Bug 519974 Opened 15 years ago Closed 14 years ago

When we use IME, ASSERTION is printed at each key input (ASSERTION: nsEditor doesn't support wide caret: 'selectionStart == selectionEnd', editor/libeditor/base/IMETextTxn.cpp line 322

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b1

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: assertion, inputmethod, intl)

Attachments

(1 file, 2 obsolete files)

ASSERTION: nsEditor doesn't support wide caret: 'selectionStart == selectionEnd', editor/libeditor/base/IMETextTxn.cpp line 322

is printed at every key typing with IME.

I added the assertion in another bug. The assertion says that nsChildView send the wide caret setting by NS_TEXT_TEXT event. I'll fix this bug in bug 519972.

Note that this bug doesn't break any functions. It is just a warning for the widget developers.
I'll fix this bug soon.
Blocks: 555642
No longer depends on: 519972
Attached patch Patch v1.0 (obsolete) — Splinter Review
The caret end position must be same as its start position on Mac.
Attachment #452638 - Flags: review?(smichaud)
Attached patch Patch v1.0 (obsolete) — Splinter Review
sorry for the spam.
Attachment #452638 - Attachment is obsolete: true
Attachment #452640 - Flags: review?(smichaud)
Attachment #452638 - Flags: review?(smichaud)
Comment on attachment 452640 [details] [diff] [review]
Patch v1.0

This makes sense to me.  I haven't tested it, but I assume it
shouldn't cause any problems.

Note that your change invalidates this comment:

  // Caret is indicator of insertion point, so mEndOffset = 0.

So it should also be changed.
Attachment #452640 - Flags: review?(smichaud) → review+
http://hg.mozilla.org/mozilla-central/rev/59a7a98a5a6b
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Attachment #452640 - Attachment is obsolete: true
Attachment #453298 - Flags: review+
Target Milestone: --- → mozilla1.9.3a6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: