mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
3
test/assets/simple-extension/content-script.js
Normal file
3
test/assets/simple-extension/content-script.js
Normal file
@@ -0,0 +1,3 @@
|
||||
console.log('hey from the content-script');
|
||||
self.thisIsTheContentScript = true;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user