Bug 148454 - Range.detach() / NodeIterator.detach() should be no-ops as per the latest DOM specification
Summary: Range.detach() / NodeIterator.detach() should be no-ops as per the latest DOM...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar, WebExposed
Depends on:
Blocks:
 
Reported: 2015-08-25 16:50 PDT by Chris Dumez
Modified: 2015-09-02 13:39 PDT (History)
12 users (show)

See Also:


Attachments
Patch (158.80 KB, patch)
2015-08-25 22:33 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (163.04 KB, patch)
2015-08-25 23:06 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (163.05 KB, patch)
2015-08-26 07:37 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (166.83 KB, patch)
2015-08-26 08:57 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (170.47 KB, patch)
2015-08-26 09:16 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (171.04 KB, patch)
2015-08-26 09:41 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (184.02 KB, patch)
2015-08-26 10:12 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (183.95 KB, patch)
2015-08-26 10:25 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (241.76 KB, patch)
2015-08-31 11:24 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (241.73 KB, patch)
2015-08-31 11:35 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (241.73 KB, patch)
2015-08-31 11:39 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-mavericks (960.06 KB, application/zip)
2015-08-31 12:15 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (1.08 MB, application/zip)
2015-08-31 12:29 PDT, Build Bot
no flags Details
Patch (605.49 KB, patch)
2015-08-31 12:53 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-08-25 16:50:32 PDT
Range.detach() / NodeIterator.detach() should be no-ops as per the latest DOM specification:
https://dom.spec.whatwg.org/#dom-range-detach
https://dom.spec.whatwg.org/#dom-nodeiterator-detach

These are already no-ops in Firefox and Chrome.

W3C test suites:
http://w3c-test.org/dom/ranges/Range-compareBoundaryPoints.html
http://w3c-test.org/dom/traversal/NodeIterator.html
Comment 1 Chris Dumez 2015-08-25 19:36:14 PDT
Range.detach is a no-op in Firefox since v15:
- https://bugzilla.mozilla.org/show_bug.cgi?id=702948

Range.detach is a no-op in Chrome since April 2014:
- https://src.chromium.org/viewvc/blink?revision=173010&view=revision

NodeIterator.detach is a no-op in Firefox since v22:
- https://bugzilla.mozilla.org/show_bug.cgi?id=823549

NodeIterator.detach is a no-op in Chrome since April 2014:
- https://src.chromium.org/viewvc/blink?revision=172768&view=revision
Comment 2 Chris Dumez 2015-08-25 22:33:46 PDT
Created attachment 259927 [details]
Patch
Comment 3 Chris Dumez 2015-08-25 23:06:49 PDT
Created attachment 259932 [details]
Patch
Comment 4 Chris Dumez 2015-08-26 07:37:22 PDT
Created attachment 259948 [details]
Patch
Comment 5 Chris Dumez 2015-08-26 08:57:48 PDT
Created attachment 259956 [details]
Patch
Comment 6 Chris Dumez 2015-08-26 09:16:13 PDT
Created attachment 259957 [details]
Patch
Comment 7 Chris Dumez 2015-08-26 09:41:03 PDT
Created attachment 259959 [details]
Patch
Comment 8 Chris Dumez 2015-08-26 10:12:19 PDT
Created attachment 259961 [details]
Patch
Comment 9 Chris Dumez 2015-08-26 10:25:02 PDT
Created attachment 259962 [details]
Patch
Comment 10 Chris Dumez 2015-08-30 20:42:36 PDT
ping review?
Comment 11 Ryosuke Niwa 2015-08-31 09:19:51 PDT
Comment on attachment 259962 [details]
Patch

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

> Source/WebCore/dom/Range.cpp:1718
> +    startContainer().formatForDebugger(s, FormatBufferSize);
> +    result.append(s);

We should clean up this mess in a separate patch...
Comment 12 Chris Dumez 2015-08-31 11:24:13 PDT
Created attachment 260297 [details]
Patch
Comment 13 Chris Dumez 2015-08-31 11:35:44 PDT
Created attachment 260299 [details]
Patch
Comment 14 WebKit Commit Bot 2015-08-31 11:38:44 PDT
Comment on attachment 260299 [details]
Patch

Rejecting attachment 260299 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'validate-changelog', '--check-oops', '--non-interactive', 260299, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

ChangeLog entry in Source/WebKit2/ChangeLog contains OOPS!.

Full output: http://webkit-queues.webkit.org/results/126997
Comment 15 Chris Dumez 2015-08-31 11:39:44 PDT
Created attachment 260301 [details]
Patch
Comment 16 Build Bot 2015-08-31 12:15:12 PDT
Comment on attachment 260301 [details]
Patch

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

New failing tests:
http/tests/w3c/dom/ranges/Range-compareBoundaryPoints.html
http/tests/w3c/dom/ranges/Range-isPointInRange.html
Comment 17 Build Bot 2015-08-31 12:15:16 PDT
Created attachment 260304 [details]
Archive of layout-test-results from ews102 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 18 Build Bot 2015-08-31 12:29:50 PDT
Comment on attachment 260301 [details]
Patch

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

New failing tests:
http/tests/w3c/dom/ranges/Range-compareBoundaryPoints.html
http/tests/w3c/dom/ranges/Range-isPointInRange.html
Comment 19 Build Bot 2015-08-31 12:29:54 PDT
Created attachment 260306 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 20 Chris Dumez 2015-08-31 12:53:45 PDT
Created attachment 260309 [details]
Patch
Comment 21 WebKit Commit Bot 2015-08-31 13:42:11 PDT
Comment on attachment 260309 [details]
Patch

Clearing flags on attachment: 260309

Committed r189182: <http://trac.webkit.org/changeset/189182>
Comment 22 WebKit Commit Bot 2015-08-31 13:42:21 PDT
All reviewed patches have been landed.  Closing bug.
Comment 23 Chris Dumez 2015-09-02 13:39:50 PDT
rdar://problem/22544809