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

Issue 2850133002: Use trace wrapper in PopStateEvent (Closed)

Created:
3 years, 7 months ago by bashi
Modified:
3 years, 7 months ago
Reviewers:
haraken
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't store ScriptValue in PopStateEvent Use TraceWrapperV8Reference instead. This CL doesn't remove custom getter of PopStateEvent.state as more work will be needed to remove custom bindings. BUG=501866 Review-Url: https://codereview.chromium.org/2850133002 Cr-Commit-Position: refs/heads/master@{#468565} Committed: https://chromium.googlesource.com/chromium/src/+/77301cfe98de369b7d72659d4a95014f1d4dc4b6

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -12 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/PopStateEvent.h View 3 chunks +11 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/events/PopStateEvent.cpp View 3 chunks +31 lines, -7 lines 2 comments Download
M third_party/WebKit/Source/core/events/PopStateEvent.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
bashi
PTAL
3 years, 7 months ago (2017-05-02 01:39:23 UTC) #7
haraken
LGTM https://codereview.chromium.org/2850133002/diff/1/third_party/WebKit/Source/core/events/PopStateEvent.cpp File third_party/WebKit/Source/core/events/PopStateEvent.cpp (right): https://codereview.chromium.org/2850133002/diff/1/third_party/WebKit/Source/core/events/PopStateEvent.cpp#newcode65 third_party/WebKit/Source/core/events/PopStateEvent.cpp:65: return ScriptValue(script_state, serialized->Deserialize(isolate)); What happens if: 1) an ...
3 years, 7 months ago (2017-05-02 04:44:32 UTC) #8
bashi
Let me submit this CL for now. Probably we should come up with a pattern ...
3 years, 7 months ago (2017-05-02 05:08:52 UTC) #9
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/2850133002/1
3 years, 7 months ago (2017-05-02 05:10:09 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/77301cfe98de369b7d72659d4a95014f1d4dc4b6
3 years, 7 months ago (2017-05-02 05:15:16 UTC) #14
haraken
On 2017/05/02 05:08:52, bashi wrote: > Let me submit this CL for now. Probably we ...
3 years, 7 months ago (2017-05-02 05:16:08 UTC) #15
bashi
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2856683003/ by bashi@chromium.org. ...
3 years, 7 months ago (2017-05-02 05:22:38 UTC) #16
findit-for-me
Findit (https://goo.gl/kROfz5) confirmed this CL at revision 468565 as the culprit for failures in the ...
3 years, 7 months ago (2017-05-02 05:34:40 UTC) #17
Michael Lippautz
Where's the entry point for tracing the PopStateEvent, i.e., from where is it traced?
3 years, 7 months ago (2017-05-02 06:47:58 UTC) #18
bashi
On 2017/05/02 06:47:58, Michael Lippautz wrote: > Where's the entry point for tracing the PopStateEvent, ...
3 years, 7 months ago (2017-05-02 07:33:51 UTC) #19
haraken
On 2017/05/02 07:33:51, bashi (ooo til May 8) wrote: > On 2017/05/02 06:47:58, Michael Lippautz ...
3 years, 7 months ago (2017-05-02 08:04:50 UTC) #20
bashi
On 2017/05/02 08:04:50, haraken wrote: > On 2017/05/02 07:33:51, bashi (ooo til May 8) wrote: ...
3 years, 7 months ago (2017-05-02 08:07:43 UTC) #21
Yuki
On 2017/05/02 08:04:50, haraken wrote: > On 2017/05/02 07:33:51, bashi (ooo til May 8) wrote: ...
3 years, 7 months ago (2017-05-10 10:38:36 UTC) #22
haraken
On 2017/05/10 10:38:36, Yuki wrote: > On 2017/05/02 08:04:50, haraken wrote: > > On 2017/05/02 ...
3 years, 7 months ago (2017-05-10 10:42:18 UTC) #23
Yuki
On 2017/05/10 10:42:18, haraken wrote: > On 2017/05/10 10:38:36, Yuki wrote: > > On 2017/05/02 ...
3 years, 7 months ago (2017-05-10 10:50:16 UTC) #24
haraken
3 years, 7 months ago (2017-05-10 11:18:07 UTC) #25
Message was sent while issue was closed.
On 2017/05/10 10:50:16, Yuki wrote:
> On 2017/05/10 10:42:18, haraken wrote:
> > On 2017/05/10 10:38:36, Yuki wrote:
> > > On 2017/05/02 08:04:50, haraken wrote:
> > > > On 2017/05/02 07:33:51, bashi (ooo til May 8) wrote:
> > > > > On 2017/05/02 06:47:58, Michael Lippautz wrote:
> > > > > > Where's the entry point for tracing the PopStateEvent, i.e., from
> where
> > is
> > > > it
> > > > > > traced?
> > > > > 
> > > > > To be honest I'm not sure where is the entry point. haraken-san?
> > > > > 
> > > > > (I reverted this CL because this wasn't rebased correctly. Trying to
> > re-land
> > > > > https://codereview.chromium.org/2850383002/)
> > > > 
> > > > PopStateEvent is a ScriptWrappble, so it's naturally traced by V8, isn't
> it?
> > > 
> > > Is it really true?  V8 shouldn't trace something that is unreachable from
> the
> > > root set.  I'm curious what has a reference to an Event and make it alive.
> > 
> > The Event wrapper has a reference to the C++ Event object.
> > 
> > If the Event wrapper is reachable, the C++ Event object is traced.
Otherwise,
> > the C++ Event object is not traced.
> > 
> > Am I misunderstanding?
> 
> I'm wondering what makes the Event wrapper alive.

Ah, now I understand your question! You are right.

I thought about this a bit more and begin to think that this might not be a
trivial problem. Let me start a thread on platform-architecture-dev@.

Powered by Google App Engine
This is Rietveld 408576698