New issue
Advanced search Search tips

Issue 740871 link

Starred by 2 users

Issue metadata

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

Blocking:
issue 740865



Sign in to add a comment

CryptoKey: Change |usages|' IDL type

Project Member Reported by raphael....@intel.com, Jul 11 2017

Issue description

CryptoKey.usages is currently declared as

    // TODO(jyasskin): |usages| should be of type object.
    readonly attribute DOMString[] usages;

as the comment states, the spec currently uses "object" instead of "DOMString[]".

I'd like to remove support for WebIDL arrays (such as "DOMString[]") from Blink, as they were dropped from the spec in 2015, and before that we need to remove existing uses of arrays in the IDL files.
 
Components: Blink>Bindings
Cc: foolip@chromium.org
I'm not sure why I wound up on that TODO.
Will you change DOMString[] to sequence<DOMString> ?

Comment 4 by eroman@chromium.org, Jul 12 2017

Attempt to remove it here: https://chromium-review.googlesource.com/c/567638/

Comment 5 by eroman@chromium.org, Jul 12 2017

Owner: eroman@chromium.org
Status: Assigned (was: Available)
That was fast, thanks a lot for the work!

Comment 8 by eroman@chromium.org, Jul 12 2017

Status: Fixed (was: Assigned)
Project Member

Comment 9 by bugdroid1@chromium.org, Jul 13 2017

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

commit 52a5c4b920b5050134852254e15398598c0359c5
Author: Eric Roman <eroman@chromium.org>
Date: Thu Jul 13 01:21:15 2017

Use the ToV8() overload that takes ScriptState for CryptoKey.

Bug:  740871 
Change-Id: Ica5bcd76a3f2995a8f414c80698e468f8780734c
Reviewed-on: https://chromium-review.googlesource.com/568595
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Eric Roman <eroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486200}
[modify] https://crrev.com/52a5c4b920b5050134852254e15398598c0359c5/third_party/WebKit/Source/modules/crypto/CryptoKey.cpp

Sign in to add a comment