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

Issue 2877893002: Make UseCounter take a LocaFrame instead of any Frame (Closed)

Created:
3 years, 7 months ago by Rick Byers
Modified:
3 years, 6 months ago
Reviewers:
haraken, Nate Chapin, dcheng
CC:
chromium-reviews, mlamouri+watch-blink_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, kinuko+watch, dtapuska, clamy
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make UseCounter take a LocaFrame instead of any Frame It doesn't make sense for a UseCounter to be triggered by a RemoteFrame. Update all the callers to provide a LocalFrame (or in a couple cases where we can't be sure to have one, skip reporting usage). In a future patch I'd like to start depending on the fact that we know the correct LocalFrame for a UseCounter invocation. BUG=716565 Review-Url: https://codereview.chromium.org/2877893002 Cr-Commit-Position: refs/heads/master@{#475268} Committed: https://chromium.googlesource.com/chromium/src/+/64819bf38f1754e6677f2be17335a2b8f8103060

Patch Set 1 #

Patch Set 2 : Fix V8Window #

Patch Set 3 : Rebase #

Total comments: 11

Patch Set 4 : dcheng CR feedback #

Patch Set 5 : Make LocalFrame requirement more explicit (to prevent regression) #

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : Fix style #

Patch Set 9 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -273 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/events/TouchEvent.cpp View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindow.cpp View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.h View 1 2 3 4 5 4 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Frame.cpp View 1 2 3 2 chunks +1 line, -213 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 2 chunks +208 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 13 chunks +25 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/loader/private/FrameClientHintsPreferencesContext.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/private/FrameClientHintsPreferencesContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/AutoscrollController.cpp View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/FrameTree.cpp View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 43 (26 generated)
Rick Byers
Hey Nate, PTAL. This is mostly OOPIF-related and updates some of (I believe) your loading ...
3 years, 7 months ago (2017-05-12 22:00:20 UTC) #14
dcheng
some drive-by thoughts https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/core/events/TouchEvent.cpp File third_party/WebKit/Source/core/events/TouchEvent.cpp (right): https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/core/events/TouchEvent.cpp#newcode263 third_party/WebKit/Source/core/events/TouchEvent.cpp:263: if (view() && view()->IsLocalDOMWindow() && view()->GetFrame()) ...
3 years, 7 months ago (2017-05-12 22:15:19 UTC) #15
haraken
LGTM https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode321 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:321: UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), This will work as expected because CurrentExecutionContext ...
3 years, 7 months ago (2017-05-15 03:40:45 UTC) #17
dcheng
https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode321 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:321: UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), On 2017/05/15 03:40:45, haraken wrote: > > This ...
3 years, 7 months ago (2017-05-15 04:04:02 UTC) #19
haraken
https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode321 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:321: UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), On 2017/05/15 04:04:02, dcheng (in AEST) wrote: > ...
3 years, 7 months ago (2017-05-15 04:45:45 UTC) #20
dcheng
https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp#newcode321 third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp:321: UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), On 2017/05/15 04:45:45, haraken wrote: > On 2017/05/15 ...
3 years, 7 months ago (2017-05-15 04:57:30 UTC) #21
haraken
On 2017/05/15 04:57:30, dcheng (in AEST) wrote: > https://codereview.chromium.org/2877893002/diff/40001/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp > File third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp > (right): > ...
3 years, 7 months ago (2017-05-15 05:00:30 UTC) #22
dcheng
On 2017/05/15 05:00:30, haraken wrote: > On 2017/05/15 04:57:30, dcheng (in AEST) wrote: > > ...
3 years, 7 months ago (2017-05-15 05:02:32 UTC) #23
haraken
On 2017/05/15 05:02:32, dcheng (in AEST) wrote: > On 2017/05/15 05:00:30, haraken wrote: > > ...
3 years, 7 months ago (2017-05-15 05:03:30 UTC) #24
andypaicu
On 2017/05/12 at 22:00:20, rbyers wrote: > Hey Nate, > PTAL. This is mostly OOPIF-related ...
3 years, 7 months ago (2017-05-15 07:57:07 UTC) #25
Rick Byers
Thanks for the feedback and sorry for taking so long to reply. dcheng@ can you ...
3 years, 7 months ago (2017-05-25 15:32:31 UTC) #27
dcheng
lgtm https://codereview.chromium.org/2877893002/diff/100001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/2877893002/diff/100001/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode1263 third_party/WebKit/Source/core/frame/UseCounter.cpp:1263: void UseCounter::Count(Feature feature, const LocalFrame* sourceFrame) { Nit: ...
3 years, 7 months ago (2017-05-27 08:16:21 UTC) #31
Rick Byers
https://codereview.chromium.org/2877893002/diff/100001/third_party/WebKit/Source/core/frame/UseCounter.cpp File third_party/WebKit/Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/2877893002/diff/100001/third_party/WebKit/Source/core/frame/UseCounter.cpp#newcode1263 third_party/WebKit/Source/core/frame/UseCounter.cpp:1263: void UseCounter::Count(Feature feature, const LocalFrame* sourceFrame) { On 2017/05/27 ...
3 years, 6 months ago (2017-05-28 18:19:16 UTC) #32
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/2877893002/140001
3 years, 6 months ago (2017-05-28 18:19:34 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/464642)
3 years, 6 months ago (2017-05-28 18:31:23 UTC) #37
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/2877893002/160001
3 years, 6 months ago (2017-05-28 23:04:47 UTC) #40
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 01:08:57 UTC) #43
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/64819bf38f1754e6677f2be17335...

Powered by Google App Engine
This is Rietveld 408576698