guest271314

Results 602 comments of guest271314

Observe the error in `ServiceWorker` context ``` Unchecked runtime.lastError: Cannot access contents of the page. Extension manifest must request permission to access the respective host. ``` Add to manifest.json ```...

I tested on Chromium 104.0.5077.0 (Developer Build) (64-bit). You can substitute `""` as wild card equivalent [execute_script_test.zip](https://github.com/GoogleChrome/chrome-extensions-samples/files/8750117/execute_script_test.zip).

Technically, `"optional_permissions"` https://developer.chrome.com/docs/extensions/reference/permissions/#step-3-request-optional-permissions could be used. What is the use case? What are you trying to ultimately achieve?

> I added host_permissions *://*/* ``` "host_permissions": ["*://*/"] ``` achieves the expected result.

Should work on 101. I've been using that pattern for some time. You can download Chromium dev channel from https://download-chromium.appspot.com/ to test.

> the "callback" log is never logged. How do you know the callback is not fired? Are you checking for the callback to be fired in `ServiceWorker` context? The callback...

Did you download and test with Chromium Dev channel? To verify the issue is with the Chrome/Chromium version you are running, and not something else?

> If there's any MV3 example already, please, point it to me. Thanks! See https://bugs.chromium.org/p/chromium/issues/detail?id=1189678#c40, https://github.com/guest271314/NativeTransferableStreams/tree/main/native_messaging_local_server.

> For example do they make it clear how, when and in what circumstances Chrome will kill your service worker? No. Workarounds https://bugs.chromium.org/p/chromium/issues/detail?id=1152255#c25, https://bugs.chromium.org/p/chromium/issues/detail?id=1152255#c32. Aside from `ServiceWorker` becoming inactive in...