Closed Bug 1825360 Opened 1 year ago Closed 1 year ago

Remove NS_DISPATCH_SYNC

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: nika, Assigned: nika)

References

Details

Attachments

(1 file)

This flag currently is a bit ambiguous and a potential footgun, as it spins a nested event loop until the dispatch has completed, which may be surprising to callers. In addition, many implementations of nsIEventTarget do not support the flag, either explicitly or due to the flag being ignored.

This bug is to track removing the existing flag and switching callers over to instead using a helper function which is more explicit about the behaviour.

This flag is not supported by most event targets and can have unexpected
side effects (namely spinning a nested event loop). All consumers have
been replaced with a new function which is more explicit about this side
effect.

Pushed by nlayzell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/104d913776c7
Remove the NS_DISPATCH_SYNC flag, r=necko-reviewers,geckoview-reviewers,media-playback-reviewers,karlt,jesup,m_kato,emilio
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Type: enhancement → task
Regressions: 1825809
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: