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

Issue 20042003: compareDocumentPosition() should report PRECEEDING or FOLLOWING information even if nodes are disco… (Closed)

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

Description

compareDocumentPosition() should report PRECEEDING or FOLLOWING information even if nodes are disconnected As per the latest specification, compareDocumentPosition() should report PRECEEDING or FOLLOWING information even if nodes are disconnected: - http://dom.spec.whatwg.org/#dom-node-comparedocumentposition This behavior is consistent with both IE10 and Firefox 22. Blink was not reporting PRECEEDING or FOLLOWING in all cases. This patches makes Blink behave as expected. BUG=263340 R=arv@chromium.org, haraken@chromium.org, tkent@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154835 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154908

Patch Set 1 #

Patch Set 2 : Fix 2 shadow dom tests #

Patch Set 3 : Rebaseline nodecomparedocumentposition38.xhtml #

Total comments: 1

Patch Set 4 : Add failing test to TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -25 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition38-expected.txt View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/fast/dom/compare-document-position-disconnected-nodes.html View 1 chunk +29 lines, -8 lines 0 comments Download
M LayoutTests/fast/dom/compare-document-position-disconnected-nodes-expected.txt View 1 chunk +49 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/shadow/compare-document-position.html View 1 1 chunk +9 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/shadow/compare-document-position-expected.txt View 1 1 chunk +8 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/shadow/compare-treescope-position.html View 1 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/compare-treescope-position-expected.txt View 1 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 3 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
do-not-use
7 years, 5 months ago (2013-07-23 12:49:52 UTC) #1
arv (Not doing code reviews)
LGTM
7 years, 5 months ago (2013-07-23 17:10:45 UTC) #2
haraken
LGTM.
7 years, 5 months ago (2013-07-24 00:51:35 UTC) #3
tkent
The behavior change sounds reasonable. But the test dom/xhtml/level3/core/nodecomparedocumentposition38.xhtml is failing.
7 years, 5 months ago (2013-07-24 00:53:43 UTC) #4
do-not-use
On 2013/07/24 00:53:43, tkent wrote: > The behavior change sounds reasonable. But the test > ...
7 years, 5 months ago (2013-07-24 06:57:54 UTC) #5
tkent
ok, lgtm
7 years, 5 months ago (2013-07-24 06:59:13 UTC) #6
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/20042003/10001
7 years, 5 months ago (2013-07-24 07:09:21 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=14461
7 years, 5 months ago (2013-07-24 10:14:14 UTC) #8
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/20042003/10001
7 years, 5 months ago (2013-07-24 11:50:55 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=14499
7 years, 5 months ago (2013-07-24 13:36:00 UTC) #10
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/20042003/10001
7 years, 5 months ago (2013-07-24 14:08:44 UTC) #11
do-not-use
Committed patchset #3 manually as r154835 (presubmit successful).
7 years, 5 months ago (2013-07-24 15:17:02 UTC) #12
adamk
This is causing flakiness on various platforms due to pointer comparisons, see the flakiness dashboard: ...
7 years, 5 months ago (2013-07-24 22:22:14 UTC) #13
do-not-use
Reopening as it was rolled out. I'll investigate the flakiness.
7 years, 5 months ago (2013-07-25 06:38:32 UTC) #14
do-not-use
Ok, found the reason. It affects the following test (that I rebased) LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition38.xhtml The elements ...
7 years, 5 months ago (2013-07-25 06:46:46 UTC) #15
tkent
Is it ok to have pointer comparisons which adamk pointed out?
7 years, 5 months ago (2013-07-25 06:52:04 UTC) #16
do-not-use
On 2013/07/25 06:52:04, tkent wrote: > Is it ok to have pointer comparisons which adamk ...
7 years, 5 months ago (2013-07-25 07:03:56 UTC) #17
tkent
Wow, it's scary specification!
7 years, 5 months ago (2013-07-25 07:09:24 UTC) #18
do-not-use
On 2013/07/25 07:09:24, tkent wrote: > Wow, it's scary specification! Note that I looked at ...
7 years, 5 months ago (2013-07-25 07:12:37 UTC) #19
do-not-use
On 2013/07/25 07:12:37, Christophe Dumez wrote: > On 2013/07/25 07:09:24, tkent wrote: > > Wow, ...
7 years, 5 months ago (2013-07-25 07:19:31 UTC) #20
tkent
lgtm. please go ahead.
7 years, 5 months ago (2013-07-25 07:42:28 UTC) #21
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/20042003/43001
7 years, 5 months ago (2013-07-25 07:43:49 UTC) #22
commit-bot: I haz the power
Change committed as 154908
7 years, 5 months ago (2013-07-25 08:57:16 UTC) #23
arv (Not doing code reviews)
Wow, that pointer comparison is actually crazy. Can we file a bug to the relevant ...
7 years, 5 months ago (2013-07-25 18:59:28 UTC) #24
adamk
The pointer-comparison recommendation in the spec is non-normative; the spec only requires that the comparison ...
7 years, 5 months ago (2013-07-25 19:05:04 UTC) #25
erikcorry
7 years, 3 months ago (2013-08-27 11:14:48 UTC) #26
FWIW Oilpan doesn't move objects, and it probably never will.

On the other hand it's a good security policy not to reveal the addresses
of objects, and this gives the attacker a hint so it feels unhealthy.


On Thu, Jul 25, 2013 at 9:05 PM, Adam Klein <adamk@chromium.org> wrote:

> The pointer-comparison recommendation in the spec is non-normative; the
> spec only requires that the comparison be stable (which this pointer
> comparison wouldn't be if we moved to a managed heap with a compacting
> garbage collector).
>
>
> On Thu, Jul 25, 2013 at 11:59 AM, Erik Arvidsson <arv@chromium.org> wrote:
>
>> Wow, that pointer comparison is actually crazy. Can we file a bug to
>> the relevant spec?
>>
>> On Thu, Jul 25, 2013 at 1:57 AM,  <commit-bot@chromium.org> wrote:
>> > Change committed as 154908
>> >
>> > https://chromiumcodereview.appspot.com/20042003/
>>
>>
>>
>> --
>> erik
>>
>
>


-- 
Erik Corry
Google Denmark ApS
Sankt Petri Passage 5, 2. sal
1165 København K - Denmark - CVR nr. 28 86 69 84

To unsubscribe from this group and stop receiving emails from it, send an email
to blink-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698