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

Issue 451403002: Range.deleteContents shouldn't throw HierarchyRequestError on doctype (Closed)

Created:
6 years, 4 months ago by kangil_
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Range.deleteContents shouldn't throw HierarchyRequestError on doctype SPEC: http://dom.spec.whatwg.org/#dom-range-deletecontents Unlike extractContents, deleteContents doesn't throw error. So this CL modified implementation as per specified. Behavior in other browsers. *)FF: PASS *)IE: PASS In addition 4 failed cases will be passed with this CL in http://w3c-test.org/dom/ranges/Range-deleteContents.html TEST=LayoutTests/fast/dom/Range/deleteContents-doctype.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180143

Patch Set 1 #

Total comments: 4

Patch Set 2 : Take review comment into consideration #

Total comments: 11

Patch Set 3 : Take review comment into consideration #

Patch Set 4 : Fix typo #

Total comments: 2

Patch Set 5 : Take review comment into consideration. #

Total comments: 4

Patch Set 6 : Take review comment into consideration #

Total comments: 8

Patch Set 7 : Take review comment into consideration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -9 lines) Patch
A LayoutTests/fast/dom/Range/deleteContents-doctype.html View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/Range/deleteContents-doctype-expected.txt View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/dom/Range.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Range.cpp View 1 2 3 4 5 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
kangil_
PTAL fyi, console.log is used on test case since document was blown off.
6 years, 4 months ago (2014-08-10 23:14:43 UTC) #1
yosin_UTC9
C++ change is good. https://codereview.chromium.org/451403002/diff/1/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/1/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode18 LayoutTests/fast/dom/Range/deleteContents-doctype.html:18: console.log('Ran as expected!'); We can ...
6 years, 4 months ago (2014-08-11 00:34:24 UTC) #2
kangil_
https://codereview.chromium.org/451403002/diff/1/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/1/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode18 LayoutTests/fast/dom/Range/deleteContents-doctype.html:18: console.log('Ran as expected!'); On 2014/08/11 00:34:24, Yosi_UTC9 wrote: > ...
6 years, 4 months ago (2014-08-11 00:42:21 UTC) #3
yosin_UTC9
https://codereview.chromium.org/451403002/diff/1/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/1/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode18 LayoutTests/fast/dom/Range/deleteContents-doctype.html:18: console.log('Ran as expected!'); On 2014/08/11 00:42:20, kangil_ wrote: > ...
6 years, 4 months ago (2014-08-11 02:16:42 UTC) #4
kangil_
Thanks for the review comment. PTAL! https://codereview.chromium.org/451403002/diff/1/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/1/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode18 LayoutTests/fast/dom/Range/deleteContents-doctype.html:18: console.log('Ran as expected!'); ...
6 years, 4 months ago (2014-08-11 04:00:20 UTC) #5
kangil_
Gentle ping to yosin. :)
6 years, 4 months ago (2014-08-11 23:35:54 UTC) #6
yosin_UTC9
https://codereview.chromium.org/451403002/diff/20001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/20001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode1 LayoutTests/fast/dom/Range/deleteContents-doctype.html:1: <html> For this test, we should have <!DOCTYPE html>. ...
6 years, 4 months ago (2014-08-12 01:00:44 UTC) #7
kangil_
https://codereview.chromium.org/451403002/diff/20001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/20001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode1 LayoutTests/fast/dom/Range/deleteContents-doctype.html:1: <html> On 2014/08/12 01:00:43, Yosi_UTC9 wrote: > For this ...
6 years, 4 months ago (2014-08-12 01:08:28 UTC) #8
kangil_
Thanks for review comments! PTAL. https://codereview.chromium.org/451403002/diff/20001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/20001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode1 LayoutTests/fast/dom/Range/deleteContents-doctype.html:1: <html> On 2014/08/12 01:00:44, ...
6 years, 4 months ago (2014-08-12 02:41:35 UTC) #9
yosin_UTC9
LGTM w/ nits. https://codereview.chromium.org/451403002/diff/60001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/60001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode7 LayoutTests/fast/dom/Range/deleteContents-doctype.html:7: function generatePassMessage() { nit: We don't ...
6 years, 4 months ago (2014-08-12 03:22:52 UTC) #10
kangil_
Thanks! https://codereview.chromium.org/451403002/diff/60001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/60001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode7 LayoutTests/fast/dom/Range/deleteContents-doctype.html:7: function generatePassMessage() { On 2014/08/12 03:22:52, Yosi_UTC9 wrote: ...
6 years, 4 months ago (2014-08-12 04:16:32 UTC) #11
kangil_
The CQ bit was checked by kangil.han@samsung.com
6 years, 4 months ago (2014-08-12 04:16:52 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kangil.han@samsung.com/451403002/80001
6 years, 4 months ago (2014-08-12 04:17:36 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 4 months ago (2014-08-12 05:21:35 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 05:24:14 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/12537)
6 years, 4 months ago (2014-08-12 05:24:15 UTC) #16
kangil_
@yutak: Can you give owner lgtm? Thanks!
6 years, 4 months ago (2014-08-12 06:03:57 UTC) #17
Yuta Kitamura
https://codereview.chromium.org/451403002/diff/80001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/80001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode12 LayoutTests/fast/dom/Range/deleteContents-doctype.html:12: // If Range.deleteContents() throws error, then we will not ...
6 years, 4 months ago (2014-08-12 09:07:43 UTC) #18
kangil_
Thanks for review, PTAL! https://codereview.chromium.org/451403002/diff/80001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/80001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode12 LayoutTests/fast/dom/Range/deleteContents-doctype.html:12: // If Range.deleteContents() throws error, ...
6 years, 4 months ago (2014-08-12 10:41:26 UTC) #19
Yuta Kitamura
LGTM after revision https://codereview.chromium.org/451403002/diff/100001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/100001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode1 LayoutTests/fast/dom/Range/deleteContents-doctype.html:1: <!doctype html> super-nit/optional: it is recommended ...
6 years, 4 months ago (2014-08-13 03:02:41 UTC) #20
kangil_
Thanks for reviewing this CL! https://codereview.chromium.org/451403002/diff/100001/LayoutTests/fast/dom/Range/deleteContents-doctype.html File LayoutTests/fast/dom/Range/deleteContents-doctype.html (right): https://codereview.chromium.org/451403002/diff/100001/LayoutTests/fast/dom/Range/deleteContents-doctype.html#newcode1 LayoutTests/fast/dom/Range/deleteContents-doctype.html:1: <!doctype html> On 2014/08/13 ...
6 years, 4 months ago (2014-08-13 04:49:28 UTC) #21
kangil_
The CQ bit was checked by kangil.han@samsung.com
6 years, 4 months ago (2014-08-13 04:49:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kangil.han@samsung.com/451403002/120001
6 years, 4 months ago (2014-08-13 04:50:40 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-13 05:58:50 UTC) #24
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 06:30:55 UTC) #25
Message was sent while issue was closed.
Change committed as 180143

Powered by Google App Engine
This is Rietveld 408576698