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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 10836169: Revert 150664 - Browser Plugin: Report Guest crash to Javascript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « no previous file | content/renderer/browser_plugin/browser_plugin_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.cc
===================================================================
--- content/renderer/browser_plugin/browser_plugin.cc (revision 150678)
+++ content/renderer/browser_plugin/browser_plugin.cc (working copy)
@@ -37,7 +37,6 @@
namespace content {
namespace {
-const char kCrashEventName[] = "crash";
const char kNavigationEventName[] = "navigation";
const char* kSrcAttribute = "src";
}
@@ -185,21 +184,6 @@
void BrowserPlugin::GuestCrashed() {
guest_crashed_ = true;
container_->invalidate();
-
- if (!HasListeners(kCrashEventName))
- return;
-
- EventListeners& listeners = event_listener_map_[kCrashEventName];
- EventListeners::iterator it = listeners.begin();
- for (; it != listeners.end(); ++it) {
- v8::Context::Scope context_scope(v8::Context::New());
- v8::HandleScope handle_scope;
- container()->element().document().frame()->
- callFunctionEvenIfScriptDisabled(*it,
- v8::Object::New(),
- 0,
- NULL);
- }
}
void BrowserPlugin::DidNavigate(const GURL& url) {
« no previous file with comments | « no previous file | content/renderer/browser_plugin/browser_plugin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698