Index: chrome/renderer/content_settings_observer.cc |
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc |
index 4f0a4b253f05bdcb0d57d30bdfa061cb403af105..67321b3a55e1869728503e105b1d5a407f7b753a 100644 |
--- a/chrome/renderer/content_settings_observer.cc |
+++ b/chrome/renderer/content_settings_observer.cc |
@@ -365,6 +365,11 @@ bool ContentSettingsObserver::IsWhitelistedForContentSettings( |
if (EqualsASCII(origin.protocol(), chrome::kChromeInternalScheme)) |
return true; |
+ // TODO(creis, fsamuel): Remove this once the concept of swapped out |
+ // RenderViews goes away. |
+ if (document_url == GURL(content::kSwappedOutURL)) |
+ return true; |
+ |
// If the scheme is file:, an empty file name indicates a directory listing, |
// which requires JavaScript to function properly. |
if (EqualsASCII(origin.protocol(), chrome::kFileScheme)) { |