|
@@ -16,17 +16,10 @@ var ImageUtils = {
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- if ( typeof OffscreenCanvas !== 'undefined' ) {
|
|
|
-
|
|
|
- canvas = new OffscreenCanvas( image.width, image.height );
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
|
|
|
- canvas.width = image.width;
|
|
|
- canvas.height = image.height;
|
|
|
-
|
|
|
- }
|
|
|
+ // do not use OffscreenCanvas here, see #14713
|
|
|
+ canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
|
|
|
+ canvas.width = image.width;
|
|
|
+ canvas.height = image.height;
|
|
|
|
|
|
var context = canvas.getContext( '2d' );
|
|
|
|