Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Issue 966843002: Mark DOMStringList.contains() as deprecated, add console warning. (Closed)

Created:
5 years, 9 months ago by jsbell
Modified:
5 years, 3 months ago
Reviewers:
philipj_slow
CC:
blink-reviews, blink-reviews-dom_chromium.org, arv+blink, vivekg_samsung, sof, eae+blinkwatch, vivekg, dglazkov+blink, dgrogan, Inactive, cmumford, jsbell+idb_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Mark DOMStringList.contains() as deprecated, add console warning. Intent to Deprecate: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/j23bosJMX-8 We'd like to remove DOMStringList from the web platform in favor of plain old arrays of strings. Usage of the contains() method is low but non-zero. Additionally, deprecate the named indexed getter ('item()') in favor of an anonymous variant, to further align with a plain array. BUG=460726 R=philipj@opera.com

Patch Set 1 #

Patch Set 2 : One more rebaseline #

Patch Set 3 : Deprecate named getter #

Total comments: 4

Patch Set 4 : Review feedback #

Patch Set 5 : Rebased #

Total comments: 3

Patch Set 6 : Add more detailed use counters #

Total comments: 1

Patch Set 7 : Rebased #

Patch Set 8 : Rebased #

Patch Set 9 : Rebased #

Patch Set 10 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -25 lines) Patch
M LayoutTests/inspector/sources/debugger-async/async-callstack-indexed-db-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/database-basics-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/database-closepending-flag-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/dont-commit-on-blocked-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/factory-basics-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/factory-basics-workers-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/factory-deletedatabase-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/getdatabasenames-failed-open-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/index-count-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/global-data-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/objectstorenames-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/remove-index-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/remove-objectstore-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/resources/create-index-unique.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/resources/global-data.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/resources/indexes.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/resources/objectstorenames.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/resources/remove-index.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/mozilla/resources/remove-objectstore.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/objectstore-autoincrement-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/objectstore-basics-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/objectstore-basics-workers-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/objectstore-clear-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/objectstore-removeobjectstore-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/persistence-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/resources/objectstore-basics.js View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/storage/indexeddb/resources/shared.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/indexeddb/transaction-basics-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/version-change-abort-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/DOMStringList.idl View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
philipj_slow
Yay, thanks! Can you send an Intent to Deprecate to blink-dev? The template is in ...
5 years, 9 months ago (2015-03-01 00:30:21 UTC) #1
jsbell
On 2015/03/01 00:30:21, philipj_UTC7 wrote: > Yay, thanks! Can you send an Intent to Deprecate ...
5 years, 9 months ago (2015-03-02 18:23:34 UTC) #2
philipj_slow
LGTM It would also be useful to give DOMStringList::create a flag and to add more ...
5 years, 9 months ago (2015-03-06 03:03:50 UTC) #3
jsbell
Done and done. I'll iterate on this to see if I can simplify the getter ...
5 years, 9 months ago (2015-03-06 17:19:20 UTC) #4
jsbell
Rebased this. We obviously don't want to land as-is (with both Measure and Deprecate). Maybe ...
5 years, 6 months ago (2015-06-05 21:58:23 UTC) #5
philipj_slow
If you want to send an Intent to Deprecate both DOMStringList.item() and DOMStringList.contains() I would ...
5 years, 6 months ago (2015-06-05 22:57:37 UTC) #6
jsbell
On 2015/03/06 03:03:50, philipj wrote: > It would also be useful to give DOMStringList::create a ...
5 years, 6 months ago (2015-06-12 20:14:36 UTC) #7
jsbell
https://codereview.chromium.org/966843002/diff/100001/Source/bindings/modules/v8/V8BindingForModules.cpp File Source/bindings/modules/v8/V8BindingForModules.cpp (right): https://codereview.chromium.org/966843002/diff/100001/Source/bindings/modules/v8/V8BindingForModules.cpp#newcode72 Source/bindings/modules/v8/V8BindingForModules.cpp:72: RefPtrWillBeRawPtr<DOMStringList> keyPaths = DOMStringList::create(DOMStringList::IndexedDB); Side note: I'm rather surprised ...
5 years, 6 months ago (2015-06-12 20:35:39 UTC) #8
philipj_slow
https://codereview.chromium.org/966843002/diff/80001/Source/core/frame/UseCounter.h File Source/core/frame/UseCounter.h (right): https://codereview.chromium.org/966843002/diff/80001/Source/core/frame/UseCounter.h#newcode733 Source/core/frame/UseCounter.h:733: DOMStringListItem = 827, On 2015/06/12 20:14:36, jsbell wrote: > ...
5 years, 6 months ago (2015-06-12 21:08:36 UTC) #9
philipj_slow
5 years, 6 months ago (2015-06-12 21:23:05 UTC) #10
This LGTM, and will provide better data than
https://codereview.chromium.org/1162203003

So I guess poke blink-dev to see if anyone has any further concerns about the
deprecation bit specifically.

Powered by Google App Engine
This is Rietveld 408576698