Add URL origin checks for Service Worker (un)registration
Now the browser will register or unregister a Service Worker only if document url, scope, and script url have the same origin. This patch removes TODOs for adding SW to ChildProcessSecurityPolicy, since it turns out the only security check needed here is the URL origin one. SW is expected to be enabled always, not a permission granted per-process. BUG=311631 Review URL: https://codereview.chromium.org/334413004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278326 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment