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

Issue 1308663003: The node and allowPartialContainment arguments for Selection API should not be optional (Closed)

Created:
5 years, 3 months ago by tanay.c
Modified:
5 years, 3 months ago
Reviewers:
philipj_slow
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

The node and allowPartialContainment arguments for Selection API should not be optional As per spec link http://w3c.github.io/selection-api/#idl-def-Selection these arguments should not be optional Firefox throws TypeError: Not enough arguments to Selection.containsNode, if arguments are missing. BUG=460722 Committed: https://crrev.com/ad5085931cd229c91c5d2905b2a67eef23ae442d git-svn-id: svn://svn.chromium.org/blink/trunk@202043 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M LayoutTests/editing/selection/containsNode.html View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M LayoutTests/editing/selection/containsNode-expected.txt View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/DOMSelection.cpp View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/editing/Selection.idl View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
tanay.c
Please have a look.
5 years, 3 months ago (2015-08-26 13:10:55 UTC) #2
tanay.c
Please have a look.
5 years, 3 months ago (2015-08-26 13:10:56 UTC) #3
philipj_slow
https://codereview.chromium.org/1308663003/diff/20001/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt File LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt (right): https://codereview.chromium.org/1308663003/diff/20001/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt#newcode12 LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt:12: PASS sel.containsNode(docType, false) is false Seeing this I think ...
5 years, 3 months ago (2015-08-27 09:15:32 UTC) #4
tanay.c
Thanks for the comments. I have made the changes as required. Could you please take ...
5 years, 3 months ago (2015-08-28 08:52:32 UTC) #5
philipj_slow
https://codereview.chromium.org/1308663003/diff/60001/LayoutTests/editing/selection/containsNode.html File LayoutTests/editing/selection/containsNode.html (left): https://codereview.chromium.org/1308663003/diff/60001/LayoutTests/editing/selection/containsNode.html#oldcode36 LayoutTests/editing/selection/containsNode.html:36: shouldBe('s.containsNode(null, false)', false); Instead of removing these tests, they ...
5 years, 3 months ago (2015-08-31 14:48:21 UTC) #6
tanay.c
Modified as per comments. PTAL https://codereview.chromium.org/1308663003/diff/60001/LayoutTests/editing/selection/containsNode.html File LayoutTests/editing/selection/containsNode.html (left): https://codereview.chromium.org/1308663003/diff/60001/LayoutTests/editing/selection/containsNode.html#oldcode36 LayoutTests/editing/selection/containsNode.html:36: shouldBe('s.containsNode(null, false)', false); On ...
5 years, 3 months ago (2015-09-01 10:58:09 UTC) #7
philipj_slow
LGTM, looks like DOMSelection::containsNode is called only from bindings so the new ASSERT should be ...
5 years, 3 months ago (2015-09-01 12:38:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308663003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308663003/80001
5 years, 3 months ago (2015-09-10 08:06:09 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=202043
5 years, 3 months ago (2015-09-10 09:13:17 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:09:01 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ad5085931cd229c91c5d2905b2a67eef23ae442d

Powered by Google App Engine
This is Rietveld 408576698