diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ff34558305..8ab3f5bd86 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -49,6 +49,7 @@ Changelog * Maintenance: Remove unused Rangy JS library (LB (Ben) Johnston) * Maintenance: Update `PreviewController` usage to leverage Stimulus actions instead of calling `preventDefault` manually (Ayaan Qadri) * Maintenance: Various performance optimizations to page publishing (Jake Howard) + * Maintenance: Remove unnecessary DOM canvas.toBlob polyfill (LB (Ben) Johnston) 6.3.1 (19.11.2024) diff --git a/docs/releases/6.4.md b/docs/releases/6.4.md index 69bf3398d7..2001b88c9c 100644 --- a/docs/releases/6.4.md +++ b/docs/releases/6.4.md @@ -68,6 +68,7 @@ depth: 1 * Remove unused Rangy JS library (LB (Ben) Johnston) * Update `PreviewController` usage to leverage Stimulus actions instead of calling `preventDefault` manually (Ayaan Qadri) * Various performance optimizations to page publishing (Jake Howard) + * Remove unnecessary DOM canvas.toBlob polyfill (LB (Ben) Johnston) ## Upgrade considerations - changes affecting all projects diff --git a/wagtail/images/static_src/wagtailimages/js/vendor/canvas-to-blob.min.js b/wagtail/images/static_src/wagtailimages/js/vendor/canvas-to-blob.min.js deleted file mode 100644 index dd95826c95..0000000000 --- a/wagtail/images/static_src/wagtailimages/js/vendor/canvas-to-blob.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(a){"use strict";var b=a.HTMLCanvasElement&&a.HTMLCanvasElement.prototype,c=a.Blob&&function(){try{return Boolean(new Blob)}catch(a){return!1}}(),d=c&&a.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(a){return!1}}(),e=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder||a.MSBlobBuilder,f=(c||e)&&a.atob&&a.ArrayBuffer&&a.Uint8Array&&function(a){var b,f,g,h,i,j;for(b=a.split(",")[0].indexOf("base64")>=0?atob(a.split(",")[1]):decodeURIComponent(a.split(",")[1]),f=new ArrayBuffer(b.length),g=new Uint8Array(f),h=0;h -