Closed Bug 1791501 Opened 2 years ago Closed 2 years ago

Make `EditActionResult` treated as ok type of `Result`

Categories

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

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

No description provided.

Any callers do not refer "ignored", "handled" and "cancel" state without
checking whether the method returns error or not. Therefore, error state
can be (and should be) managed by mozilla::Result's error state.

Perhaps, it should store a caret position later because deletion handlers
of HTMLEditor use it, but update Selection immediately.

Depends on D157575

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/2ecf94b7d78c
Use `EditActionResult` as ok type of `mozilla::Result` r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: