ShapeDetector: Either reject always or resolve always detect()s when the input has zero dimensions |
||
Issue descriptionRight now if the input is a 0x0 HTMLImageElement, we resolve with empty result array [1], but in other cases we probably reject due to mojo::SharedBufferHandle being invalid [2] [1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp?q=shapedetector.cpp&sq=package:chromium&dr&l=149 [2] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp?q=shapedetector.cpp&sq=package:chromium&dr&l=36
,
Jan 11 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jan 11 2017