Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Issue 984853003: Service Worker: Clients.openWindow() should allow opening x-origin URLs (Closed)

Created:
5 years, 9 months ago by jungkees
Modified:
5 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Service Worker: Clients.openWindow() should allow opening x-origin URLs Clients.openWindow(url) with a cross-origin url currently rejects with a SecurityError exception. As per spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#clients-openwindow it should open a window and resolve with null. Checked the expected behavior with @jakearchibald. Corresponding blink changes: https://codereview.chromium.org/985633003/ BUG=464680

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -27 lines) Patch
M content/browser/service_worker/service_worker_version.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 5 chunks +7 lines, -25 lines 2 comments Download
M content/common/service_worker/service_worker_messages.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
jsbell
https://codereview.chromium.org/984853003/diff/1/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/984853003/diff/1/content/browser/service_worker/service_worker_version.cc#newcode1155 content/browser/service_worker/service_worker_version.cc:1155: url))); I agree this matches the spec, but it's ...
5 years, 9 months ago (2015-03-06 16:59:36 UTC) #2
mlamouri (slow - plz ping)
What would happen if you open "chrome://settings"?
5 years, 9 months ago (2015-03-06 17:07:20 UTC) #3
jungkees
On 2015/03/06 17:07:20, Mounir Lamouri wrote: > What would happen if you open "chrome://settings"? Yes, ...
5 years, 9 months ago (2015-03-09 05:52:35 UTC) #4
jungkees
https://codereview.chromium.org/984853003/diff/1/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/984853003/diff/1/content/browser/service_worker/service_worker_version.cc#newcode1155 content/browser/service_worker/service_worker_version.cc:1155: url))); On 2015/03/06 16:59:36, jsbell wrote: > I agree ...
5 years, 9 months ago (2015-03-09 05:53:01 UTC) #5
jungkees
5 years, 9 months ago (2015-03-09 07:26:58 UTC) #6

Powered by Google App Engine
This is Rietveld 408576698