Allow apps from file:// location to register service workers

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Allow apps from file:// location to register service workers

Postby lkjh87941 » Mon Nov 07, 2016 6:28 pm

Our app is implemented as local html+javascripts running in a custom-wrapped CEF browser. We have plans to enable push notification using GCM, but found out that file: protocol is not allowed to perform Service Worker registration.

I have tried to modify CEF source to enable it, but simply adding file protocol to serviceWorkerSchemes does not seem to do the trick. When the registration request reach the content layer, the ServiceWorkerProviderHost object created has an empty document_url. All my attempts to fill this field result in bad IPC Message error. Therefore I feel it would be better to find some help from people more knowledgeable on this.
lkjh87941
Newbie
 
Posts: 1
Joined: Mon Nov 07, 2016 6:05 pm

Re: Allow apps from file:// location to register service wor

Postby Czarek » Tue Nov 08, 2016 2:24 am

A solution to file:// protocol issues is most often to use a custom scheme handler.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 13 guests