playwright/tests/assets/extension-with-logging/background.js
Yury Semikhatsky 8b3ba3f34e
cherry-pick(#32771): Revert chore: ignore third-party execution conte… (#32773)
…xts (#32437)

Partially revert #32437 and add a test that console.log() messages from
content scripts are properly reported

Fixes https://github.com/microsoft/playwright/issues/32762
2024-09-23 18:05:37 -07:00

5 lines
134 B
JavaScript

console.log("Service worker script loaded");
chrome.runtime.onInstalled.addListener(() => {
console.log("Extension installed");
});