<?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>223253</bug_id>
          
          <creation_ts>2021-03-16 07:25:55 -0700</creation_ts>
          <short_desc>Cannot click on DuckDuckGo search results, requires macOS user agent quirk</short_desc>
          <delta_ts>2021-03-17 05:12:58 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>konrad</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1739928</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-03-16 07:25:55 -0700</bug_when>
    <thetext>It seems DuckDuckGo changed something on their end, because clicking links on search results no longer works. It doesn&apos;t appear to be due to any WebKit or Epiphany change.

Possibly related to one of these web inspector errors:

[Error] Unrecognized Content-Security-Policy directive &apos;manifest-src&apos;.

[Error] Unrecognized Content-Security-Policy directive &apos;worker-src&apos;.

[Error] Unrecognized Content-Security-Policy directive &apos;manifest-src&apos;.

[Error] Unrecognized Content-Security-Policy directive &apos;worker-src&apos;.

There is also another web inspector error:

[Error] Refused to execute https://duckduckgo.com/post.js as script because &quot;X-Content-Type-Options: nosniff&quot; was given and its Content-Type is not a script MIME type.

But that one is not related because it appears in the Firefox console too, and DuckDuckGo still works in Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1739976</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-03-16 09:42:07 -0700</bug_when>
    <thetext>Adrian observes: &quot;&quot;&quot;go to web inspector → pick &lt;a&gt; element → go to “Node” tab → ”Event Listeners” → “click” → uncheck the “Enabled” toggle → tada! link works&quot;&quot;&quot;

cb = cd.handle = function(ck) {
                    return typeof bJ !== aB &amp;&amp; (!ck || bJ.event.triggered !== ck.type) ? bJ.event.dispatch.apply(cb.elem, arguments) : aF
                };</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740111</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-03-16 12:18:51 -0700</bug_when>
    <thetext>Phil and Alex say Safari is not affected -- we&apos;re not sure why -- so it&apos;s gonna be hard to get DuckDuckGo&apos;s attention on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740126</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-03-16 12:47:27 -0700</bug_when>
    <thetext>It works if we use a macOS user agent quirk. &lt;_&lt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740145</commentid>
    <comment_count>4</comment_count>
      <attachid>423387</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-03-16 13:04:04 -0700</bug_when>
    <thetext>Created attachment 423387
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740151</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-03-16 13:10:05 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #0)
&gt; Possibly related to one of these web inspector errors:
&gt; 
&gt; [Error] Unrecognized Content-Security-Policy directive &apos;manifest-src&apos;.
&gt; 
&gt; [Error] Unrecognized Content-Security-Policy directive &apos;worker-src&apos;.
&gt; 
&gt; [Error] Unrecognized Content-Security-Policy directive &apos;manifest-src&apos;.
&gt; 
&gt; [Error] Unrecognized Content-Security-Policy directive &apos;worker-src&apos;.

These errors are unrelated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740196</commentid>
    <comment_count>6</comment_count>
    <who name="Konrad Dzwinel">konrad</who>
    <bug_when>2021-03-16 14:21:47 -0700</bug_when>
    <thetext>&gt;  it&apos;s gonna be hard to get DuckDuckGo&apos;s attention on this.

Hey folks, sorry for trouble, we just reverted the changed that broke this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740245</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-03-16 15:16:06 -0700</bug_when>
    <thetext>Thanks Konrad. Not sure how you noticed even *before* we reached out, but that&apos;s pretty excellent, thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740614</commentid>
    <comment_count>8</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2021-03-17 02:12:59 -0700</bug_when>
    <thetext>(In reply to Konrad Dzwinel from comment #6)
&gt; &gt;  it&apos;s gonna be hard to get DuckDuckGo&apos;s attention on this.
&gt; 
&gt; Hey folks, sorry for trouble, we just reverted the changed that broke this.

Thanks! It would be sad if we have to use a user agent quirk for ddg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740671</commentid>
    <comment_count>9</comment_count>
    <who name="Konrad Dzwinel">konrad</who>
    <bug_when>2021-03-17 05:12:58 -0700</bug_when>
    <thetext>&gt; It would be sad if we have to use a user agent quirk for ddg

Agreed, please ping us if it will ever become an issue in the future.


&gt; Not sure how you noticed even *before* we reached out

Through the magic of RSS ;) We are monitoring bugzilla for bugs mentioning &quot;DuckDuckGo&quot;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>423387</attachid>
            <date>2021-03-16 13:04:04 -0700</date>
            <delta_ts>2021-03-16 15:20:26 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-223253-20210316150404.patch</filename>
            <type>text/plain</type>
            <size>2334</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjc0NDc2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMjMzNGMzNTUwOTIzNzQz
OTY2MzM0ZmI0YmU5ZDgzYzVkYjA2MGFlZi4uMWI1YTZmZDk4MzQwODJhMzIwMzkzNTk0OGJjMTE3
YzExMzhhYWIyZSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDIxLTAzLTE2ICBNaWNo
YWVsIENhdGFuemFybyAgPG1jYXRhbnphcm9AZ25vbWUub3JnPgorCisgICAgICAgIENhbm5vdCBj
bGljayBvbiBEdWNrRHVja0dvIHNlYXJjaCByZXN1bHRzLCByZXF1aXJlcyBtYWNPUyB1c2VyIGFn
ZW50IHF1aXJrCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p
ZD0yMjMyNTMKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAg
ICBEdWNrRHVja0dvIG5vdyByZXF1aXJlcyBhIG1hY09TIHVzZXIgYWdlbnQgcXVpcmsuCisKKyAg
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luID09ICJkdWNrZHVja2dv
LmNvbSIpCisgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKKyAgICB9CiAKICAgICAvLyB3ZWIud2hh
dHNhcHAuY29tIGNvbXBsZXRlbHkgYmxvY2tzIHVzZXJzIHdpdGggV2ViS2l0R1RLJ3Mgc3RhbmRh
cmQgdXNlciBhZ2VudC4KICAgICBpZiAoYmFzZURvbWFpbiA9PSAid2hhdHNhcHAuY29tIikK
</data>
<flag name="commit-queue"
          id="442765"
          type_id="3"
          status="-"
          setter="mcatanzaro"
    />
          </attachment>
      

    </bug>

</bugzilla>