Bug 1116821 - Don't PokeGC in SetNewDocument. r=smaug
☠☠ backed out by 58767ba4867e ☠ ☠
authorAndrew McCreight <continuation@gmail.com>
Wed, 07 Jan 2015 10:49:41 -0800
changeset 235507 ce11eadad118cd036d1a6e62c38d9d2397b74df9
parent 235506 f6a498e8283102617e2f45d975a1882fe625a2aa
child 235508 9b49d075575fede0e0dac9d91e27e27b8dadbf1f
push id366
push usercmanchester@mozilla.com
push dateThu, 08 Jan 2015 16:40:24 +0000
reviewerssmaug
bugs1116821
milestone37.0a1
Bug 1116821 - Don't PokeGC in SetNewDocument. r=smaug
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -2694,17 +2694,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);