New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 702582 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 693513



Sign in to add a comment

shape detection: Invalid attribute type in DetectedBarcode.idl

Project Member Reported by raphael....@intel.com, Mar 17 2017

Issue description

//third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl has the following declaration:

    [SameObject] readonly attribute sequence<Point2D> cornerPoints;

However, https://heycam.github.io/webidl/#idl-sequence explicitly states "Sequences must not be used as the type of an attribute or constant".

We'd like to fix all occurrences of invalid attribute types in order to make the IDL compiler reject them in the future.

In this case, it looks like the upstream spec also needs to be fixed.
 
modules/shapedetection has no OWNERS file, so I'm CC'ing people who have committed changes to that IDL file.
The shape detection specification currently uses sequences incorrectly. I have filed an issue to track fixing that as well:

https://github.com/WICG/shape-detection-api/issues/23
Owner: reillyg@chromium.org
Status: Started (was: Available)
Created a pull request to fix the spec:

https://github.com/WICG/shape-detection-api/pull/24
Project Member

Comment 4 by bugdroid1@chromium.org, Mar 18 2017

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

commit fc4d9edc3304b2291bae8f93745654bedc2c2ecd
Author: reillyg <reillyg@chromium.org>
Date: Sat Mar 18 02:42:39 2017

Replace sequence with FrozenArray in DetectedBarcode.idl.

It is invalid to use a sequence as an attribute type. I have submitted a
pull request to the shape detection API specification to fix this there
as well:

https://github.com/WICG/shape-detection-api/pull/24

BUG= 702582 

Review-Url: https://codereview.chromium.org/2756063003
Cr-Commit-Position: refs/heads/master@{#457936}

[modify] https://crrev.com/fc4d9edc3304b2291bae8f93745654bedc2c2ecd/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl

Comment 5 by mcasas@chromium.org, Mar 18 2017

Labels: ShapeDetection
Status: Fixed (was: Started)
Thanks raphael.kubo.da.costa@intel.com and reillyg@ !

Sign in to add a comment