WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
193685
Add Ad Click Attribution as an internal/experimental feature
https://bugs.webkit.org/show_bug.cgi?id=193685
Summary
Add Ad Click Attribution as an internal/experimental feature
John Wilander
Reported
2019-01-22 14:36:01 PST
We should add Ad Click Attribution as an experimental feature.
Attachments
Patch
(15.67 KB, patch)
2019-01-22 14:47 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews103 for mac-highsierra
(2.57 MB, application/zip)
2019-01-22 15:57 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews107 for mac-highsierra-wk2
(2.77 MB, application/zip)
2019-01-22 16:13 PST
,
EWS Watchlist
no flags
Details
Patch
(15.84 KB, patch)
2019-01-22 16:53 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Patch
(15.88 KB, patch)
2019-01-22 17:06 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-highsierra
(2.89 MB, application/zip)
2019-01-22 18:07 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews114 for mac-highsierra
(2.09 MB, application/zip)
2019-01-22 20:00 PST
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews202 for win-future
(12.86 MB, application/zip)
2019-01-22 20:19 PST
,
EWS Watchlist
no flags
Details
Patch
(14.73 KB, patch)
2019-01-23 10:55 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-highsierra
(2.55 MB, application/zip)
2019-01-23 11:59 PST
,
EWS Watchlist
no flags
Details
Patch
(15.54 KB, patch)
2019-01-23 12:22 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews200 for win-future
(12.82 MB, application/zip)
2019-01-23 15:23 PST
,
EWS Watchlist
no flags
Details
Patch
(15.94 KB, patch)
2019-01-23 16:52 PST
,
John Wilander
no flags
Details
Formatted Diff
Diff
Show Obsolete
(12)
View All
Add attachment
proposed patch, testcase, etc.
John Wilander
Comment 1
2019-01-22 14:36:24 PST
<
rdar://problem/47450399
>
John Wilander
Comment 2
2019-01-22 14:47:51 PST
Created
attachment 359779
[details]
Patch
John Wilander
Comment 3
2019-01-22 15:44:46 PST
js/dom/dom-static-property-for-in-iteration.html is failing (text diff) because it's iterating over all attributes and now there are two more. I'll update the -expected.txt file once the bots are done with the rest.
EWS Watchlist
Comment 4
2019-01-22 15:57:08 PST
Comment on
attachment 359779
[details]
Patch
Attachment 359779
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/10846051
New failing tests: js/dom/dom-static-property-for-in-iteration.html
EWS Watchlist
Comment 5
2019-01-22 15:57:10 PST
Created
attachment 359794
[details]
Archive of layout-test-results from ews103 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 6
2019-01-22 16:13:56 PST
Comment on
attachment 359779
[details]
Patch
Attachment 359779
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/10846185
New failing tests: js/dom/dom-static-property-for-in-iteration.html
EWS Watchlist
Comment 7
2019-01-22 16:13:58 PST
Created
attachment 359800
[details]
Archive of layout-test-results from ews107 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
John Wilander
Comment 8
2019-01-22 16:53:43 PST
Created
attachment 359809
[details]
Patch
John Wilander
Comment 9
2019-01-22 17:06:20 PST
Created
attachment 359815
[details]
Patch
John Wilander
Comment 10
2019-01-22 17:50:39 PST
The mac bot test failure may be because the test should be WK2 only.
EWS Watchlist
Comment 11
2019-01-22 18:07:09 PST
Comment on
attachment 359815
[details]
Patch
Attachment 359815
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/10848621
New failing tests: http/tests/adClickAttribution/anchor-tag-attributes-reflect.html
EWS Watchlist
Comment 12
2019-01-22 18:07:10 PST
Created
attachment 359828
[details]
Archive of layout-test-results from ews101 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-highsierra Platform: Mac OS X 10.13.6
Brent Fulgham
Comment 13
2019-01-22 19:41:00 PST
Comment on
attachment 359815
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=359815&action=review
> Tools/DumpRenderTree/TestOptions.cpp:113 > + adClickAttributionEnabled = parseBooleanTestHeaderValue(value);
I think you need this change in WebKitTestRunner, too.
EWS Watchlist
Comment 14
2019-01-22 20:00:14 PST
Comment on
attachment 359815
[details]
Patch
Attachment 359815
[details]
did not pass mac-debug-ews (mac): Output:
https://webkit-queues.webkit.org/results/10849712
New failing tests: http/tests/adClickAttribution/anchor-tag-attributes-reflect.html
EWS Watchlist
Comment 15
2019-01-22 20:00:15 PST
Created
attachment 359842
[details]
Archive of layout-test-results from ews114 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 16
2019-01-22 20:19:19 PST
Comment on
attachment 359815
[details]
Patch
Attachment 359815
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/10849995
New failing tests: http/tests/adClickAttribution/anchor-tag-attributes-reflect.html
EWS Watchlist
Comment 17
2019-01-22 20:19:30 PST
Created
attachment 359843
[details]
Archive of layout-test-results from ews202 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews202 Port: win-future Platform: CYGWIN_NT-6.1-2.10.0-0.325-5-3-x86_64-64bit
Daniel Bates
Comment 18
2019-01-22 20:36:40 PST
Comment on
attachment 359815
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=359815&action=review
> Source/WebCore/html/HTMLAnchorElement.cpp:379 > + return adcampaignidAttr->localName();
One word OR three words? “adClick” but here “adcampaignid”.
> Source/WebCore/html/HTMLAnchorElement.cpp:387 > + return addestinationAttr->localName();
One word or two words? “adClick” but here “adddestination”
Daniel Bates
Comment 19
2019-01-22 20:38:05 PST
Comment on
attachment 359815
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=359815&action=review
> LayoutTests/http/tests/adClickAttribution/anchor-tag-attributes-reflect.html:1 > +<!DOCTYPE html> <!-- webkit-test-runner [ internal:AdClickAttributionEnabled=true ] -->
Internal? Did you test this?
Daniel Bates
Comment 20
2019-01-22 20:48:38 PST
Comment on
attachment 359815
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=359815&action=review
>> Source/WebCore/html/HTMLAnchorElement.cpp:379 >> + return adcampaignidAttr->localName(); > > One word OR three words? “adClick” but here “adcampaignid”.
We don’t generate this function given this a reflected attribute? LocalName?
>> Source/WebCore/html/HTMLAnchorElement.cpp:387 >> + return addestinationAttr->localName(); > > One word or two words? “adClick” but here “adddestination”
We don’t generate this function given this is a reflected attribute? LocalName?
> Source/WebCore/html/HTMLAnchorElement.h:72 > + const AtomicString& adcampaignid() const;
Been away from bindings for a while... we don’t generate these for reflected IDL attributes?
John Wilander
Comment 21
2019-01-23 10:31:20 PST
(In reply to Daniel Bates from
comment #19
)
> Comment on
attachment 359815
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=359815&action=review
> > > LayoutTests/http/tests/adClickAttribution/anchor-tag-attributes-reflect.html:1 > > +<!DOCTYPE html> <!-- webkit-test-runner [ internal:AdClickAttributionEnabled=true ] --> > > Internal? Did you test this?
Yes.
John Wilander
Comment 22
2019-01-23 10:34:18 PST
(In reply to Daniel Bates from
comment #20
)
> Comment on
attachment 359815
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=359815&action=review
> > >> Source/WebCore/html/HTMLAnchorElement.cpp:379 > >> + return adcampaignidAttr->localName(); > > > > One word OR three words? “adClick” but here “adcampaignid”. > > We don’t generate this function given this a reflected attribute? LocalName?
Aha. I did not know reflected attributes where auto-generated. Thanks for pointing that out. I didn't come across them when browsing existing code. Did I just miss them or are they not in some derived code? The localName return is just a stub. Not needed since these functions are not needed.
> >> Source/WebCore/html/HTMLAnchorElement.cpp:387 > >> + return addestinationAttr->localName(); > > > > One word or two words? “adClick” but here “adddestination” > > We don’t generate this function given this is a reflected attribute? > LocalName?
Ditto.
> > Source/WebCore/html/HTMLAnchorElement.h:72 > > + const AtomicString& adcampaignid() const; > > Been away from bindings for a while... we don’t generate these for reflected > IDL attributes?
We most probably do. I'll remove my implementations of them. The plan was to place some input validation in the implementation but that'll have to be done elsewhere. Thanks for the comments, Dan!
John Wilander
Comment 23
2019-01-23 10:35:23 PST
(In reply to Daniel Bates from
comment #18
)
> Comment on
attachment 359815
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=359815&action=review
> > > Source/WebCore/html/HTMLAnchorElement.cpp:379 > > + return adcampaignidAttr->localName(); > > One word OR three words? “adClick” but here “adcampaignid”.
I looked ad the existing attributes and they are not camel-cased. That's why I left the developer facing parts that way.
> > Source/WebCore/html/HTMLAnchorElement.cpp:387 > > + return addestinationAttr->localName(); > > One word or two words? “adClick” but here “adddestination”
Ditto (but with just two 'd's in addestination).
John Wilander
Comment 24
2019-01-23 10:52:35 PST
(In reply to John Wilander from
comment #21
)
> (In reply to Daniel Bates from
comment #19
) > > Comment on
attachment 359815
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=359815&action=review
> > > > > LayoutTests/http/tests/adClickAttribution/anchor-tag-attributes-reflect.html:1 > > > +<!DOCTYPE html> <!-- webkit-test-runner [ internal:AdClickAttributionEnabled=true ] --> > > > > Internal? Did you test this? > > Yes.
I see what you're saying. It was wrong in TestOptions. But it works on my machine and WK2 bots. I'll fix TestOptions.
John Wilander
Comment 25
2019-01-23 10:55:28 PST
Created
attachment 359904
[details]
Patch
EWS Watchlist
Comment 26
2019-01-23 11:59:41 PST
Comment on
attachment 359904
[details]
Patch
Attachment 359904
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/10861036
New failing tests: http/tests/adClickAttribution/anchor-tag-attributes-reflect.html
EWS Watchlist
Comment 27
2019-01-23 11:59:43 PST
Created
attachment 359918
[details]
Archive of layout-test-results from ews101 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-highsierra Platform: Mac OS X 10.13.6
John Wilander
Comment 28
2019-01-23 12:22:18 PST
Created
attachment 359921
[details]
Patch
EWS Watchlist
Comment 29
2019-01-23 15:22:45 PST
Comment on
attachment 359921
[details]
Patch
Attachment 359921
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/10863349
New failing tests: http/tests/adClickAttribution/anchor-tag-attributes-reflect.html
EWS Watchlist
Comment 30
2019-01-23 15:23:00 PST
Created
attachment 359951
[details]
Archive of layout-test-results from ews200 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews200 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
John Wilander
Comment 31
2019-01-23 16:52:55 PST
Created
attachment 359974
[details]
Patch
Brent Fulgham
Comment 32
2019-01-24 10:49:35 PST
Comment on
attachment 359974
[details]
Patch r=me
John Wilander
Comment 33
2019-01-24 10:50:47 PST
Comment on
attachment 359974
[details]
Patch Thanks, Brent! Also, thanks Dan and Wenson.
Chris Dumez
Comment 34
2019-01-24 10:53:43 PST
Comment on
attachment 359974
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=359974&action=review
> Source/WebCore/ChangeLog:14 > + Addeed two new experimental attributes:
Typo: Addeed
> Source/WebCore/html/HTMLAnchorElement.idl:22 > + [CEReactions=NotNeeded, EnabledAtRuntime=AdClickAttribution, Reflect] attribute DOMString adcampaignid;
no camel case?
John Wilander
Comment 35
2019-01-24 11:03:15 PST
(In reply to Chris Dumez from
comment #34
)
> Comment on
attachment 359974
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=359974&action=review
> > > Source/WebCore/ChangeLog:14 > > + Addeed two new experimental attributes: > > Typo: Addeed > > > Source/WebCore/html/HTMLAnchorElement.idl:22 > > + [CEReactions=NotNeeded, EnabledAtRuntime=AdClickAttribution, Reflect] attribute DOMString adcampaignid; > > no camel case?
I would prefer camel case but looking at existing attributes, it seems they should be all lower case. Easy enough to change once/if this thing ends up in standards discussions.
WebKit Commit Bot
Comment 36
2019-01-24 11:17:15 PST
Comment on
attachment 359974
[details]
Patch Clearing flags on attachment: 359974 Committed
r240444
: <
https://trac.webkit.org/changeset/240444
>
WebKit Commit Bot
Comment 37
2019-01-24 11:17:17 PST
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