[webkit-changes] [WebKit/WebKit] 82d7f7: Nullptr crash with :has(~sibling) invalidation in ...

Antti Koivisto noreply at github.com
Wed Aug 30 08:45:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 82d7f771ca51303270401ea3f5438bd0d7687d37
      https://github.com/WebKit/WebKit/commit/82d7f771ca51303270401ea3f5438bd0d7687d37
  Author: Antti Koivisto <antti at apple.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    A LayoutTests/fast/has-sibling-without-parent-crash-expected.html
    A LayoutTests/fast/has-sibling-without-parent-crash.html
    M Source/WebCore/style/StyleInvalidator.cpp

  Log Message:
  -----------
  Nullptr crash with :has(~sibling) invalidation in shadow tree
https://bugs.webkit.org/show_bug.cgi?id=260902
rdar://110129945

Reviewed by Chris Dumez.

* LayoutTests/fast/has-sibling-without-parent-crash-expected.html: Added.
* LayoutTests/fast/has-sibling-without-parent-crash.html: Added.
* Source/WebCore/style/StyleInvalidator.cpp:
(WebCore::Style::Invalidator::invalidateStyleWithMatchElement):

Elements with siblings don't have a parent element when they are parented to a shadow root.

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




More information about the webkit-changes mailing list