gecko-dev/dom/l10n
Emilio Cobos Álvarez f2c33f7f71 Bug 1823915 - Ensure that we have a pending flush when blocking load. r=smaug
Consider the following sequence of events:

 * We do an l10n mutation -> mBlockingLoad=true, mPendingMutations.Size() = 1
 * That flush triggers a promise -> mBlockingLoad=true, mPendingMutations.Size() = 0, mPendingPromises=1
 * Another mutation happens -> mBlockingLoad=true, mPendingMutations.Size() = 1, mPendingPromises = 1
 * The promise resolves -> mBlockingLoad=true, mPendingMutations.Size() = 1, mPendingPromises=0

Key part there is that the second mutation didn't post a task to flush,
so we rely on the refresh driver (which is not reliable on Wayland as
described in the comment).

Instead, we need to track the pending flush separately from the blocking
load.

Differential Revision: https://phabricator.services.mozilla.com/D174624
2023-04-04 13:52:39 +00:00
..
tests Bug 1819664 - Notify chrome docs when async translation work is done. r=smaug,Gijs 2023-03-04 00:04:21 +00:00
DOMLocalization.cpp Bug 1819664 - Notify chrome docs when async translation work is done. r=smaug,Gijs 2023-03-04 00:04:21 +00:00
DOMLocalization.h Bug 1819664 - Notify chrome docs when async translation work is done. r=smaug,Gijs 2023-03-04 00:04:21 +00:00
DocumentL10n.cpp Bug 1819664 - Cleanup some DOMLocalization methods that can't throw. r=Gijs 2023-03-02 18:15:10 +00:00
DocumentL10n.h Bug 1819664 - Notify chrome docs when async translation work is done. r=smaug,Gijs 2023-03-04 00:04:21 +00:00
L10nMutations.cpp Bug 1823915 - Ensure that we have a pending flush when blocking load. r=smaug 2023-04-04 13:52:39 +00:00
L10nMutations.h Bug 1823915 - Ensure that we have a pending flush when blocking load. r=smaug 2023-04-04 13:52:39 +00:00
L10nOverlays.cpp Bug 1809902 - make fluent sanitization of innerHTML assignments explicit to avoid DEBUG MOZ_CRASH, r=eemeli 2023-01-18 13:07:44 +00:00
L10nOverlays.h Bug 1768189 - Part 17: Apply modernize-concat-nested-namespaces to dom/ipc/URLClassifierParent.h ... r=andi 2022-05-09 20:41:09 +00:00
components.conf
moz.build