Closed
Bug 1825360
Opened 1 year ago
Closed 1 year ago
Remove NS_DISPATCH_SYNC
Categories
(Core :: XPCOM, task)
Core
XPCOM
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.
Assignee | ||
Comment 1•1 year ago
|
||
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
Comment 3•1 year ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox113:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Updated•1 year ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•