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

Issue 2025143003: [Fetch API] Request's JS wrapper should be kept alive in FetchEvent (Closed)

Created:
4 years, 6 months ago by yhirano
Modified:
4 years, 6 months ago
Reviewers:
falken, haraken, Yuki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, blink-reviews-bindings_chromium.org, horo+watch_chromium.org, blink-reviews, kinuko+serviceworker, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Fetch API] Request's JS wrapper should be kept alive in FetchEvent From the same reason as [1], we need to keep blink::Request's wrapper in FetchEvent and ForeignEvent's wrappers. This CL adds hidden values in order to teach v8 the dependency. 1: https://crrev.com/d4b43c621eb323605c258a1a7f238bf9d6fb7523 BUG=614272 Committed: https://crrev.com/a153f873d904d8cdd0dafb9507f7a5b560251426 Cr-Commit-Position: refs/heads/master@{#397625}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : add a test #

Patch Set 4 : #

Patch Set 5 : PS3 _plus_ SetWrapperReferenceTo - setHiddenValue #

Patch Set 6 : #

Total comments: 20

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -30 lines) Patch
A + third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html View 1 2 3 4 5 6 2 chunks +12 lines, -8 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc.js View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h View 1 2 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEvent.h View 4 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +27 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl View 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h View 4 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +28 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.idl View 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (8 generated)
yhirano
4 years, 6 months ago (2016-06-01 08:10:32 UTC) #4
haraken
https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp File third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp (right): https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp#newcode72 third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp:72: v8::Local<v8::Value> event = toV8(this, scriptState); Given that both objects ...
4 years, 6 months ago (2016-06-01 12:16:59 UTC) #5
yhirano
https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp File third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp (right): https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp#newcode82 third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp:82: V8HiddenValue::setHiddenValue(scriptState, event.As<v8::Object>(), V8HiddenValue::requestInFetchEvent(scriptState->isolate()), request); On 2016/06/01 12:16:59, haraken wrote: ...
4 years, 6 months ago (2016-06-01 12:22:51 UTC) #6
haraken
On 2016/06/01 12:22:51, yhirano wrote: > https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp > File third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp (right): > > https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp#newcode82 > ...
4 years, 6 months ago (2016-06-01 12:42:52 UTC) #7
yhirano
On 2016/06/01 12:42:52, haraken wrote: > On 2016/06/01 12:22:51, yhirano wrote: > > > https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp ...
4 years, 6 months ago (2016-06-02 04:29:46 UTC) #8
haraken
On 2016/06/02 04:29:46, yhirano wrote: > On 2016/06/01 12:42:52, haraken wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-02 04:48:45 UTC) #9
Yuki
https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp File third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp (right): https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp#newcode82 third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp:82: V8HiddenValue::setHiddenValue(scriptState, event.As<v8::Object>(), V8HiddenValue::requestInFetchEvent(scriptState->isolate()), request); On 2016/06/01 12:22:51, yhirano wrote: ...
4 years, 6 months ago (2016-06-02 04:51:12 UTC) #11
yhirano
On 2016/06/02 04:48:45, haraken wrote: > On 2016/06/02 04:29:46, yhirano wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-02 05:02:36 UTC) #12
haraken
On 2016/06/02 05:02:36, yhirano wrote: > On 2016/06/02 04:48:45, haraken wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 05:06:28 UTC) #13
yhirano
On 2016/06/02 05:06:28, haraken wrote: > On 2016/06/02 05:02:36, yhirano wrote: (snip) > > PS5 ...
4 years, 6 months ago (2016-06-02 05:13:38 UTC) #14
haraken
On 2016/06/02 05:13:38, yhirano wrote: > On 2016/06/02 05:06:28, haraken wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 05:22:05 UTC) #15
yhirano
On 2016/06/02 05:22:05, haraken wrote: > On 2016/06/02 05:13:38, yhirano wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 05:52:52 UTC) #16
haraken
On 2016/06/02 05:52:52, yhirano wrote: > On 2016/06/02 05:22:05, haraken wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 07:47:09 UTC) #17
yhirano
On 2016/06/02 07:47:09, haraken wrote: > On 2016/06/02 05:52:52, yhirano wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 08:09:05 UTC) #18
haraken
On 2016/06/02 08:09:05, yhirano wrote: > On 2016/06/02 07:47:09, haraken wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 08:09:44 UTC) #19
haraken
PS3 LGTM
4 years, 6 months ago (2016-06-02 08:10:27 UTC) #20
yhirano
falken@, can you take a look at PS6?
4 years, 6 months ago (2016-06-02 08:18:56 UTC) #21
falken
https://codereview.chromium.org/2025143003/diff/100001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html (right): https://codereview.chromium.org/2025143003/diff/100001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html:1: <!DOCTYPE html> can you put a comment about why ...
4 years, 6 months ago (2016-06-02 08:36:32 UTC) #22
yhirano
https://codereview.chromium.org/2025143003/diff/100001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html (right): https://codereview.chromium.org/2025143003/diff/100001/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/fetch-request-with-gc.html:1: <!DOCTYPE html> On 2016/06/02 08:36:31, falken wrote: > can ...
4 years, 6 months ago (2016-06-02 10:10:12 UTC) #23
falken
lgtm https://codereview.chromium.org/2025143003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp File third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp (right): https://codereview.chromium.org/2025143003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp#newcode86 third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp:86: // mechanism is introduced. nit: Maybe clearer as ...
4 years, 6 months ago (2016-06-02 10:24:49 UTC) #24
yhirano
https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp File third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp (right): https://codereview.chromium.org/2025143003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp#newcode80 third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp:80: // Sets an hidden value in order to teach ...
4 years, 6 months ago (2016-06-03 02:09:45 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2025143003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2025143003/180001
4 years, 6 months ago (2016-06-03 02:11:12 UTC) #28
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 6 months ago (2016-06-03 04:20:12 UTC) #30
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 04:21:30 UTC) #32
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a153f873d904d8cdd0dafb9507f7a5b560251426
Cr-Commit-Position: refs/heads/master@{#397625}

Powered by Google App Engine
This is Rietveld 408576698