Re: [blink-dev] Re: fetch API and filesystem: URLs (a Manifest v3 migration blocker)

2024-07-15 Thread Marijn Kruisselbrink
Another alternative to fetching (or XHR-ing) a filesystem: URL could be to pass the URL to webkitResolveLocalFileSystemURL (although I believe that method isn't currently available in service workers either), and then call file() on the resultint FileEntry to get a Blob object you can read... On

[blink-dev] Re: fetch API and filesystem: URLs (a Manifest v3 migration blocker)

2024-07-09 Thread Adam Rice
Interesting point. It affects the whole render process. On Tue, 9 Jul 2024 at 10:13, Nigel Tao wrote: > On Mon, Jul 8, 2024 at 5:05 PM Adam Rice wrote: > > It's possible to enable schemes for Fetch using code similar to >

[blink-dev] Re: fetch API and filesystem: URLs (a Manifest v3 migration blocker)

2024-07-08 Thread Nigel Tao
On Mon, Jul 8, 2024 at 5:05 PM Adam Rice wrote: > It's possible to enable schemes for Fetch using code similar to >

[blink-dev] Re: fetch API and filesystem: URLs (a Manifest v3 migration blocker)

2024-07-08 Thread Adam Rice
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=chromium%2Fchromium%2Fsrc, however it would require

[blink-dev] Re: fetch API and filesystem: URLs (a Manifest v3 migration blocker)

2024-07-07 Thread Nigel Tao
On Sat, Jul 6, 2024 at 3:18 AM woxxom 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()

[blink-dev] Re: fetch API and filesystem: URLs (a Manifest v3 migration blocker)

2024-07-05 Thread woxxom
You can still use XMLHttpRequest inside the offscreen document . On Friday, July 5, 2024 at 5:04:49 PM UTC+3 Nigel Tao wrote: > Sending again (this time hopefully to chromium-extensions@). > > On Fri, Jul 5, 2024 at 5:14 PM

[blink-dev] Re: fetch API and filesystem: URLs (a Manifest v3 migration blocker)

2024-07-05 Thread Nigel Tao
Sending again (this time hopefully to chromium-extensions@). On Fri, Jul 5, 2024 at 5:14 PM Nigel Tao wrote: > > Hi third_party/blink/renderer/core/fetch/OWNERS (nidhijaju, ricea), > CC'ing blink-dev and chromium-extensions. Feel free to CC other people > or lists if they're relevant. > > How