diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 24e2512f0fe..ba9a4994322 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -839,11 +839,6 @@ DocumentViewerImpl::InitInternal(nsIWidget* aParentWidget, PRBool aInPrintPreview, PRBool aNeedMakeCX /*= PR_TRUE*/) { - // We don't want any scripts to run here. That can cause flushing, - // which can cause reentry into initialization of this document viewer, - // which would be disastrous. - nsAutoScriptBlocker blockScripts; - mParentWidget = aParentWidget; // not ref counted mBounds = aBounds;