Changeset 283342 in webkit
- Timestamp:
- Sep 30, 2021, 3:42:17 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/privateClickMeasurement/anchor-tag-attributes-reflect-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/privateClickMeasurement/anchor-tag-attributes-reflect.html (modified) (1 diff)
-
LayoutTests/http/tests/privateClickMeasurement/anchor-tag-attributes-validation.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLAnchorElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r283321 r283342 1 2021-09-30 John Wilander <wilander@apple.com> 2 3 PCM: Change WebIDL attributes from all lowercase to camelcase to match spec and align with Attribution Reporting API 4 https://bugs.webkit.org/show_bug.cgi?id=230914 5 <rdar://problem/83639923> 6 7 Reviewed by Brent Fulgham. 8 9 This patch changes Private Click Measurement's WebIDL attributes from 10 all lowercase to camelcase to match the spec and align with the 11 Attribution Reporting API proposal. 12 13 References 14 - Private Click Measurement proposal: https://privacycg.github.io/private-click-measurement/#linkformat 15 - Attribution Reporting API proposal: https://wicg.github.io/conversion-measurement-api/#monkeypatch-anchor 16 17 * http/tests/privateClickMeasurement/anchor-tag-attributes-reflect-expected.txt: 18 * http/tests/privateClickMeasurement/anchor-tag-attributes-reflect.html: 19 * http/tests/privateClickMeasurement/anchor-tag-attributes-validation.html: 20 1 21 2021-09-30 Ziran Sun <zsun@igalia.com> 2 22 -
trunk/LayoutTests/http/tests/privateClickMeasurement/anchor-tag-attributes-reflect-expected.txt
r275046 r283342 1 Test for the newprivate click measurement attributes on anchor tags.1 Test for private click measurement attributes on anchor tags. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 PASS anchorTag.attribution sourceid is 407 PASS anchorTag.attribution destination is "https://destination.example"6 PASS anchorTag.attributionSourceId is 40 7 PASS anchorTag.attributionDestination is "https://destination.example" 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/http/tests/privateClickMeasurement/anchor-tag-attributes-reflect.html
r275046 r283342 8 8 <a id="testTag" href="http://localhost:8000" attributionsourceid=40 attributiondestination="https://destination.example"></a> 9 9 <script> 10 description("Test for the newprivate click measurement attributes on anchor tags.");10 description("Test for private click measurement attributes on anchor tags."); 11 11 12 12 const anchorTag = document.getElementById("testTag"); 13 shouldBeEqualToNumber("anchorTag.attribution sourceid", 40);14 shouldBeEqualToString("anchorTag.attribution destination", "https://destination.example");13 shouldBeEqualToNumber("anchorTag.attributionSourceId", 40); 14 shouldBeEqualToString("anchorTag.attributionDestination", "https://destination.example"); 15 15 </script> 16 16 </body> -
trunk/LayoutTests/http/tests/privateClickMeasurement/anchor-tag-attributes-validation.html
r275046 r283342 26 26 anchorElement.classList.add("wide-link"); 27 27 if (sourceID !== null) 28 anchorElement.attribution sourceid = sourceID;28 anchorElement.attributionSourceId = sourceID; 29 29 if (destination !== null) 30 anchorElement.attribution destination = destination;30 anchorElement.attributionDestination = destination; 31 31 anchorElement.href = "#"; 32 32 anchorElement.innerText = "Link" + currentTest; -
trunk/Source/WebCore/ChangeLog
r283340 r283342 1 2021-09-30 John Wilander <wilander@apple.com> 2 3 PCM: Change WebIDL attributes from all lowercase to camelcase to match spec and align with Attribution Reporting API 4 https://bugs.webkit.org/show_bug.cgi?id=230914 5 <rdar://problem/83639923> 6 7 Reviewed by Brent Fulgham. 8 9 This patch changes Private Click Measurement's WebIDL attributes from 10 all lowercase to camelcase to match the spec and align with the 11 Attribution Reporting API proposal. 12 13 References 14 - Private Click Measurement proposal: https://privacycg.github.io/private-click-measurement/#linkformat 15 - Attribution Reporting API proposal: https://wicg.github.io/conversion-measurement-api/#monkeypatch-anchor 16 17 Existing tests updated. 18 19 * html/HTMLAnchorElement.idl: 20 1 21 2021-09-30 Rob Buis <rbuis@igalia.com> 2 22 -
trunk/Source/WebCore/html/HTMLAnchorElement.idl
r275046 r283342 22 22 Exposed=Window 23 23 ] interface HTMLAnchorElement : HTMLElement { 24 [CEReactions=NotNeeded, EnabledBySetting=PrivateClickMeasurement, Reflect] attribute unsigned long attribution sourceid;25 [CEReactions=NotNeeded, EnabledBySetting=PrivateClickMeasurement, Reflect] attribute DOMString attribution destination;26 [CEReactions=NotNeeded, EnabledBySetting=PrivateClickMeasurementFraudPrevention, Reflect] attribute DOMString attribution sourcenonce;24 [CEReactions=NotNeeded, EnabledBySetting=PrivateClickMeasurement, Reflect] attribute unsigned long attributionSourceId; 25 [CEReactions=NotNeeded, EnabledBySetting=PrivateClickMeasurement, Reflect] attribute DOMString attributionDestination; 26 [CEReactions=NotNeeded, EnabledBySetting=PrivateClickMeasurementFraudPrevention, Reflect] attribute DOMString attributionSourceNonce; 27 27 [CEReactions=NotNeeded, Reflect] attribute DOMString charset; 28 28 [CEReactions=NotNeeded, Reflect] attribute DOMString coords;
Note:
See TracChangeset
for help on using the changeset viewer.