Bug 154570

Summary: Calling importNode on shadow root causes a crash
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: New BugsAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, cdumez, commit-queue, darin, esprehn+autocc, kangil.han, kling, koivisto, kondapallykalyan, rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fixes the bug
none
Uploaded the change log entries
none
Archive of layout-test-results from ews102 for mac-yosemite
none
Archive of layout-test-results from ews105 for mac-yosemite-wk2
none
Archive of layout-test-results from ews116 for mac-yosemite
none
Fixed the tests andersca: review+

Description Ryosuke Niwa 2016-02-22 17:43:21 PST
Calling cloneNode on shadow root causes a crash
Comment 1 Ryosuke Niwa 2016-02-22 17:43:44 PST
Created attachment 271974 [details]
Fixes the bug
Comment 2 Ryosuke Niwa 2016-02-22 17:48:26 PST
Created attachment 271975 [details]
Uploaded the change log entries
Comment 3 Ryosuke Niwa 2016-02-22 17:49:04 PST
https://bugs.webkit.org/show_bug.cgi?id=154570
Comment 4 Build Bot 2016-02-22 18:41:29 PST
Comment on attachment 271975 [details]
Uploaded the change log entries

Attachment 271975 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/869938

Number of test failures exceeded the failure limit.
Comment 5 Build Bot 2016-02-22 18:41:34 PST
Created attachment 271978 [details]
Archive of layout-test-results from ews102 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 6 Build Bot 2016-02-22 18:46:59 PST
Comment on attachment 271975 [details]
Uploaded the change log entries

Attachment 271975 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/869954

Number of test failures exceeded the failure limit.
Comment 7 Build Bot 2016-02-22 18:47:04 PST
Created attachment 271981 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 8 Build Bot 2016-02-22 18:52:23 PST
Comment on attachment 271975 [details]
Uploaded the change log entries

Attachment 271975 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/869939

Number of test failures exceeded the failure limit.
Comment 9 Build Bot 2016-02-22 18:52:28 PST
Created attachment 271982 [details]
Archive of layout-test-results from ews116 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 10 Ryosuke Niwa 2016-02-22 19:32:36 PST
Created attachment 271985 [details]
Fixed the tests
Comment 11 Ryosuke Niwa 2016-02-23 14:35:37 PST
Committed r196998: <http://trac.webkit.org/changeset/196998>
Comment 12 Darin Adler 2016-02-23 21:56:47 PST
Comment on attachment 271985 [details]
Fixed the tests

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

> Source/WebCore/dom/Node.h:205
>      Ref<Node> cloneNode(bool deep) { return cloneNodeInternal(document(), deep ? CloningOperation::Everything : CloningOperation::OnlySelf); }

Not so great to have this cloneNode that takes a boolean. For use inside WebKit as opposed to in the bindings should get rid of this and replace by calls have the "deep vs. not" in the names of the functions rather than using a boolean flag.