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

Unified Diff: Source/core/loader/FrameLoader.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: Rename static counter 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 | « Source/core/frame/RemoteFrame.cpp ('k') | Source/platform/PluginScriptForbiddenScope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index 843337b4fc2f0eb35b0a8ebff7d8e26cdbc94b34..157e1af81921fc78d13b42c86b49031a82e77b36 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -80,6 +80,7 @@
#include "core/svg/graphics/SVGImage.h"
#include "core/xml/parser/XMLDocumentParser.h"
#include "platform/Logging.h"
+#include "platform/PluginScriptForbiddenScope.h"
#include "platform/UserGestureIndicator.h"
#include "platform/network/HTTPParsers.h"
#include "platform/network/ResourceRequest.h"
@@ -1002,6 +1003,7 @@ void FrameLoader::notifyIfInitialDocumentAccessed()
void FrameLoader::commitProvisionalLoad()
{
ASSERT(client()->hasWebView());
+ PluginScriptForbiddenScope forbidPluginDestructorScripting;
RefPtr<DocumentLoader> pdl = m_provisionalDocumentLoader;
RefPtrWillBeRawPtr<LocalFrame> protect(m_frame.get());
« no previous file with comments | « Source/core/frame/RemoteFrame.cpp ('k') | Source/platform/PluginScriptForbiddenScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698