Bug 1450171 - Make promiseDocumentFlushed assertions make more sense. r=bz
authorMike Conley <mconley@mozilla.com>
Tue, 03 Apr 2018 10:27:18 -0400
changeset 776779 2aa53569681270cf85795f56b5362c75644604ec
parent 776778 2b15ac954bf2c2c9c2ec13f4dd4dee33dc8a55c1
child 776780 8982e01b201f25d3bf649a5035147dcd1573777e
child 777290 a4b1b982b7eab14f8736cdca75f9622765b4ee9e
push id104994
push usermaglione.k@gmail.com
push dateTue, 03 Apr 2018 18:21:08 +0000
reviewersbz
bugs1450171
milestone61.0a1
Bug 1450171 - Make promiseDocumentFlushed assertions make more sense. r=bz
dom/base/nsGlobalWindowInner.cpp
--- a/dom/base/nsGlobalWindowInner.cpp
+++ b/dom/base/nsGlobalWindowInner.cpp
@@ -862,18 +862,16 @@ public:
   , mCallback(&aCallback)
   {
   }
 
   virtual ~PromiseDocumentFlushedResolver() = default;
 
   void Call()
   {
-    MOZ_ASSERT(nsContentUtils::IsSafeToRunScript());
-
     ErrorResult error;
     JS::Rooted<JS::Value> returnVal(RootingCx());
     mCallback->Call(&returnVal, error);
 
     if (error.Failed()) {
       mPromise->MaybeReject(error);
     } else {
       mPromise->MaybeResolve(returnVal);