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

Unified Diff: chrome/browser/renderer_host/chrome_render_view_host_observer.cc

Issue 8496024: Don't close crashed tabs from extensions with background pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix info map Created 9 years, 1 month 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
Index: chrome/browser/renderer_host/chrome_render_view_host_observer.cc
diff --git a/chrome/browser/renderer_host/chrome_render_view_host_observer.cc b/chrome/browser/renderer_host/chrome_render_view_host_observer.cc
index 586ecdab8e907750bb0fc7323156cd2355f8b47c..63065e0ad9273942166fecdcf8f8c062368939ce 100644
--- a/chrome/browser/renderer_host/chrome_render_view_host_observer.cc
+++ b/chrome/browser/renderer_host/chrome_render_view_host_observer.cc
@@ -139,7 +139,12 @@ const Extension* ChromeRenderViewHostObserver::GetExtension() {
if (!service)
return NULL;
- // May be null if somebody typos a chrome-extension:// URL.
+ // Reload the extension if it extension has crashed.
Matt Perry 2011/11/10 22:07:59 it = the
Yoyo Zhou 2011/11/10 23:26:30 Fixed.
+ if (service->GetTerminatedExtension(site.host()))
+ service->ReloadExtension(site.host());
Matt Perry 2011/11/10 22:18:13 Wait, this won't work for unpacked extensions, rig
Yoyo Zhou 2011/11/10 23:26:30 Surprisingly, it does seem to work (although I'm s
Matt Perry 2011/11/10 23:28:21 We shouldn't block the UI thread on reload for thi
+
+ // May be null if the extension doesn't exist, for example if somebody typos
+ // a chrome-extension:// URL.
return service->GetExtensionByURL(site);
}

Powered by Google App Engine
This is Rietveld 408576698