Relax same-origin policy for ServiceWorker openWindow() in Chromium.
commit1af793910c3a05bf5ab0d790e1bcf282d03592d9
authormlamouri <mlamouri@chromium.org>
Mon, 9 Mar 2015 16:20:46 +0000 (9 09:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 9 Mar 2015 16:21:24 +0000 (9 16:21 +0000)
tree24bd644884a9ee76f90cfe3df1734fdaafc43dfa
parenta5b2945517b18dd86a56fbd922fd8a9ce829f5fc
Relax same-origin policy for ServiceWorker openWindow() in Chromium.

Per blink-dev discussion:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/vCd9TysLAso/UcNQMme-9LsJ

This is relaxing the browser-side checks in order to no longer kill a
renderer process if it tries to open a cross-origin window from a service
worker. It will allow the Blink restriction to be relaxed:
https://codereview.chromium.org/985043002

The browser process now checks whether the renderer process is allowed
access to the given URL, blocking access to special URLs like chrome://.

BUG=457187

Review URL: https://codereview.chromium.org/980383004

Cr-Commit-Position: refs/heads/master@{#319648}
content/browser/service_worker/service_worker_version.cc
content/browser/service_worker/service_worker_version.h
content/common/service_worker/service_worker_messages.h
content/renderer/service_worker/service_worker_script_context.cc
content/renderer/service_worker/service_worker_script_context.h