DoubleClick ads don't collapse on Firefox with Tracking Protection on
Steps to reproduce:
- Download this gist and run a local server
- 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)
- 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
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 (
Yeah, this is exactly it. It's trying to load the ad as an iframe and then it doesn't collapse as you described
We should probably do this across all networks. Reassigning to @lannka.
I don't think this is possible. As in: We have no way to know generically that a request failed.
DoubleClick could probably invest in detecting this if they'd like to improve the experience of people using ad blockers.
Closing this based on the last comment. Feel free to reopen if we have an AMP side way to make this experience better.