+harkness for background fetch +yhirano for Request object usage +haraken, especially for BackgroundFetchManagerTest::getDictionaryForMethod() and BUILD.gn ...
3 years, 9 months ago
(2017-03-21 15:54:04 UTC)
#4
+harkness for background fetch
+yhirano for Request object usage
+haraken, especially for BackgroundFetchManagerTest::getDictionaryForMethod()
and BUILD.gn addition.
Peter Beverloo
The CQ bit was checked by peter@chromium.org to run a CQ dry run
3 years, 9 months ago
(2017-03-21 16:12:09 UTC)
#5
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/371303) win_chromium_rel_ng on ...
3 years, 9 months ago
(2017-03-21 16:48:15 UTC)
#8
3 years, 9 months ago
(2017-03-22 17:47:31 UTC)
#13
background fetch lgtm
https://codereview.chromium.org/2762243002/diff/60001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp
(right):
https://codereview.chromium.org/2762243002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:151:
} else if (requests.isRequest() || requests.isUSVString()) {
optional: personally, this would read better for me as
} else if (requests.isRequest()) {
...
} else if (requests.isUSVString()) {
...
} else
I think it would actually be shorter, and it would avoid the extra if statement
on 155. Up to you though.
3 years, 9 months ago
(2017-03-23 19:57:43 UTC)
#14
Thank you! PTAL
https://codereview.chromium.org/2762243002/diff/60001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp
(right):
https://codereview.chromium.org/2762243002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:151:
} else if (requests.isRequest() || requests.isUSVString()) {
On 2017/03/22 17:47:30, harkness wrote:
> optional: personally, this would read better for me as
>
> } else if (requests.isRequest()) {
> ...
> } else if (requests.isUSVString()) {
> ...
> } else
>
> I think it would actually be shorter, and it would avoid the extra if
statement
> on 155. Up to you though.
Done.
Peter Beverloo
The CQ bit was checked by peter@chromium.org to run a CQ dry run
3 years, 9 months ago
(2017-03-23 19:57:48 UTC)
#15
3 years, 9 months ago
(2017-03-23 22:05:55 UTC)
#18
Dry run: This issue passed the CQ dry run.
haraken
LGTM https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp File third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp (right): https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp#newcode142 third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:142: return Vector<WebServiceWorkerRequest>(); Don't we need to throw a ...
3 years, 9 months ago
(2017-03-24 01:29:38 UTC)
#19
https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp File third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp (right): https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp#newcode154 third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:154: requests.getAsRequest()->populateWebServiceWorkerRequest(webRequests[0]); populateWebServiceWorkerRequest() doesn't support the body of the request. ...
3 years, 9 months ago
(2017-03-24 02:01:51 UTC)
#21
Thank you for the comments! https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp File third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp (right): https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp#newcode142 third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:142: return Vector<WebServiceWorkerRequest>(); On 2017/03/24 ...
3 years, 9 months ago
(2017-03-24 14:41:20 UTC)
#22
Thank you for the comments!
https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp
(right):
https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Sour...
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:142:
return Vector<WebServiceWorkerRequest>();
On 2017/03/24 01:29:38, haraken wrote:
>
> Don't we need to throw a type error?
No, because an exception already was thrown (through the `exceptionState`) when
creating the Request. That'll contain much more detailed information than
anything a TypeError would have.
https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Sour...
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:154:
requests.getAsRequest()->populateWebServiceWorkerRequest(webRequests[0]);
On 2017/03/24 02:01:51, horo wrote:
> populateWebServiceWorkerRequest() doesn't support the body of the request.
> This method is used for CacheStorage API which doesn't support the request
body.
>
> Don't we need to support the request body in Background Fetch?
Right now we're focusing on `URL` to get end-to-end working, after which we'll
ramp up on the other additions necessary to fully support the Request options.
The reason for this is that our fetches will be routed through the downloads
system, which is rather different from making an immediate request in the
browser process. It's not yet clear which of the Request options are completely
supported, because much of the plumbing seems to be unused. Some options will
also have UI/UX impact that we'll have to assess.
In the ramp-up we'll fix "bugs" like this and ensure proper test coverage for
them.
https://codereview.chromium.org/2762243002/diff/80001/third_party/WebKit/Sour...
third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.cpp:159:
return Vector<WebServiceWorkerRequest>();
On 2017/03/24 01:29:38, haraken wrote:
>
> Ditto.
Acknowledged.
Peter Beverloo
The CQ bit was checked by peter@chromium.org
3 years, 9 months ago
(2017-03-24 17:06:03 UTC)
#23
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1490375163279260, "parent_rev": "73041822bfec1b9d8f58a4a4605dcfe9d96a1d6d", "commit_rev": "9b34b21e479145817c93e1e4870ed2e87376eac0"}
3 years, 9 months ago
(2017-03-24 17:12:21 UTC)
#26
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1490375163279260,
"parent_rev": "73041822bfec1b9d8f58a4a4605dcfe9d96a1d6d", "commit_rev":
"9b34b21e479145817c93e1e4870ed2e87376eac0"}
commit-bot: I haz the power
Description was changed from ========== Convert Background Fetch' input to a WebServiceWorkerRequest vector Developers can ...
3 years, 9 months ago
(2017-03-24 17:13:08 UTC)
#27
Message was sent while issue was closed.
Description was changed from
==========
Convert Background Fetch' input to a WebServiceWorkerRequest vector
Developers can pass in either an individual USVString or Request object,
or a sequence of either. Convert the input provided by the developer to
a sequence of WebServiceWorkerRequest objects, which can (soon) be send
over Mojo to the browser process.
BUG=692534, 692535
==========
to
==========
Convert Background Fetch' input to a WebServiceWorkerRequest vector
Developers can pass in either an individual USVString or Request object,
or a sequence of either. Convert the input provided by the developer to
a sequence of WebServiceWorkerRequest objects, which can (soon) be send
over Mojo to the browser process.
BUG=692534, 692535
Review-Url: https://codereview.chromium.org/2762243002
Cr-Commit-Position: refs/heads/master@{#459465}
Committed:
https://chromium.googlesource.com/chromium/src/+/9b34b21e479145817c93e1e4870e...
==========
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/9b34b21e479145817c93e1e4870ed2e87376eac0
3 years, 9 months ago
(2017-03-24 17:13:09 UTC)
#28
Issue 2762243002: Convert Background Fetch' input to a WebServiceWorkerRequest vector
(Closed)
Created 3 years, 9 months ago by Peter Beverloo
Modified 3 years, 9 months ago
Reviewers: harkness, yhirano, haraken, horo
Base URL:
Comments: 8