WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
100974
Measure the usage of the various CSP headers.
https://bugs.webkit.org/show_bug.cgi?id=100974
Summary
Measure the usage of the various CSP headers.
Mike West
Reported
2012-11-01 11:31:35 PDT
We're currently using measuring usage of the prefixed CSP header via FeatureObserver (which ends up in the 'WebCore.FeatureObserver' histogram). We've now added support for the unprefixed header, and it would be nice to measure that as well so that we can (at some point in the far future) drop support for the prefixed version. It would also be potentially helpful to measure the uptake of report-only headers vs. blocking headers, as that could help guide some of the discussion for 1.1. Rather than add three new items to the FeatureObserver enum, it might be more clear to move the measurements to a new histogram: "WebCore.ContentSecurityPolicy". WDYT, Adam?
Attachments
Patch
(3.60 KB, patch)
2012-11-01 12:44 PDT
,
Mike West
no flags
Details
Formatted Diff
Diff
Patch
(3.73 KB, patch)
2012-11-02 03:25 PDT
,
Mike West
no flags
Details
Formatted Diff
Diff
Patch
(3.80 KB, patch)
2012-11-02 04:52 PDT
,
Mike West
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2012-11-01 11:35:47 PDT
One of the nice things about FeatureObserver is that it is normalized across all features (and a benchmark "feature"). Using a separate histogram loses that benefit. It's unlikely that we'll be able to drop X-WebKit-CSP until CSP 1.1 is done, so this might be a bit premature.
Mike West
Comment 2
2012-11-01 11:43:20 PDT
(In reply to
comment #1
)
> One of the nice things about FeatureObserver is that it is normalized across all features (and a benchmark "feature"). Using a separate histogram loses that benefit.
That's both a benefit and a drawback. I have the feeling that I'm cluttering an already diverse data set by adding another few items to the enum. That said, I'm happy to add it there if it's the right place. That's why I'm asking. :)
> It's unlikely that we'll be able to drop X-WebKit-CSP until CSP 1.1 is done, so this might be a bit premature.
Quite true; dropping the prefixed header entirely is a long-term goal. Still, starting to measure relative uptake now gives us a baseline for later. It seems worthwhile.
Mike West
Comment 3
2012-11-01 11:44:15 PDT
(In reply to
comment #2
)
> That's both a benefit and a drawback. I have the feeling that I'm cluttering an already diverse data set by adding another few items to the enum.
Related, I assume reordering the enum to put related items next to each other would be a Bad Thing™?
Adam Barth
Comment 4
2012-11-01 11:45:17 PDT
Ok. I wouldn't worry too much about cluttering up FeatureObserver. That's what it is there for. If we run out of bits, we can add 32 more. :)
Adam Barth
Comment 5
2012-11-01 11:46:47 PDT
> Related, I assume reordering the enum to put related items next to each other would be a Bad Thing™?
We can do that, but it makes it harder to read the data on the server for a while. It's probably not worth the hassle at this point. We'll want to clean it out at some point, and re-ordering might make sense then.
Mike West
Comment 6
2012-11-01 12:44:44 PDT
Created
attachment 171912
[details]
Patch
Build Bot
Comment 7
2012-11-01 13:40:50 PDT
Comment on
attachment 171912
[details]
Patch
Attachment 171912
[details]
did not pass win-ews (win): Output:
http://queues.webkit.org/results/14688072
Peter Beverloo (cr-android ews)
Comment 8
2012-11-01 14:11:46 PDT
Comment on
attachment 171912
[details]
Patch
Attachment 171912
[details]
did not pass cr-android-ews (chromium-android): Output:
http://queues.webkit.org/results/14675080
Mike West
Comment 9
2012-11-02 03:25:59 PDT
Created
attachment 172023
[details]
Patch
Peter Beverloo (cr-android ews)
Comment 10
2012-11-02 03:46:02 PDT
Comment on
attachment 172023
[details]
Patch
Attachment 172023
[details]
did not pass cr-android-ews (chromium-android): Output:
http://queues.webkit.org/results/14687787
Mike West
Comment 11
2012-11-02 04:52:12 PDT
Created
attachment 172038
[details]
Patch
WebKit Review Bot
Comment 12
2012-11-02 11:55:09 PDT
Comment on
attachment 172038
[details]
Patch Clearing flags on attachment: 172038 Committed
r133325
: <
http://trac.webkit.org/changeset/133325
>
WebKit Review Bot
Comment 13
2012-11-02 11:55:14 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug