Closed Bug 1546888 Opened 6 years ago Closed 6 years ago

Make editor public methods which may be canceled by clipboard event listener return NS_SUCCESS_DOM_NO_OPERATION when it's canceled

Categories

(Core :: DOM: Editor, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

Making callers can distinguish whether each edit action like paste is canceled by clipboard event listener, such methods should return different succeeded code from NS_OK.

This patch makes editors return new error code internally when clipboard event
is dispatched and canceled by script. This is for making each caller stop
handling the edit action. However, it's not actual failure. Therefore, making
public methods return NS_SUCCESS_DOM_NO_OPERATION instead via
EditorBase::ToGenericNSResult().

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/4e509c724417 Make editor public methods which may be canceled by clipboard event listener return NS_SUCCESS_DOM_NO_OPERATION when it's canceled r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: