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

Issue 21542002: Make CharacterData::insertData() / deleteData() / replaceData() arguments mandatory (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, lgombos
Visibility:
Public.

Description

Make CharacterData::insertData() / deleteData() / replaceData() arguments mandatory As per the specification, CharacterData::insertData() / deleteData() / replaceData() arguments should be mandatory: http://dom.spec.whatwg.org/#characterdata This behavior is consistent with IE10 and Firefox. BUG=266813 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155345

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use more recent spec URL #

Total comments: 1

Patch Set 3 : Improve negative offset checks #

Patch Set 4 : Rebaseline fast/dom/characterdata-appendData-argument.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -48 lines) Patch
A LayoutTests/fast/dom/characterdata-api-arguments.html View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/characterdata-api-arguments-expected.txt View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
D LayoutTests/fast/dom/characterdata-appendData-argument.html View 1 chunk +0 lines, -21 lines 0 comments Download
D LayoutTests/fast/dom/characterdata-appendData-argument-expected.txt View 1 chunk +0 lines, -15 lines 0 comments Download
M LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/CharacterData.idl View 1 chunk +3 lines, -10 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
do-not-use
https://codereview.chromium.org/21542002/diff/1/Source/core/dom/CharacterData.idl File Source/core/dom/CharacterData.idl (right): https://codereview.chromium.org/21542002/diff/1/Source/core/dom/CharacterData.idl#newcode29 Source/core/dom/CharacterData.idl:29: [RaisesException] void insertData([IsIndex] unsigned long offset, DOMString data); Note ...
7 years, 4 months ago (2013-08-01 12:42:10 UTC) #1
haraken
LGTM. Let's wait for an approval from an API owner. Regarding [IsIndex], I agree with ...
7 years, 4 months ago (2013-08-01 12:48:16 UTC) #2
tkent
lgtm as API owner.
7 years, 4 months ago (2013-08-01 13:08:05 UTC) #3
do-not-use
On 2013/08/01 12:48:16, haraken wrote: > LGTM. Let's wait for an approval from an API ...
7 years, 4 months ago (2013-08-01 13:31:40 UTC) #4
haraken
On 2013/08/01 13:31:40, Christophe Dumez wrote: > On 2013/08/01 12:48:16, haraken wrote: > > LGTM. ...
7 years, 4 months ago (2013-08-01 13:35:08 UTC) #5
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/21542002/diff/6001/LayoutTests/fast/dom/characterdata-api-arguments.html File LayoutTests/fast/dom/characterdata-api-arguments.html (right): https://codereview.chromium.org/21542002/diff/6001/LayoutTests/fast/dom/characterdata-api-arguments.html#newcode18 LayoutTests/fast/dom/characterdata-api-arguments.html:18: shouldThrow("text.appendData()", "'TypeError: Not enough arguments'"); // Missing argument. ...
7 years, 4 months ago (2013-08-01 13:47:44 UTC) #6
do-not-use
On 2013/08/01 13:35:08, haraken wrote: > On 2013/08/01 13:31:40, Christophe Dumez wrote: > > On ...
7 years, 4 months ago (2013-08-01 14:14:10 UTC) #7
arv (Not doing code reviews)
FWIW, IsIndex is not part of WebIDL so we might as well just remove it. ...
7 years, 4 months ago (2013-08-01 14:33:24 UTC) #8
haraken
Sorry about the confusion (I couldn't well remember what I was doing 4 months ago). ...
7 years, 4 months ago (2013-08-01 15:21:52 UTC) #9
do-not-use
So the generated code looks like: V8TRYCATCH_VOID(int, offset, toUInt32(args[0])); if (UNLIKELY(offset < 0)) { setDOMException(IndexSizeError, ...
7 years, 4 months ago (2013-08-01 15:25:19 UTC) #10
haraken
On 2013/08/01 15:25:19, Christophe Dumez wrote: > So the generated code looks like: > V8TRYCATCH_VOID(int, ...
7 years, 4 months ago (2013-08-01 15:36:49 UTC) #11
do-not-use
On 2013/08/01 15:36:49, haraken wrote: > On 2013/08/01 15:25:19, Christophe Dumez wrote: > > So ...
7 years, 4 months ago (2013-08-01 15:39:07 UTC) #12
haraken
> I believe we can land this CL as it is and take care of ...
7 years, 4 months ago (2013-08-01 15:44:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/21542002/22002
7 years, 4 months ago (2013-08-01 15:47:37 UTC) #14
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 17:23:50 UTC) #15
Message was sent while issue was closed.
Change committed as 155345

Powered by Google App Engine
This is Rietveld 408576698