Loading docshell/base/nsDocShell.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -10381,7 +10381,7 @@ nsresult nsDocShell::DoChannelLoad(nsIChannel* aChannel, // We're about to load a new page and it may take time before necko // gives back any data, so main thread might have a chance to process a // collector slice nsJSContext::MaybeRunNextCollectorSlice(this, JS::gcreason::DOCSHELL); nsJSContext::MaybeRunNextCollectorSlice(this, JS::GCReason::DOCSHELL); // Success. Keep the initial ClientSource if it exists. cleanupInitialClient.release(); Loading dom/base/FuzzingFunctions.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ namespace mozilla { namespace dom { /* static */ void FuzzingFunctions::GarbageCollect(const GlobalObject&) { nsJSContext::GarbageCollectNow(JS::gcreason::COMPONENT_UTILS, nsJSContext::GarbageCollectNow(JS::GCReason::COMPONENT_UTILS, nsJSContext::NonIncrementalGC, nsJSContext::NonShrinkingGC); } Loading dom/base/nsDOMWindowUtils.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1037,7 +1037,7 @@ NS_IMETHODIMP nsDOMWindowUtils::GarbageCollect(nsICycleCollectorListener* aListener) { AUTO_PROFILER_LABEL("nsDOMWindowUtils::GarbageCollect", GCCC); nsJSContext::GarbageCollectNow(JS::gcreason::DOM_UTILS); nsJSContext::GarbageCollectNow(JS::GCReason::DOM_UTILS); nsJSContext::CycleCollectNow(aListener); return NS_OK; Loading @@ -1051,7 +1051,7 @@ nsDOMWindowUtils::CycleCollect(nsICycleCollectorListener* aListener) { NS_IMETHODIMP nsDOMWindowUtils::RunNextCollectorTimer() { nsJSContext::RunNextCollectorTimer(JS::gcreason::DOM_WINDOW_UTILS); nsJSContext::RunNextCollectorTimer(JS::GCReason::DOM_WINDOW_UTILS); return NS_OK; } Loading dom/base/nsGlobalWindowInner.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -6006,10 +6006,11 @@ bool nsGlobalWindowInner::RunTimeoutHandler(Timeout* aTimeout, nsJSUtils::ExecutionContext exec(aes.cx(), global); rv = exec.Compile(options, handler->GetHandlerText()); if (rv == NS_OK) { JS::Rooted<JSScript*> script(aes.cx(), exec.MaybeGetScript()); if (script) { LoadedScript* initiatingScript = handler->GetInitiatingScript(); if (initiatingScript) { initiatingScript->AssociateWithScript(exec.GetScript()); initiatingScript->AssociateWithScript(script); } rv = exec.ExecScript(); Loading dom/base/nsGlobalWindowOuter.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -2495,7 +2495,7 @@ void nsGlobalWindowOuter::DetachFromDocShell() { // When we're about to destroy a top level content window // (for example a tab), we trigger a full GC by passing null as the last // param. We also trigger a full GC for chrome windows. nsJSContext::PokeGC(JS::gcreason::SET_DOC_SHELL, nsJSContext::PokeGC(JS::GCReason::SET_DOC_SHELL, (mTopLevelOuterContentWindow || mIsChrome) ? nullptr : GetWrapperPreserveColor()); Loading Loading
docshell/base/nsDocShell.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -10381,7 +10381,7 @@ nsresult nsDocShell::DoChannelLoad(nsIChannel* aChannel, // We're about to load a new page and it may take time before necko // gives back any data, so main thread might have a chance to process a // collector slice nsJSContext::MaybeRunNextCollectorSlice(this, JS::gcreason::DOCSHELL); nsJSContext::MaybeRunNextCollectorSlice(this, JS::GCReason::DOCSHELL); // Success. Keep the initial ClientSource if it exists. cleanupInitialClient.release(); Loading
dom/base/FuzzingFunctions.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ namespace mozilla { namespace dom { /* static */ void FuzzingFunctions::GarbageCollect(const GlobalObject&) { nsJSContext::GarbageCollectNow(JS::gcreason::COMPONENT_UTILS, nsJSContext::GarbageCollectNow(JS::GCReason::COMPONENT_UTILS, nsJSContext::NonIncrementalGC, nsJSContext::NonShrinkingGC); } Loading
dom/base/nsDOMWindowUtils.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1037,7 +1037,7 @@ NS_IMETHODIMP nsDOMWindowUtils::GarbageCollect(nsICycleCollectorListener* aListener) { AUTO_PROFILER_LABEL("nsDOMWindowUtils::GarbageCollect", GCCC); nsJSContext::GarbageCollectNow(JS::gcreason::DOM_UTILS); nsJSContext::GarbageCollectNow(JS::GCReason::DOM_UTILS); nsJSContext::CycleCollectNow(aListener); return NS_OK; Loading @@ -1051,7 +1051,7 @@ nsDOMWindowUtils::CycleCollect(nsICycleCollectorListener* aListener) { NS_IMETHODIMP nsDOMWindowUtils::RunNextCollectorTimer() { nsJSContext::RunNextCollectorTimer(JS::gcreason::DOM_WINDOW_UTILS); nsJSContext::RunNextCollectorTimer(JS::GCReason::DOM_WINDOW_UTILS); return NS_OK; } Loading
dom/base/nsGlobalWindowInner.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -6006,10 +6006,11 @@ bool nsGlobalWindowInner::RunTimeoutHandler(Timeout* aTimeout, nsJSUtils::ExecutionContext exec(aes.cx(), global); rv = exec.Compile(options, handler->GetHandlerText()); if (rv == NS_OK) { JS::Rooted<JSScript*> script(aes.cx(), exec.MaybeGetScript()); if (script) { LoadedScript* initiatingScript = handler->GetInitiatingScript(); if (initiatingScript) { initiatingScript->AssociateWithScript(exec.GetScript()); initiatingScript->AssociateWithScript(script); } rv = exec.ExecScript(); Loading
dom/base/nsGlobalWindowOuter.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -2495,7 +2495,7 @@ void nsGlobalWindowOuter::DetachFromDocShell() { // When we're about to destroy a top level content window // (for example a tab), we trigger a full GC by passing null as the last // param. We also trigger a full GC for chrome windows. nsJSContext::PokeGC(JS::gcreason::SET_DOC_SHELL, nsJSContext::PokeGC(JS::GCReason::SET_DOC_SHELL, (mTopLevelOuterContentWindow || mIsChrome) ? nullptr : GetWrapperPreserveColor()); Loading