Questions tagged [manifest-v3]

8 questions
1
vote
0 answers

Chrome extension manifest v3 Content Security Policy

I am trying to load (inject) in page a javascript code. The javascript file is local to the extension. the filepath is 'js/somefile.js'. const basePath = chrome.runtime.getURL(''); fetch(chrome.runtime.getURL(filePath), { mode: 'same-origin' })…
Michael
  • 1,229
  • 1
  • 14
  • 21
0
votes
0 answers

Is an async code within Manifest V3 service worker resolved/completed in the same execution context as where it's initiated?

I have a code like below in my MV3 extension: import _ from 'lodash'; const storageKey = 'state'; let state; (async () => { state = await chrome.storage.local.get(storageKey); listener(); })(); const update = async (data) => { await…
0
votes
0 answers

How to avoid multiple simultaneous service workers in MV3 Chrome extension?

I am in the process of converting a Chrome extension from manifest version 2 (MV2) to manifest version 3 (MV3). In the MV2 version, the background page script has a prominent role in the extension: At startup, the background script reads in a large…
byb
  • 215
  • 2
  • 9
0
votes
1 answer

Inject .html file from packed chrome extension directory into new window tab

I am building a Chrome extension (v3) and I am trying to load an index.html from the extension's directory, and replace the old html with my html in a newly created window. But instead of html, it gets rendered as text. This is what I got so far: I…
0
votes
1 answer

chrome extension manifest v3, accessing window variable

How can I access a page's window variable through Manifest v3. In V2, I could have a content script access the window variable of a page by injecting javascript into the main page. However, appendChild() for javascript code does not work on V3. I…
Michael
  • 1,229
  • 1
  • 14
  • 21
0
votes
0 answers

Chrome extension MV3 with large persistent RAM usage, is it possible?

I am working on a Chrome extension which is designed to inspect the content of any web page the user navigates to, and then alert the user to certain "features" of that content. (Perhaps it is easiest to think of a large number of strings that are…
byb
  • 215
  • 2
  • 9
0
votes
0 answers

Chrome extension is showing error when migrated to manifest v3

I have specified a host_permissions and it is showing error when i migrated from manifest v2 to manifest v3. Warning i got ⚠ Permission 'activeTab' is unknown or URL pattern is malformed. The thing i specified in the manifest…
0
votes
1 answer

Unable to send message response back to content script in Chrome Extension using Manifest V3

I'm successfully launching a webauthflow to an social OAuth provider from a service worker background script (as per manifest v3 requirements, background scripts are now full blown service workers) However I'm unable to send a message back to my…
Senkwe
  • 2,127
  • 3
  • 23
  • 31