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

Unified Diff: Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm

Issue 7734002: Merge 93732 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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 | « LayoutTests/platform/wk2/Skipped ('k') | Source/WebKit/mac/WebView/WebFrame.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm
===================================================================
--- Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm (revision 93738)
+++ Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm (working copy)
@@ -691,7 +691,9 @@
NSURL *URL = [pluginRequest->request() URL];
NSString *JSString = [URL _webkit_scriptIfJavaScriptURL];
ASSERT(JSString);
-
+
+ RefPtr<NetscapePluginInstanceProxy> protect(this); // Executing arbitrary JavaScript can destroy the proxy.
+
NSString *result = [[m_pluginView webFrame] _stringByEvaluatingJavaScriptFromString:JSString forceUserGesture:pluginRequest->allowPopups()];
// Don't continue if stringByEvaluatingJavaScriptFromString caused the plug-in to stop.
« no previous file with comments | « LayoutTests/platform/wk2/Skipped ('k') | Source/WebKit/mac/WebView/WebFrame.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698