Skip to content

protocol: api to register schemes that can handle service worker - #3733

Merged
zcbenz merged 1 commit into
electron:masterfrom
deepak1556:service_worker_scheme_patch
Dec 10, 2015
Merged

zcbenz merged 1 commit into
electron:masterfrom
deepak1556:service_worker_scheme_patch

Conversation

@deepak1556

Copy link
Copy Markdown
Member

#2831 is now completely addressed. Have enabled service worker for file scheme by default. For privileged custom schemes users can use the api.

@deepak1556
deepak1556 force-pushed the service_worker_scheme_patch branch from 42ebe99 to d49b004 Compare December 8, 2015 20:43
@deepak1556
deepak1556 force-pushed the service_worker_scheme_patch branch from d49b004 to 855d491 Compare December 8, 2015 21:42

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems redundant since we are already adding file protocol in AddServiceWorkerSchemes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its required to bypass the security restrictions of blink layer, AddServiceWorkerSchemes is only used on the browser side by ServiceWorker request handler.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then shouldn't other schemes also be added here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have webframe::registerURLSchemeAsPrivileged to do that. So users who need custom schemes to handle service workers have to use both these api to allow on both render and browser side.

@zcbenz

zcbenz commented Dec 10, 2015

Copy link
Copy Markdown
Contributor

👍

zcbenz added a commit that referenced this pull request Dec 10, 2015
protocol: api to register schemes that can handle service worker
@zcbenz
zcbenz merged commit 991c8b1 into electron:master Dec 10, 2015
@concreted concreted mentioned this pull request Apr 29, 2017
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants