|
|
Created:
4 years, 5 months ago by Yoav Weiss Modified:
4 years, 4 months ago Reviewers:
Mike West CC:
asvitkine+watch_chromium.org, blink-reviews, chromium-reviews Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd use counter for multiple origins in Timing-Allow-Origin
As part of a discussion about Timing-Allow-Origin and multiple origins in that syntax[1], the possibility of a change to the syntax was raised. In order for that to be considered, we need to check usage.
This CL does that by adding a counter when there's more than 1 origin in that header.
[1] https://github.com/w3c/resource-timing/issues/62
BUG=
Committed: https://crrev.com/b3fc51169fddaddeae171b2cc7f10170706da77c
Cr-Commit-Position: refs/heads/master@{#408877}
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 2
Patch Set 3 : Added counters #
Total comments: 1
Patch Set 4 : rebase #
Messages
Total messages: 31 (22 generated)
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/bui...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: 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_...)
Description was changed from ========== Add use counter for multiple origins in Timing-Allow-Origin BUG= ========== to ========== Add use counter for multiple origins in Timing-Allow-Origin As part of a discussion about Timing-Allow-Origin and multiple origins in that syntax[1], the possibility of a change to the syntax was raised. In order for that to be considered, we need to check usage. This CL does that by adding a counter when there's more than 1 origin in that header. [1] https://github.com/w3c/resource-timing/issues/62 BUG= ==========
yoav@yoav.ws changed reviewers: + mkwst@chromium.org
https://codereview.chromium.org/2178973002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/timing/PerformanceBase.cpp (right): https://codereview.chromium.org/2178973002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/timing/PerformanceBase.cpp:206: UseCounter::count(context, UseCounter::MultipleOriginsInTimingAllowOrigin); It's probably worth adding a counter for single origins as well so that we have a feel for how often this occurs in the context of the entirety of TAO usage. https://codereview.chromium.org/2178973002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/timing/PerformanceBase.cpp:240: bool allowTimingDetails = passesTimingAllowCheck(finalResponse, *securityOrigin, info.originalTimingAllowOrigin(), getExecutionContext()); Nit: This is |context|, right?
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
On 2016/07/27 08:46:10, Mike West wrote: > https://codereview.chromium.org/2178973002/diff/20001/third_party/WebKit/Sour... > File third_party/WebKit/Source/core/timing/PerformanceBase.cpp (right): > > https://codereview.chromium.org/2178973002/diff/20001/third_party/WebKit/Sour... > third_party/WebKit/Source/core/timing/PerformanceBase.cpp:206: > UseCounter::count(context, UseCounter::MultipleOriginsInTimingAllowOrigin); > It's probably worth adding a counter for single origins as well so that we have > a feel for how often this occurs in the context of the entirety of TAO usage. Added counters for single origin as well as "*" TAO value. > > https://codereview.chromium.org/2178973002/diff/20001/third_party/WebKit/Sour... > third_party/WebKit/Source/core/timing/PerformanceBase.cpp:240: bool > allowTimingDetails = passesTimingAllowCheck(finalResponse, *securityOrigin, > info.originalTimingAllowOrigin(), getExecutionContext()); > Nit: This is |context|, right? Yes it is. I'll change that and rebase when I'm not between flights... (can't afford a rebuild right now)
LGTM, assuming you rebase and re-run the histograms.xml generator. https://codereview.chromium.org/2178973002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/frame/UseCounter.h (right): https://codereview.chromium.org/2178973002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/frame/UseCounter.h:1261: Nit: No extra whitespace. Also, you'll need to rebase this.
rebase
The CQ bit was checked by yoav@yoav.ws to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/07/30 15:21:26, Yoav Weiss wrote: > rebase Thanks for reviewing! :)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by yoav@yoav.ws
The patchset sent to the CQ was uploaded after l-g-t-m from mkwst@chromium.org Link to the patchset: https://codereview.chromium.org/2178973002/#ps60001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Add use counter for multiple origins in Timing-Allow-Origin As part of a discussion about Timing-Allow-Origin and multiple origins in that syntax[1], the possibility of a change to the syntax was raised. In order for that to be considered, we need to check usage. This CL does that by adding a counter when there's more than 1 origin in that header. [1] https://github.com/w3c/resource-timing/issues/62 BUG= ========== to ========== Add use counter for multiple origins in Timing-Allow-Origin As part of a discussion about Timing-Allow-Origin and multiple origins in that syntax[1], the possibility of a change to the syntax was raised. In order for that to be considered, we need to check usage. This CL does that by adding a counter when there's more than 1 origin in that header. [1] https://github.com/w3c/resource-timing/issues/62 BUG= ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Add use counter for multiple origins in Timing-Allow-Origin As part of a discussion about Timing-Allow-Origin and multiple origins in that syntax[1], the possibility of a change to the syntax was raised. In order for that to be considered, we need to check usage. This CL does that by adding a counter when there's more than 1 origin in that header. [1] https://github.com/w3c/resource-timing/issues/62 BUG= ========== to ========== Add use counter for multiple origins in Timing-Allow-Origin As part of a discussion about Timing-Allow-Origin and multiple origins in that syntax[1], the possibility of a change to the syntax was raised. In order for that to be considered, we need to check usage. This CL does that by adding a counter when there's more than 1 origin in that header. [1] https://github.com/w3c/resource-timing/issues/62 BUG= Committed: https://crrev.com/b3fc51169fddaddeae171b2cc7f10170706da77c Cr-Commit-Position: refs/heads/master@{#408877} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/b3fc51169fddaddeae171b2cc7f10170706da77c Cr-Commit-Position: refs/heads/master@{#408877} |