Skip to content

Commit 22179cd

Browse files
committed
Backed out changeset 491237dbcb5d (bug 1323207)
1 parent 946e064 commit 22179cd

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

dom/base/nsContentUtils.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6743,8 +6743,6 @@ nsContentUtils::IsPatternMatching(nsAString& aValue, nsAString& aPattern,
67436743
jsapi.Init();
67446744
JSContext* cx = jsapi.cx();
67456745

6746-
MOZ_RELEASE_ASSERT(js::AllowGCBarriers(cx), "IsPatternMatching can enter the JS engine during painting. See bug 1310335.");
6747-
67486746
// We can use the junk scope here, because we're just using it for
67496747
// regexp evaluation, not actual script execution.
67506748
JSAutoCompartment ac(cx, xpc::UnprivilegedJunkScope());

dom/base/nsImageLoadingContent.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

4545
#include "mozAutoDocUpdate.h"
4646
#include "mozilla/AsyncEventDispatcher.h"
47-
#include "mozilla/CycleCollectedJSContext.h"
4847
#include "mozilla/EventStates.h"
4948
#include "mozilla/dom/Element.h"
5049
#include "mozilla/dom/ImageTracker.h"
@@ -149,9 +148,6 @@ nsImageLoadingContent::Notify(imgIRequest* aRequest,
149148
}
150149

151150
{
152-
MOZ_RELEASE_ASSERT(js::AllowGCBarriers(CycleCollectedJSContext::Get()->Context()),
153-
"ImageObservers can be implement in JS, so they should not be called during painting. See bug 1311841");
154-
155151
nsAutoScriptBlocker scriptBlocker;
156152

157153
for (ImageObserver* observer = &mObserverList, *next; observer;

xpcom/ds/nsObserverList.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "nsCOMArray.h"
1111
#include "nsISimpleEnumerator.h"
1212
#include "xpcpublic.h"
13-
#include "mozilla/CycleCollectedJSContext.h"
1413

1514
nsresult
1615
nsObserverList::AddObserver(nsIObserver* anObserver, bool ownsWeak)
@@ -106,9 +105,6 @@ nsObserverList::NotifyObservers(nsISupports* aSubject,
106105
const char* aTopic,
107106
const char16_t* someData)
108107
{
109-
MOZ_RELEASE_ASSERT(js::AllowGCBarriers(CycleCollectedJSContext::Get()->Context()),
110-
"Observers can be implement in JS, so they should not be called during painting.");
111-
112108
nsCOMArray<nsIObserver> observers;
113109
FillObserverArray(observers);
114110

0 commit comments

Comments
 (0)