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

Issue 2795673002: Added UseCounter for clearing browsing context name on cross-origin name (Closed)

Created:
3 years, 8 months ago by andypaicu
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Added UseCounter for clearing browsing context name on cross-origin name Added a UseCounter that tracks when a browsing context-name that would have been cleared because of a main-level cross-origin navigation is accessed. Spec: https://html.spec.whatwg.org/multipage/browsers.html#resetBCName ITI: https://groups.google.com/a/chromium.org/d/msg/blink-dev/8uZDknA2Ua0/Sm33B4MPCwAJ I have tests ready for this functionality but since this is just a UseCounter the tests would not really work. BUG=706350 Review-Url: https://codereview.chromium.org/2795673002 Cr-Commit-Position: refs/heads/master@{#461997} Committed: https://chromium.googlesource.com/chromium/src/+/f936f423177349c1840be6e9b83114a844e74fa8

Patch Set 1 #

Patch Set 2 : Fixed tests #

Patch Set 3 : Rebase-update #

Total comments: 2

Patch Set 4 : CR changes #

Total comments: 6

Patch Set 5 : CR #

Patch Set 6 : RU #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -13 lines) Patch
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 3 chunks +31 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/page/FrameTree.h View 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/FrameTree.cpp View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 46 (32 generated)
andypaicu
3 years, 8 months ago (2017-04-03 15:08:08 UTC) #13
jochen (gone - plz use gerrit)
lgtm with nit https://codereview.chromium.org/2795673002/diff/40001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2795673002/diff/40001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode1037 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:1037: static inline bool shouldClearWindowName( nit. don't ...
3 years, 8 months ago (2017-04-03 15:24:26 UTC) #15
andypaicu
https://codereview.chromium.org/2795673002/diff/40001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2795673002/diff/40001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode1037 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:1037: static inline bool shouldClearWindowName( On 2017/04/03 at 15:24:26, jochen ...
3 years, 8 months ago (2017-04-04 07:23:40 UTC) #20
dcheng
https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode1070 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:1070: if (shouldClearWindowName(*m_frame, frameSecurityOrigin, *document)) { Can we just check ...
3 years, 8 months ago (2017-04-04 07:53:21 UTC) #24
dcheng
https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode1070 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:1070: if (shouldClearWindowName(*m_frame, frameSecurityOrigin, *document)) { On 2017/04/04 07:53:21, dcheng ...
3 years, 8 months ago (2017-04-04 07:57:59 UTC) #25
dcheng
https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode1070 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:1070: if (shouldClearWindowName(*m_frame, frameSecurityOrigin, *document)) { On 2017/04/04 07:57:59, dcheng ...
3 years, 8 months ago (2017-04-04 07:59:39 UTC) #26
Mike West
Pedantic grammar nits aside, LGTM once you deal with dcheng@'s feedback. :) https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp ...
3 years, 8 months ago (2017-04-04 12:12:01 UTC) #27
andypaicu
On 2017/04/04 at 07:59:39, dcheng wrote: > https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp > File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): > > https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode1070 ...
3 years, 8 months ago (2017-04-04 14:03:17 UTC) #28
andypaicu
On 2017/04/04 at 14:03:17, andypaicu wrote: > On 2017/04/04 at 07:59:39, dcheng wrote: > > ...
3 years, 8 months ago (2017-04-04 14:03:38 UTC) #29
andypaicu
On 2017/04/04 at 12:12:01, mkwst wrote: > Pedantic grammar nits aside, LGTM once you deal ...
3 years, 8 months ago (2017-04-04 14:04:03 UTC) #30
andypaicu
https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.h File third_party/WebKit/Source/core/loader/DocumentLoader.h (right): https://codereview.chromium.org/2795673002/diff/60001/third_party/WebKit/Source/core/loader/DocumentLoader.h#newcode100 third_party/WebKit/Source/core/loader/DocumentLoader.h:100: SecurityOrigin* frameSecurityOrigin); On 2017/04/04 at 07:53:21, dcheng wrote: > ...
3 years, 8 months ago (2017-04-04 14:15:28 UTC) #36
dcheng
LGTM One concern I have is that this use counter will probably under report: it ...
3 years, 8 months ago (2017-04-04 19:04:15 UTC) #40
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/2795673002/100001
3 years, 8 months ago (2017-04-05 07:11:23 UTC) #43
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 07:16:39 UTC) #46
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f936f423177349c1840be6e9b831...

Powered by Google App Engine
This is Rietveld 408576698