Bug 1116821 - Don't PokeGC in SetNewDocument. r=smaug
☠☠ backed out by b9f40d0310d5 ☠ ☠
authorAndrew McCreight <continuation@gmail.com>
Sun, 04 Jan 2015 17:46:49 -0800
changeset 247793 ca77252e50dd3a5dd793993c485bdf4b9b1c6176
parent 247792 d7405ceb19a2bc3eb893a18a8aafcbfd6232ab7c
child 247794 21d8070745500997f14491c9c0c12a20a85e20ed
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1116821
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1116821 - Don't PokeGC in SetNewDocument. r=smaug
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -2675,17 +2675,16 @@ nsGlobalWindow::SetNewDocument(nsIDocume
       mArguments = nullptr;
     }
 
     // Give the new inner window our chrome event handler (since it
     // doesn't have one).
     newInnerWindow->mChromeEventHandler = mChromeEventHandler;
   }
 
-  nsJSContext::PokeGC(JS::gcreason::SET_NEW_DOCUMENT);
   mContext->DidInitializeContext();
 
   // We wait to fire the debugger hook until the window is all set up and hooked
   // up with the outer. See bug 969156.
   if (createdInnerWindow) {
     // AutoEntryScript required to invoke debugger hook, which is a
     // Gecko-specific concept at present.
     AutoEntryScript aes(newInnerWindow);