diff options
author | Moonchild <moonchild@palemoon.org> | 2022-02-06 13:54:40 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-05-07 14:39:41 +0000 |
commit | 6f8d063b186022997303d33e33c008741c86ca78 (patch) | |
tree | a9765fb5754a8d7fdd9e4384671fd28138c209bb /dom/base/nsIGlobalObject.h | |
parent | a5b4a440d6ccecf03fd694e0c225caf4482e3aca (diff) | |
download | uxp-6f8d063b186022997303d33e33c008741c86ca78.tar.gz |
Issue #1895 - Implement queueMicroTask(callback())
Diffstat (limited to 'dom/base/nsIGlobalObject.h')
-rw-r--r-- | dom/base/nsIGlobalObject.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/base/nsIGlobalObject.h b/dom/base/nsIGlobalObject.h index 6dfae4fbe4..1438803317 100644 --- a/dom/base/nsIGlobalObject.h +++ b/dom/base/nsIGlobalObject.h @@ -19,6 +19,13 @@ class nsCString; class nsCycleCollectionTraversalCallback; class nsIPrincipal; +namespace mozilla{ +namespace dom{ +class VoidFunction; +} +} + + class nsIGlobalObject : public nsISupports { nsTArray<nsCString> mHostObjectURIs; @@ -72,6 +79,10 @@ public: void UnlinkHostObjectURIs(); void TraverseHostObjectURIs(nsCycleCollectionTraversalCallback &aCb); + virtual bool IsInSyncOperation() { return false; } + + void QueueMicrotask(mozilla::dom::VoidFunction& aCallback); + protected: virtual ~nsIGlobalObject(); |