Repository navigation
webframe: api to register scheme as privileged - #2852
Conversation
|
Although this fixes the security error for registering service workers, with current version chromium there are hard coded checks for scheme is http/https to handle service worker requests, hence they wont work. But this has been fixed in this CL which gives embedders's a chance to register schemes that can handle service workers, we need to wait for that. |
There was a problem hiding this comment.
We still need to keep it for backward compatibility.
9843dec to
325feca
Compare
|
Thanks! |
webframe: api to register scheme as privileged
|
Thank you. Do we know when the missing Chrome issue will be available to be included in Electron? |
|
@rogeru that particular CLs' parent issue is set for M46 release, not sure when. You could open an issue for tracking, will be implemented once the api becomes available. |
|
Thanks @deepak1556. I am using registerUrlSchemeAsPrivileged which gets me passed the previous error about file:// not being allowed. The next error is "SecurityError: Failed to register a ServiceWorker: No URL is associated with the caller's document." |
|
Yes thats because of the checks i was talking about which only does |
|
@deepak1556 is this fix already in the release? Can I already use it? |
|
@havenchyk nope need to wait for chromium upgrade, can be tracked here #3312 (comment) |
|
@deepak1556 how about now? I guess there was an upgrade to Chrome 47? Should we wait for #3733 ? |
|
@havenchyk yup need to wait on the PR. |
Fixes #2831