Bug 218967 - PCM: Change attribute and JSON key names according to the W3C conversation
Summary: PCM: Change attribute and JSON key names according to the W3C conversation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: John Wilander
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-11-15 18:03 PST by John Wilander
Modified: 2020-11-16 16:00 PST (History)
9 users (show)

See Also:


Attachments
Patch (36.09 KB, patch)
2020-11-15 18:08 PST, John Wilander
no flags Details | Formatted Diff | Diff
Patch (37.22 KB, patch)
2020-11-16 11:27 PST, John Wilander
no flags Details | Formatted Diff | Diff
Patch (40.49 KB, patch)
2020-11-16 12:33 PST, John Wilander
no flags Details | Formatted Diff | Diff
Patch for landing (40.48 KB, patch)
2020-11-16 15:07 PST, John Wilander
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Wilander 2020-11-15 18:03:08 PST
We’ve discussed extensively with Google and others on naming for the link attributes and JSON key names in these issues:
https://github.com/privacycg/private-click-measurement/issues/30
https://github.com/privacycg/private-click-measurement/issues/56

We should change PCM accordingly.
Comment 1 John Wilander 2020-11-15 18:03:30 PST
<rdar://problem/71422345>
Comment 2 John Wilander 2020-11-15 18:08:46 PST
Created attachment 414186 [details]
Patch
Comment 3 John Wilander 2020-11-16 11:27:42 PST
Created attachment 414260 [details]
Patch
Comment 4 John Wilander 2020-11-16 12:33:54 PST
Created attachment 414268 [details]
Patch
Comment 5 John Wilander 2020-11-16 13:40:31 PST
win build failure looks unrelated.
Comment 6 John Wilander 2020-11-16 14:22:45 PST
ios-wk2 test failure is unrelated.
Comment 7 Brent Fulgham 2020-11-16 14:57:35 PST
Comment on attachment 414268 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=414268&action=review

Looks good. Nice to have the spec coming together! r=me.

> Source/WebCore/ChangeLog:8
> +        Weâve discussed extensively with Google and others on naming for the link

Looks like you got a smart-quote in here.

> Source/WebCore/html/HTMLAnchorElement.cpp:426
> +        document().addConsoleMessage(MessageSource::Other, MessageLevel::Warning, "Both attributionsourceid and attributeon need to be set for Private Click Measurement to work."_s);

I know that this is correct, but at first I thought "attributeon" was misspelled.

> Source/WebCore/html/HTMLAttributeNames.in:70
> +attributeon

I wish this had been spec'd as "attribute-on"
Comment 8 John Wilander 2020-11-16 15:04:04 PST
(In reply to Brent Fulgham from comment #7)
> Comment on attachment 414268 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=414268&action=review
> 
> Looks good. Nice to have the spec coming together! r=me.
> 
> > Source/WebCore/ChangeLog:8
> > +        Weâve discussed extensively with Google and others on naming for the link
> 
> Looks like you got a smart-quote in here.

Good catch. Will fix.

> > Source/WebCore/html/HTMLAnchorElement.cpp:426
> > +        document().addConsoleMessage(MessageSource::Other, MessageLevel::Warning, "Both attributionsourceid and attributeon need to be set for Private Click Measurement to work."_s);
> 
> I know that this is correct, but at first I thought "attributeon" was
> misspelled.
> 
> > Source/WebCore/html/HTMLAttributeNames.in:70
> > +attributeon
> 
> I wish this had been spec'd as "attribute-on"

I agree but Google referred to this TAG document (see "HTML elements and attributes"): https://w3ctag.github.io/design-principles/#casing-rules

Thanks for the review!
Comment 9 John Wilander 2020-11-16 15:07:09 PST
Created attachment 414282 [details]
Patch for landing
Comment 10 EWS 2020-11-16 16:00:55 PST
Committed r269886: <https://trac.webkit.org/changeset/269886>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 414282 [details].