feat: expose frame's execution contexts (#3048)

This patch exposes frame's execution contexts, making it possible
to debug extension's content scripts.

This is a resurrected #2812.
This commit is contained in:
Andrey Lushnikov
2018-08-09 14:57:08 -07:00
committed by GitHub
parent b84404c94e
commit 231a2be971
9 changed files with 158 additions and 27 deletions

View File

@@ -0,0 +1,3 @@
console.log('hey from the content-script');
self.thisIsTheContentScript = true;

View File

@@ -1,12 +1,14 @@
{
"name": "Simple extension",
"version": "0.1",
"app": {
"background": {
"scripts": ["index.js"]
}
"background": {
"scripts": ["index.js"]
},
"permissions": ["background"],
"content_scripts": [{
"matches": ["<all_urls>"],
"css": [],
"js": ["content-script.js"]
}],
"permissions": ["background", "activeTab"],
"manifest_version": 2
}