Backed out changeset ce11eadad118 (bug 1116821) for suspicion of making Android debug reftests frequent crash mid-run.
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 07 Jan 2015 16:17:22 -0500
changeset 235562 58767ba4867e170256a7b50593ac04641d91a912
parent 235561 0962698c14a0458765a2774f16b7ae3abeb1bfb8
child 235563 70de2960aa877d7755ee6f66bf2d4c4c46bfed2c
push id366
push usercmanchester@mozilla.com
push dateThu, 08 Jan 2015 16:40:24 +0000
bugs1116821
milestone37.0a1
backs outce11eadad118cd036d1a6e62c38d9d2397b74df9
Backed out changeset ce11eadad118 (bug 1116821) for suspicion of making Android debug reftests frequent crash mid-run. CLOSED TREE
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -2694,16 +2694,17 @@ 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);