amp-ad-network-doubleclick-impl uses the Headers object which may fail fetch polyfill
Haven't tested this myself, but this is something I saw when browsing the code so I figure I should point it out --
On line 725 of this file, the code is passing a Headers object in the init option to the XHR service.
This might fail on browsers with no support for the Headers object, e.g. IE.
Even if Headers is supported, it might fail AMP's fetch polyfill. IE and Safari doesn't support the Fetch API, so the fetchPolyfill will be used for IE and Safari, which uses the following code to populate the headers on the XMLHttpRequest object from that passed to the init.
if (init.headers) {
Object.keys(init.headers).forEach(function(header) {
xhr.setRequestHeader(header, init.headers[header]);
});
}
If init.headers is a Headers object, Object.keys(init.headers) will always be an empty array as Headers is not a plain old JavaScript object with enumerable header keys.
This issue seems to be in Pending Triage for awhile. @keithwrightbos Please triage this to an appropriate milestone.
@eshienbrood you are looking into doubleclick SRA implementation, mind digging into this? Thx
This issue hasn't been updated in awhile. @keithwrightbos Do you have any updates?
This issue hasn't been updated in awhile. @keithwrightbos Do you have any updates?
This issue hasn't been updated in awhile. @keithwrightbos Do you have any updates?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.