extension
This commit is contained in:
parent
3c73bc3b24
commit
c0021312c2
5
tests/assets/extension-with-logging/background.js
Normal file
5
tests/assets/extension-with-logging/background.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
console.log("Service worker script loaded");
|
||||
|
||||
chrome.runtime.onInstalled.addListener(() => {
|
||||
console.log("Extension installed");
|
||||
});
|
||||
1
tests/assets/extension-with-logging/content.js
Normal file
1
tests/assets/extension-with-logging/content.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
console.log("Test console log from a third-party execution context");
|
||||
17
tests/assets/extension-with-logging/manifest.json
Normal file
17
tests/assets/extension-with-logging/manifest.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Console Log Extension",
|
||||
"version": "1.0",
|
||||
"background": {
|
||||
"service_worker": "background.js"
|
||||
},
|
||||
"permissions": [
|
||||
"tabs"
|
||||
],
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["<all_urls>"],
|
||||
"js": ["content.js"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue