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

Unified Diff: chrome/test/data/extensions/api_test/content_scripts/ntp/manifest.json

Issue 2978953002: [Extensions] Don't allow content scripts on the New Tab Page (Closed)
Patch Set: . Created 3 years, 5 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
Index: chrome/test/data/extensions/api_test/content_scripts/ntp/manifest.json
diff --git a/chrome/test/data/extensions/api_test/content_scripts/ntp/manifest.json b/chrome/test/data/extensions/api_test/content_scripts/ntp/manifest.json
new file mode 100644
index 0000000000000000000000000000000000000000..ae167737f3620b72c0d768d458ba9e9e0b495a5e
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/content_scripts/ntp/manifest.json
@@ -0,0 +1,13 @@
+{
+ "name": "New Tab Page Injector",
+ "version": "0.1",
+ "manifest_version": 2,
+ "description": "Injects in the NTP",
+ "content_scripts": [{
+ "matches": ["*://*/*"],
+ "js": ["script.js"],
+ "run_at": "document_start"
karandeepb 2017/07/18 21:06:25 For my own knowledge, why didn't document_start/wi
Devlin 2017/07/18 21:12:49 window.didInject didn't work because the content s
karandeepb 2017/07/18 21:27:18 Makes sense! Thanks.
+ }],
+ "background": {"scripts": ["background.js"]},
+ "permissions": ["tabs", "*://*/*"]
+}

Powered by Google App Engine
This is Rietveld 408576698