[webkit-changes] [WebKit/WebKit] c20d51: [DOM] For range.extractContents(), abort early if ...

David-Li-Jy noreply at github.com
Tue Mar 7 13:45:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c20d51c646be933823b7b50b3f9c1a4a36950fa7
      https://github.com/WebKit/WebKit/commit/c20d51c646be933823b7b50b3f9c1a4a36950fa7
  Author: David Li <jingye_li at apple.com>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    A LayoutTests/fast/dom/Range/range-commonroot-notfound-expected.txt
    A LayoutTests/fast/dom/Range/range-commonroot-notfound.html
    M Source/WebCore/dom/Range.cpp

  Log Message:
  -----------
  [DOM] For range.extractContents(), abort early if there's a doctype in range
https://bugs.webkit.org/show_bug.cgi?id=252805
rdar://103178567

Reviewed by Ryosuke Niwa.

Check if doctype is contained in range before start extracting contents,
if contained, return HierarchyRequestError.

* LayoutTests/fast/dom/Range/range-commonroot-notfound-expected.txt: Added.
* LayoutTests/fast/dom/Range/range-commonroot-notfound.html: Added.
* Source/WebCore/dom/Range.cpp:
(WebCore::Range::processContents):

Canonical link: https://commits.webkit.org/261342@main




More information about the webkit-changes mailing list