Bug 154983

Summary: ComposedTreeIterator may traverse slotted nodes multiple times
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, esprehn+autocc, kangil.han, rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch rniwa: review+

Description Antti Koivisto 2016-03-03 14:59:22 PST
Traversal of slotted nodes can escape to real siblings. Those siblings are then traversed again as slotted nodes.
Comment 1 Antti Koivisto 2016-03-03 15:34:57 PST
Created attachment 272781 [details]
patch
Comment 2 Ryosuke Niwa 2016-03-03 15:54:28 PST
Comment on attachment 272781 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=272781&action=review

> LayoutTests/fast/shadow-dom/composed-tree-slots.html:1
> +<script>

Missing DOCTYPE.

> LayoutTests/fast/shadow-dom/composed-tree-slots.html:49
> +var console = document.querySelector("#console");

Can we use some other variable name to avoid shadowing window.console?
Comment 3 Antti Koivisto 2016-03-30 00:07:00 PDT
http://trac.webkit.org/changeset/197553