amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

DoubleClick ads don't collapse on Firefox with Tracking Protection on

Open danielrozenberg opened this issue 8 years ago • 5 comments

Steps to reproduce:

  1. Download this gist and run a local server
  2. Turn on Firefox's Tracking Protection (either through the settings, by opening a private browsing window, or clicking on the logo to the left of the URL bar and selecting tracking protection)
  3. The ad, which doesn't exist, should collapse, but amp-ad's code crashes at some point because Tracking Protection stops the browser from loading doubleclick.net URLs

danielrozenberg avatar Jun 05 '18 19:06 danielrozenberg

Can you elaborate on what you mean by "amp-ad's code crashes"? If the CORS XHR request to get the ad response is blocked, we attempt to fetch the ad using an iframe GET (