Irakli Gozalishvili

Results 654 comments of Irakli Gozalishvili

I should note that RPC API only works with `XMLHttpRequest` and not with `fetch` as later does not seem to set `Origin` header while former does, which is required for...

Submitted following issues to an electron electron/electron#14720 electron/electron#14746 electron/electron#14747

After some more digging on pointers from electron/electron#7931 it appears to me that `Origin` is set to 'null' whenever it matches request URLs origin (which I find very counter intuitive...

I guess `queryPermissions` is actually not using anything but `getURL` so this looks good: https://github.com/beakerbrowser/beaker/blob/c3c75df24be851274a0bca3cfd2be63126bf3af8/app/background-process/ui/permissions.js#L54

As of `requestPermission` unfortunately my fear is confirmed: https://github.com/beakerbrowser/beaker/blob/c3c75df24be851274a0bca3cfd2be63126bf3af8/app/background-process/ui/permissions.js#L27-L29 https://github.com/beakerbrowser/beaker/blob/c3c75df24be851274a0bca3cfd2be63126bf3af8/app/background-process/ui/permissions.js#L100-L104 https://github.com/beakerbrowser/beaker/blob/c3c75df24be851274a0bca3cfd2be63126bf3af8/app/background-process/ui/permissions.js#L162-L164 API needs to figure out what window does sender corresponds to in order to I presume do user prompt....

> service workers may be running without a frame active (I believe) Yes. In fact fetch to a url handled by registered service worker should activate it unless it already...

After seating on this for a day I think there are two options: 1. Require a page to be open for requesting an archive acess. Unfortunately it would be somewhat...

One more thought - If app is talking to other app in iframe or a service worker which is asking for permission it might be reasonable to display permission prompt...

I propose to extend DatArchive API as follows: Add optional `owner` field to `opts` of the following methods: - `DatArchive.create` - `DatArchive.fork` - `DatArchive.selectArchive` That would allow one app to...

I have misunderstood `DatArhive` API. Namely I was under impression that `selectArchive` API was granting write access to a requestor, but turns out it does not. Instead user is prompted...