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

Issue 2141383002: [Fetch API] Remove HandleScope to protect local handles (Closed)

Created:
4 years, 5 months ago by yhirano
Modified:
4 years, 5 months ago
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Fetch API] Remove HandleScope to protect local handles BodyStreamBuffer, Request and Response constructors create their JS wrappers to keep the weak reference to ReadableStream implemented with V8 extras. Currently these constructors have ScriptState::Scope and that means that the created JS wrappers would be protected only in the scope (via v8::HandleScope). This CL removes some ScriptState::Scopes so that local handles will be protected by wider v8::HandleScopes. BUG=617864 Committed: https://crrev.com/6e5425bcac204ed0892ce8368cd8746526b66a2d Cr-Commit-Position: refs/heads/master@{#405451}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : fix #

Patch Set 5 : fix #

Total comments: 2

Patch Set 6 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -120 lines) Patch
M third_party/WebKit/Source/modules/cachestorage/Cache.cpp View 1 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp View 1 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp View 1 2 3 27 chunks +46 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchManager.cpp View 1 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestTest.cpp View 1 2 3 4 4 chunks +14 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/ResponseTest.cpp View 1 2 7 chunks +44 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
yhirano
4 years, 5 months ago (2016-07-14 02:17:07 UTC) #9
haraken
https://codereview.chromium.org/2141383002/diff/100001/third_party/WebKit/Source/modules/fetch/RequestTest.cpp File third_party/WebKit/Source/modules/fetch/RequestTest.cpp (right): https://codereview.chromium.org/2141383002/diff/100001/third_party/WebKit/Source/modules/fetch/RequestTest.cpp#newcode25 third_party/WebKit/Source/modules/fetch/RequestTest.cpp:25: : m_page(DummyPageHolder::create(IntSize(1, 1))) { } Nit: It would be ...
4 years, 5 months ago (2016-07-14 02:26:08 UTC) #10
yhirano
https://codereview.chromium.org/2141383002/diff/100001/third_party/WebKit/Source/modules/fetch/RequestTest.cpp File third_party/WebKit/Source/modules/fetch/RequestTest.cpp (right): https://codereview.chromium.org/2141383002/diff/100001/third_party/WebKit/Source/modules/fetch/RequestTest.cpp#newcode25 third_party/WebKit/Source/modules/fetch/RequestTest.cpp:25: : m_page(DummyPageHolder::create(IntSize(1, 1))) { } On 2016/07/14 02:26:08, haraken ...
4 years, 5 months ago (2016-07-14 04:45:33 UTC) #11
haraken
https://codereview.chromium.org/2141383002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp (right): https://codereview.chromium.org/2141383002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode85 third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp:85: ScriptState::Scope scope(getScriptState()); Ditto. https://codereview.chromium.org/2141383002/diff/120001/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp File third_party/WebKit/Source/modules/fetch/ResponseTest.cpp (right): https://codereview.chromium.org/2141383002/diff/120001/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp#newcode49 third_party/WebKit/Source/modules/fetch/ResponseTest.cpp:49: ...
4 years, 5 months ago (2016-07-14 04:46:55 UTC) #12
yhirano
https://codereview.chromium.org/2141383002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp (right): https://codereview.chromium.org/2141383002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode85 third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp:85: ScriptState::Scope scope(getScriptState()); On 2016/07/14 04:46:55, haraken wrote: > > ...
4 years, 5 months ago (2016-07-14 05:02:51 UTC) #13
haraken
LGTM
4 years, 5 months ago (2016-07-14 05:03:16 UTC) #14
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/2141383002/diff/160001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp File third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp (right): https://codereview.chromium.org/2141383002/diff/160001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp#newcode11 third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp:11: #include "modules/fetch/BodyStreamBuffer.h" no longer needed?
4 years, 5 months ago (2016-07-14 06:25:28 UTC) #15
yhirano
https://codereview.chromium.org/2141383002/diff/160001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp File third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp (right): https://codereview.chromium.org/2141383002/diff/160001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp#newcode11 third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp:11: #include "modules/fetch/BodyStreamBuffer.h" On 2016/07/14 06:25:28, tyoshino wrote: > no ...
4 years, 5 months ago (2016-07-14 06:30:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2141383002/180001
4 years, 5 months ago (2016-07-14 06:30:23 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 5 months ago (2016-07-14 09:18:39 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 09:20:32 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6e5425bcac204ed0892ce8368cd8746526b66a2d
Cr-Commit-Position: refs/heads/master@{#405451}

Powered by Google App Engine
This is Rietveld 408576698