Image Capture: do not fill in PhotoCapabilities dictionary members if not necessary |
||
Issue descriptionFrom JS I might get something like: PhotoCapabilities fillLightMode : Array(0) imageHeight : null imageWidth : null redEyeReduction : "never" where the first three should not be present if not adding info.
,
May 10 2017
Sorry, my bad: PhotoCapabilities is not a dictionary, but an interface,
defined as [1]
interface PhotoCapabilities {
readonly attribute RedEyeReduction redEyeReduction;
readonly attribute MediaSettingsRange imageHeight;
readonly attribute MediaSettingsRange imageWidth;
readonly attribute FrozenArray<FillLightMode> fillLightMode;
};
So, the behaviour is correct, all the member fields have to be there.
[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl?q=PhotoCapabilities.idl&sq=package:chromium&dr
|
||
►
Sign in to add a comment |
||
Comment 1 by mcasas@chromium.org
, May 10 20176.2 KB
6.2 KB View Download