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

RESOLVED FIXED in Firefox 68

Status

()

task
RESOLVED FIXED
3 months ago
3 months ago

People

(Reporter: masayuki, Assigned: masayuki)

Tracking

Trunk
mozilla68
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(1 attachment)

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: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.