diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 6a4e9a02b9c..05836db05d1 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -216,6 +216,7 @@ NS_IMETHODIMP GlobalWindowImpl::SetContext(nsIScriptContext *aContext) NS_WARNING("Possibly early removal of script object, see bug #41608"); mContext->RemoveReference(&mScriptObject, mScriptObject); } + mContext = aContext; return NS_OK; }