This is speced here: https://html.spec.whatwg.org/multipage/webappapis.html#imagebitmapsource ImageBitmapSource contains CanvasImageSource which contains OffscreenCanvas. We should implement this path.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145 commit fc5d49e3a636ea62c25c512c9ac4295cf0ad5145 Author: junov <junov@chromium.org> Date: Wed Dec 14 20:52:44 2016 Add OffscreenCanvas to ImageBitmapSource union typedef This change makes it possible to call createImageBitmap with an OffscreenCanvas object as an argument. It also takes care of propagating the origin-clean flag. BUG= 672571 TBR=haraken@chromium.org Review-Url: https://codereview.chromium.org/2570613002 Cr-Commit-Position: refs/heads/master@{#438617} [add] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-ImageBitmapSource.html [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-in-workers-expected.txt [add] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/LayoutTests/http/tests/security/offscreencanvas-read-blocked-no-crossorigin.html [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/Source/bindings/core/v8/BUILD.gn [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/Source/core/frame/ImageBitmap.cpp [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/Source/core/frame/ImageBitmap.h [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.h [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.idl [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp [modify] https://crrev.com/fc5d49e3a636ea62c25c512c9ac4295cf0ad5145/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
Comment 1 by mcasas@chromium.org
, Dec 8 2016