New issue
Advanced search Search tips

Issue 595090 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

createImageBitmap(HTMLImageElement) resolves promise before image-decoding

Project Member Reported by xidac...@chromium.org, Mar 15 2016

Issue description

Please refer to https://bugs.chromium.org/p/chromium/issues/detail?id=580202 for examples.

This only happens in the cases of creating an ImageBitmap from an HTMLImageElement, without specifying a cropRect, and without any ImageBitmapOptions.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Mar 22 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1247e32994c8f828f3a22ce8dde5b4631d142763

commit 1247e32994c8f828f3a22ce8dde5b4631d142763
Author: xidachen <xidachen@chromium.org>
Date: Tue Mar 22 20:22:00 2016

Force image-decoding before resolving createImageBitmap promise

In the case of createImageBitmap(HTMLImageElement) without any cropRect
and ImageBitmapOptions parameters, the promise seems to be resolved before
image-decoding is done.

This CL changes such that image-decoding is forced to happen before the
promise is resolved.

BUG= 595090 

Review URL: https://codereview.chromium.org/1800153003

Cr-Commit-Position: refs/heads/master@{#382662}

[modify] https://crrev.com/1247e32994c8f828f3a22ce8dde5b4631d142763/third_party/WebKit/Source/core/frame/ImageBitmap.cpp

Status: Fixed (was: Started)

Sign in to add a comment