polyfillpolyfill / polyfill-service

Automatic polyfill service.
https://polyfill.io/
MIT License
7.53k stars 743 forks source link

Microsoft EdgeHTML 17.17134 HTMLCanvasElement.prototype.toBlob polyfill is not served #1758

Closed Havunen closed 5 years ago

Havunen commented 6 years ago

Hey!

HtmlCanvas.toBlob prototype is not served to Edge 17... It should be included for all versions of Edge and IE

UserAgent header is following:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134 

detection script:

'toBlob' in HTMLCanvasElement.prototype;  // returns false

There was PR fixing this issue in 3.25.1 ? https://github.com/Financial-Times/polyfill-service/commit/7413a0f5304ff9f4eec8d2e53a85a56dc9493230

The site says its running 3.25.1 but there are no release notes in Github https://github.com/Financial-Times/polyfill-service/releases/tag/v3.25.1 and its not marked as latest release.

This is the URL we used: https://cdn.polyfill.io/v2/polyfill.min.js?features=HTMLCanvasElement.prototype.toBlob It seems to be delivered correctly to IE, but not MS Edge

Havunen commented 6 years ago

If you search toBlob polyfill io site: https://polyfill.io/v2/docs/features/

It says its supported natively in Edge v15+ which is not the case. We tested v16 and v17 and its missing in both

jimmywarting commented 6 years ago

can confirm that edge don't have toBlob but it has a prefixed version msToBlob

Havunen commented 6 years ago

Shouldn't the polyfill service then provide polyfill that uses msToBlob? now it works in IE11 and just fails in Edge

JakeChampion commented 5 years ago

In polyfill.io/v3 Edge is served the HTMLCanvasElement.prototype.toBlob polyfill 👍