In response to this: https://github.com/whatwg/html/issues/1085 When the imagesource is an ImageBitmap and it has been neutered, we should throw an error.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/ee0c958459d7a6307735cdecaaabd64fa40c7b88 commit ee0c958459d7a6307735cdecaaabd64fa40c7b88 Author: xidachen <xidachen@chromium.org> Date: Mon Apr 25 16:43:37 2016 drawImage throw when ImageBitmap is neutered When the source of canvas.drawImage() is an ImageBitmap and it has been neutered, we should throw an InvalidStateError. BUG= 605606 Review URL: https://codereview.chromium.org/1911793003 Cr-Commit-Position: refs/heads/master@{#389496} [modify] https://crrev.com/ee0c958459d7a6307735cdecaaabd64fa40c7b88/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-close-expected.txt [modify] https://crrev.com/ee0c958459d7a6307735cdecaaabd64fa40c7b88/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-close.html [modify] https://crrev.com/ee0c958459d7a6307735cdecaaabd64fa40c7b88/third_party/WebKit/Source/core/frame/ImageBitmap.h [modify] https://crrev.com/ee0c958459d7a6307735cdecaaabd64fa40c7b88/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h [modify] https://crrev.com/ee0c958459d7a6307735cdecaaabd64fa40c7b88/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
Comment 1 by bugdroid1@chromium.org
, Apr 25 2016