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

Issue 843583005: [ServiceWorker] Implement WebServiceWorkerContextClient::openWindow(). (Closed)

Created:
5 years, 11 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, Charlie Reis, darin-cc_chromium.org, Fady Samuel, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, jsbell, kinuko+serviceworker, mkwst+moarreviews-renderer_chromium.org, nasko, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@content_browser_client_openurl
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ServiceWorker] Implement WebServiceWorkerContextClient::openWindow(). It is sending the request from the render process to the browser process which then opens the URL using ContentBrowserClient::OpenURL(). This is going to be used by sw.client.openWindow(), see Blink CL: https://codereview.chromium.org/850413002 BUG=437151 Committed: https://crrev.com/eb40d5503d848125b533185e95f3fb659336509e Cr-Commit-Position: refs/heads/master@{#314697}

Patch Set 1 #

Total comments: 15

Patch Set 2 : review comments #

Patch Set 3 : merge with ContentBrowserClient::openWindow #

Total comments: 9

Patch Set 4 : jochen review comments #

Total comments: 4

Patch Set 5 : rebase and review comments #

Total comments: 4

Patch Set 6 : rebase #

Total comments: 5

Patch Set 7 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+380 lines, -3 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client_unittest.cc View 1 2 3 4 5 2 chunks +38 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 5 6 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 6 4 chunks +200 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 1 2 3 4 5 6 4 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 2 3 4 5 6 3 chunks +49 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (6 generated)
mlamouri (slow - plz ping)
5 years, 11 months ago (2015-01-15 22:06:03 UTC) #2
mlamouri (slow - plz ping)
michaeln@, could you review the changes in: - content/browser/service_worker/ nasko@, could you do a security ...
5 years, 11 months ago (2015-01-15 22:07:20 UTC) #4
mlamouri (slow - plz ping)
It seems that the WindowOpenedObserver doesn't work fine with "about:blank". I will investigate that tomorrow.
5 years, 11 months ago (2015-01-15 22:41:19 UTC) #5
nasko
Just a couple of nits. Is ServiceWorker supposed to be able to open windows? Sorry, ...
5 years, 11 months ago (2015-01-17 00:05:28 UTC) #6
michaeln
https://codereview.chromium.org/843583005/diff/1/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/843583005/diff/1/content/browser/service_worker/service_worker_provider_host.cc#newcode247 content/browser/service_worker/service_worker_provider_host.cc:247: int embedded_worker_id, why is this first param here? https://codereview.chromium.org/843583005/diff/1/content/browser/service_worker/service_worker_version.cc ...
5 years, 11 months ago (2015-01-17 00:25:32 UTC) #7
mlamouri (slow - plz ping)
Comments applied. PTAL https://codereview.chromium.org/843583005/diff/1/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/843583005/diff/1/content/browser/service_worker/service_worker_provider_host.cc#newcode247 content/browser/service_worker/service_worker_provider_host.cc:247: int embedded_worker_id, On 2015/01/17 at 00:25:32, ...
5 years, 11 months ago (2015-01-26 13:19:08 UTC) #8
mlamouri (slow - plz ping)
I've merged https://codereview.chromium.org/844313002/ into this CL per jochen@ request. Reviewers: +jochen@ for content/ and chrome/ ...
5 years, 10 months ago (2015-01-26 15:13:11 UTC) #10
mlamouri (slow - plz ping)
After discussion with jochen@, we decided to restrict this to same origin, keeping the option ...
5 years, 10 months ago (2015-01-26 15:17:24 UTC) #11
jochen (gone - plz use gerrit)
can you add a browser test (or layout test with the blink cl)? https://codereview.chromium.org/843583005/diff/40001/content/browser/service_worker/service_worker_version.cc File ...
5 years, 10 months ago (2015-01-26 15:43:53 UTC) #12
mlamouri (slow - plz ping)
Service Worker is using LayoutTests for anything that can be tested using test harness to ...
5 years, 10 months ago (2015-01-26 16:01:41 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/843583005/diff/60001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/843583005/diff/60001/content/browser/service_worker/service_worker_version.cc#newcode172 content/browser/service_worker/service_worker_version.cc:172: void DocumentAvailableInMainFrame() override { i guess you'll want the ...
5 years, 10 months ago (2015-01-27 09:54:45 UTC) #14
mlamouri (slow - plz ping)
Review comments applied. PTAL https://codereview.chromium.org/843583005/diff/60001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/843583005/diff/60001/content/browser/service_worker/service_worker_version.cc#newcode172 content/browser/service_worker/service_worker_version.cc:172: void DocumentAvailableInMainFrame() override { On ...
5 years, 10 months ago (2015-01-27 15:42:08 UTC) #15
jochen (gone - plz use gerrit)
lgtm
5 years, 10 months ago (2015-01-27 15:42:58 UTC) #16
michaeln
lgtm 2
5 years, 10 months ago (2015-01-27 23:49:09 UTC) #17
Mike West
LGTM 3. Would you mind adding links to the subsequent patches in the CL description?
5 years, 10 months ago (2015-01-28 13:34:59 UTC) #18
Michael van Ouwerkerk
https://codereview.chromium.org/843583005/diff/80001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/843583005/diff/80001/content/browser/service_worker/service_worker_version.cc#newcode220 content/browser/service_worker/service_worker_version.cc:220: const WindowOpenedCallback& callback) { Please document that this callback ...
5 years, 10 months ago (2015-01-30 16:21:02 UTC) #20
Bernhard Bauer
Drive-by review! https://codereview.chromium.org/843583005/diff/100001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/843583005/diff/100001/content/browser/service_worker/service_worker_version.cc#newcode157 content/browser/service_worker/service_worker_version.cc:157: using WindowOpenedCallback = base::Callback<void(int,int)>; Nit: space after ...
5 years, 10 months ago (2015-02-04 18:01:36 UTC) #22
mlamouri (slow - plz ping)
Drive-by review comments applied. Landing. https://codereview.chromium.org/843583005/diff/80001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/843583005/diff/80001/content/browser/service_worker/service_worker_version.cc#newcode220 content/browser/service_worker/service_worker_version.cc:220: const WindowOpenedCallback& callback) { ...
5 years, 10 months ago (2015-02-04 23:23:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/843583005/120001
5 years, 10 months ago (2015-02-04 23:24:46 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-05 00:57:37 UTC) #26
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 00:59:26 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/eb40d5503d848125b533185e95f3fb659336509e
Cr-Commit-Position: refs/heads/master@{#314697}

Powered by Google App Engine
This is Rietveld 408576698