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

Unified Diff: chrome/browser/extensions/extension_webkit_preferences.cc

Issue 10443047: Disable synchronous XMLHttpRequests in platform app documents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | chrome/test/data/extensions/platform_apps/restrictions/test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_webkit_preferences.cc
diff --git a/chrome/browser/extensions/extension_webkit_preferences.cc b/chrome/browser/extensions/extension_webkit_preferences.cc
index 14fbbbef232fa607929badc1c9ea05831d62b85e..b15f33988cead6e5897f6211faf39546b2ccecfa 100644
--- a/chrome/browser/extensions/extension_webkit_preferences.cc
+++ b/chrome/browser/extensions/extension_webkit_preferences.cc
@@ -38,6 +38,7 @@ void SetPreferences(const extensions::Extension* extension,
if (extension->is_platform_app()) {
webkit_prefs->databases_enabled = false;
webkit_prefs->local_storage_enabled = false;
+ webkit_prefs->sync_xhr_in_documents_enabled = false;
}
// Enable WebGL features that regular pages can't access, since they add
« no previous file with comments | « no previous file | chrome/test/data/extensions/platform_apps/restrictions/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698