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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/extension_api/content_settings/background.js

Issue 78303005: ContentSettings API should not interact with <webview> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary churn Created 7 years 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/test/data/extensions/platform_apps/web_view/extension_api/content_settings/background.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/addremove/test.js b/chrome/test/data/extensions/platform_apps/web_view/extension_api/content_settings/background.js
similarity index 52%
copy from chrome/test/data/extensions/platform_apps/web_view/addremove/test.js
copy to chrome/test/data/extensions/platform_apps/web_view/extension_api/content_settings/background.js
index 1886432c3055a84510594bb8c7e0d3ac28feb045..94a1410815cbdf02aa94e0c732a3bfc1c7f3579f 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/addremove/test.js
+++ b/chrome/test/data/extensions/platform_apps/web_view/extension_api/content_settings/background.js
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('embedder.html', {}, function () {});
+chrome.contentSettings.javascript.set({
+ primaryPattern: '<all_urls>',
+ setting: 'block'
+}, function() {
+ window.console.log('Blocking all JavaScript');
});
+

Powered by Google App Engine
This is Rietveld 408576698