Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: Source/core/dom/Document.cpp

Issue 1170413003: Add a scoping object to help block scripting during plugin destruction. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/frame/LocalFrame.cpp » ('j') | Source/platform/ReentrantScriptForbiddenScope.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 5de448e994c44c58bd1dff385ebd6ee67c227640..f30fb7d2d1030377062cc250c473a2c021384c8b 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -197,6 +197,7 @@
#include "platform/Language.h"
#include "platform/LengthFunctions.h"
#include "platform/Logging.h"
+#include "platform/ReentrantScriptForbiddenScope.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/TraceEvent.h"
@@ -2574,6 +2575,7 @@ bool Document::dispatchBeforeUnloadEvent(ChromeClient& chromeClient, bool& didAl
void Document::dispatchUnloadEvents()
{
+ ReentrantScriptForbiddenScope forbidPluginDestructorScripting;
RefPtrWillBeRawPtr<Document> protect(this);
if (m_parser)
m_parser->stopParsing();
« no previous file with comments | « no previous file | Source/core/frame/LocalFrame.cpp » ('j') | Source/platform/ReentrantScriptForbiddenScope.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698