From c0021312c29c6b64f879fa1e23555e6988811206 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 23 Sep 2024 15:06:03 -0700 Subject: [PATCH] extension --- .../assets/extension-with-logging/background.js | 5 +++++ tests/assets/extension-with-logging/content.js | 1 + .../assets/extension-with-logging/manifest.json | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 tests/assets/extension-with-logging/background.js create mode 100644 tests/assets/extension-with-logging/content.js create mode 100644 tests/assets/extension-with-logging/manifest.json diff --git a/tests/assets/extension-with-logging/background.js b/tests/assets/extension-with-logging/background.js new file mode 100644 index 0000000000..3780fa3f21 --- /dev/null +++ b/tests/assets/extension-with-logging/background.js @@ -0,0 +1,5 @@ +console.log("Service worker script loaded"); + +chrome.runtime.onInstalled.addListener(() => { + console.log("Extension installed"); +}); \ No newline at end of file diff --git a/tests/assets/extension-with-logging/content.js b/tests/assets/extension-with-logging/content.js new file mode 100644 index 0000000000..e718206c2a --- /dev/null +++ b/tests/assets/extension-with-logging/content.js @@ -0,0 +1 @@ +console.log("Test console log from a third-party execution context"); diff --git a/tests/assets/extension-with-logging/manifest.json b/tests/assets/extension-with-logging/manifest.json new file mode 100644 index 0000000000..429dc77980 --- /dev/null +++ b/tests/assets/extension-with-logging/manifest.json @@ -0,0 +1,17 @@ +{ + "manifest_version": 3, + "name": "Console Log Extension", + "version": "1.0", + "background": { + "service_worker": "background.js" + }, + "permissions": [ + "tabs" + ], + "content_scripts": [ + { + "matches": [""], + "js": ["content.js"] + } + ] + } \ No newline at end of file