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

Issue 1688573002: ServiceWorkerMessageEvent shouldn't hold ScriptValue (Closed)

Created:
4 years, 10 months ago by bashi
Modified:
4 years, 10 months ago
Reviewers:
haraken, falken, nhiroki
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorkerMessageEvent shouldn't hold ScriptValue It causes memory leak as described in [1]. Use hidden value as workaround. [1] http://crbug.com/529941 Committed: https://crrev.com/261e718ee5bf304dbc160df0ae15c425d7fb4a0c Cr-Commit-Position: refs/heads/master@{#374610}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -7 lines) Patch
M third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp View 1 2 chunks +50 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerMessageEvent.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerMessageEvent.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
bashi
PTAL? context: https://codereview.chromium.org/1658073002/#msg24
4 years, 10 months ago (2016-02-10 03:30:58 UTC) #2
nhiroki
Thank you for quickly making a fix! lgtm from SW's POV. https://codereview.chromium.org/1688573002/diff/1/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerMessageEvent.idl (right): ...
4 years, 10 months ago (2016-02-10 03:44:18 UTC) #3
haraken
LGTM https://codereview.chromium.org/1688573002/diff/1/third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp File third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp (right): https://codereview.chromium.org/1688573002/diff/1/third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp#newcode73 third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp:73: event->setSerializedData(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIsolate(), mainWorldData)); Not directly related to your CL, ...
4 years, 10 months ago (2016-02-10 04:13:07 UTC) #4
bashi
https://codereview.chromium.org/1688573002/diff/1/third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp File third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp (right): https://codereview.chromium.org/1688573002/diff/1/third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp#newcode73 third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp:73: event->setSerializedData(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIsolate(), mainWorldData)); On 2016/02/10 04:13:07, haraken wrote: > > ...
4 years, 10 months ago (2016-02-10 04:43:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1688573002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1688573002/20001
4 years, 10 months ago (2016-02-10 04:43:57 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-10 05:54:57 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2016-02-10 05:56:18 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/261e718ee5bf304dbc160df0ae15c425d7fb4a0c
Cr-Commit-Position: refs/heads/master@{#374610}

Powered by Google App Engine
This is Rietveld 408576698