It's possible to enable schemes for Fetch using code similar to https://source.chromium.org/chromium/chromium/src/+/main:extensions/renderer/dispatcher.cc?q=%22WebSecurityPolicy::RegisterURLSchemeAsSupportingFetchAPI(extension_scheme);%22&ss=chromium%2Fchromium%2Fsrc, however it would require extensive security review.
On Mon, 8 Jul 2024 at 12:55, Nigel Tao <nigel...@chromium.org> wrote: > On Sat, Jul 6, 2024 at 3:18 AM woxxom <wox...@gmail.com> wrote: > > You can still use XMLHttpRequest inside the offscreen document. > > Huh, > https://developer.chrome.com/docs/extensions/develop/migrate/to-service-workers#replace-xmlhttprequest > made it sound like XHR wouldn't work with MV3 at all: > "XMLHttpRequest() can't be called from a service worker, extension or > otherwise". Perhaps that documentation was written before the > chrome.offscreen API became available (in Chrome 109)?? > > I will give this a try, although IIUC chrome.offscreen isn't available > to MV2 (unlike fetch, which is available for both MV2 and MV3), so it > looks like I'm going to have to cook up one big "migrate to MV3" > commit instead of multiple, smaller commits. > -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAC_ixdz%2Bb4tMz2Feq5K67708GTtphOAkmw3W-FQG7E_fPWijjQ%40mail.gmail.com.