Backed out changeset b1f8365b8a92 (bug 1081038) for dt Test Failures on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2014-11-13 11:48:21 +01:00
parent 8077efd4ab
commit 345714ca5e
2 changed files with 0 additions and 9 deletions

View File

@ -463,22 +463,14 @@ AutoEntryScript::AutoEntryScript(nsIGlobalObject* aGlobalObject,
aCx ? aCx : FindJSContext(aGlobalObject))
, ScriptSettingsStackEntry(aGlobalObject, /* aCandidate = */ true)
, mWebIDLCallerPrincipal(nullptr)
, mIsMainThread(aIsMainThread)
{
MOZ_ASSERT(aGlobalObject);
MOZ_ASSERT_IF(!aCx, aIsMainThread); // cx is mandatory off-main-thread.
MOZ_ASSERT_IF(aCx && aIsMainThread, aCx == FindJSContext(aGlobalObject));
if (aIsMainThread) {
nsContentUtils::EnterMicroTask();
}
}
AutoEntryScript::~AutoEntryScript()
{
if (mIsMainThread) {
nsContentUtils::LeaveMicroTask();
}
// GC when we pop a script entry point. This is a useful heuristic that helps
// us out on certain (flawed) benchmarks like sunspider, because it lets us
// avoid GCing during the timing loop.

View File

@ -330,7 +330,6 @@ private:
// bit up the stack, and which will outlive us. So we know the principal
// can't go away until then either.
nsIPrincipal* mWebIDLCallerPrincipal;
bool mIsMainThread;
friend nsIPrincipal* GetWebIDLCallerPrincipal();
};