<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>218127</bug_id>
          
          <creation_ts>2020-10-23 09:17:44 -0700</creation_ts>
          <short_desc>AdClickAttribution logs not being shown in system log</short_desc>
          <delta_ts>2020-10-27 17:39:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>214176</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marçal">m.serrate</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>smoley</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wilander</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1701037</commentid>
    <comment_count>0</comment_count>
    <who name="Marçal">m.serrate</who>
    <bug_when>2020-10-23 09:17:44 -0700</bug_when>
    <thetext>Hi,

Safari Technology Preview: Release 115 (Safari 14.1, WebKit 15611.1.3.5)
Both Ad Click Attribution and Ad Click Attribution Debug Mode Experimental Features are enabled.

Different domains used for publisher and advertiser &amp; publisher with the following tag included:
&lt;a href=&quot;https://click.advertiser.example?pid=3&quot; adcampaignid=&quot;52&quot; addestination=&quot;https://advertiser.example&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://ad.example/creative_1.png&quot; alt=&quot;click now!&quot;&gt;&lt;/a&gt;

As explained here: https://webkit.org/blog/8943/privacy-preserving-ad-click-attribution-for-the-web/ I expect to see the logs when using: log stream -info | grep AdClickAttribution

No other errors or warnings are shown in the Web Inspector</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701589</commentid>
    <comment_count>1</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2020-10-26 13:22:44 -0700</bug_when>
    <thetext>Thanks for filing, please attach a reduced test case in the form of an HTML, codepen etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701590</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-26 13:22:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/70692530&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701599</commentid>
    <comment_count>3</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2020-10-26 13:41:32 -0700</bug_when>
    <thetext>(In reply to Marçal from comment #0)
&gt; Hi,
&gt; 
&gt; Safari Technology Preview: Release 115 (Safari 14.1, WebKit 15611.1.3.5)
&gt; Both Ad Click Attribution and Ad Click Attribution Debug Mode Experimental
&gt; Features are enabled.
&gt; 
&gt; Different domains used for publisher and advertiser &amp; publisher with the
&gt; following tag included:
&gt; &lt;a href=&quot;https://click.advertiser.example?pid=3&quot; adcampaignid=&quot;52&quot;
&gt; addestination=&quot;https://advertiser.example&quot; target=&quot;_blank&quot;&gt;&lt;img
&gt; src=&quot;https://ad.example/creative_1.png&quot; alt=&quot;click now!&quot;&gt;&lt;/a&gt;

What happens if you drop the target=&quot;_blank&quot; attribute?

&gt; As explained here:
&gt; https://webkit.org/blog/8943/privacy-preserving-ad-click-attribution-for-the-
&gt; web/ I expect to see the logs when using: log stream -info | grep
&gt; AdClickAttribution
&gt; 
&gt; No other errors or warnings are shown in the Web Inspector</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701829</commentid>
    <comment_count>4</comment_count>
    <who name="Marçal">m.serrate</who>
    <bug_when>2020-10-27 05:06:11 -0700</bug_when>
    <thetext>Hi,

After enabling/disabling the features &amp; restarting several times, logs are working as expected now, so I&apos;m going to close the ticket.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701836</commentid>
    <comment_count>5</comment_count>
    <who name="Marçal">m.serrate</who>
    <bug_when>2020-10-27 05:33:23 -0700</bug_when>
    <thetext>Hi John,

My bad, forget the previous comment.
Removing the target=&quot;_blank&quot; attribute did the trick and now it works.

Not sure if that&apos;s by design, but I&apos;m reopening as using target=&quot;_blank&quot; shouldn&apos;t be a privacy concern.

Thanks,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702167</commentid>
    <comment_count>6</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2020-10-27 17:39:29 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 214176 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>