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

Issue 2388693002: Make DOMWindowProperty a thin wrapper of ContextLifecycleObserver

Created:
4 years, 2 months ago by haraken
Modified:
4 years ago
Reviewers:
sof, dcheng
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make DOMWindowProperty a thin wrapper of ContextLifecycleObserver This CL makes DOMWindowProperty a thin wrapper of ContextLifecycleObserver in preparation for deprecating DOMWindowProperty. This won't have any change in behavior. BUG=610176

Patch Set 1 #

Patch Set 2 : temp #

Patch Set 3 : temp #

Patch Set 4 : temp #

Patch Set 5 : temp #

Patch Set 6 : temp #

Patch Set 7 : temp #

Patch Set 8 : temp #

Total comments: 3

Patch Set 9 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -53 lines) Patch
M third_party/WebKit/Source/core/frame/DOMWindowProperty.h View 1 2 3 4 5 6 1 chunk +4 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindowProperty.cpp View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.h View 1 2 3 4 5 3 chunks +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (33 generated)
haraken
Not for landing. This CL is trying to replace all DOMWindowProperties with ContextLifecycleObservers in one ...
4 years ago (2016-12-12 06:02:34 UTC) #30
dcheng
LGTM https://codereview.chromium.org/2388693002/diff/140001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (left): https://codereview.chromium.org/2388693002/diff/140001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#oldcode491 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:491: m_properties.remove(property); Oh wow... this hasn't been called in ...
4 years ago (2016-12-12 06:50:51 UTC) #31
haraken
On 2016/12/12 06:50:51, dcheng wrote: > LGTM > > https://codereview.chromium.org/2388693002/diff/140001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp > File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (left): > ...
4 years ago (2016-12-12 06:53:18 UTC) #32
haraken
https://codereview.chromium.org/2388693002/diff/140001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (left): https://codereview.chromium.org/2388693002/diff/140001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#oldcode491 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:491: m_properties.remove(property); On 2016/12/12 06:50:50, dcheng wrote: > Oh wow... ...
4 years ago (2016-12-12 06:54:28 UTC) #33
sof
4 years ago (2016-12-12 13:00:50 UTC) #34
https://codereview.chromium.org/2388693002/diff/140001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (left):

https://codereview.chromium.org/2388693002/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:491:
m_properties.remove(property);
On 2016/12/12 06:54:28, haraken wrote:
> On 2016/12/12 06:50:50, dcheng wrote:
> > Oh wow... this hasn't been called in some time.
> 
> It would be okay because m_properties is a hash set of weak members. We need
to
> call unregisterProperty only when we want to promptly remove the entry from
the
> hash set.

Yes, I wouldn't be too surprised if there are a couple of unused unregistration
methods like that still around in the codebase.

Powered by Google App Engine
This is Rietveld 408576698