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 Tue, Jul 9, 2024 at 10:19 PM Adam Rice <ri...@chromium.org> wrote:

> Interesting point. It affects the whole render process.
>
> On Tue, 9 Jul 2024 at 10:13, Nigel Tao <nigel...@chromium.org> wrote:
>
>> On Mon, Jul 8, 2024 at 5:05 PM Adam Rice <ri...@chromium.org> wrote:
>> > 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.
>>
>> Does RegisterURLSchemeAsSupportingFetchAPI affect just one particular
>> extension or the entire process? If the process, is it the browser
>> process, renderer process or both?
>>
> --
> 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_ixdyXfuLhVMjUVyCmj7u9RT9JnuQv%2BLrzuhS0%3Dr20_ccqEw%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAC_ixdyXfuLhVMjUVyCmj7u9RT9JnuQv%2BLrzuhS0%3Dr20_ccqEw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CA%2BOSsVauN_uJwa3Vaj5fN8LujUvFpXMHgF22fWtr-cEvoSYJeQ%40mail.gmail.com.

Reply via email to