[webkit-changes] [WebKit/WebKit] 2e2c96: WebKit crash-looping under WebCore::interactionReg...

Tim Horton noreply at github.com
Wed Dec 21 15:52:39 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2e2c969c2b7366c45ae5c2f2c1768944c498204b
      https://github.com/WebKit/WebKit/commit/2e2c969c2b7366c45ae5c2f2c1768944c498204b
  Author: Tim Horton <thorton at apple.com>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

  Changed paths:
    M Source/WebCore/page/InteractionRegion.cpp

  Log Message:
  -----------
  WebKit crash-looping under WebCore::interactionRegionForRenderedRegion after 256432 at main
https://bugs.webkit.org/show_bug.cgi?id=249744
rdar://103465057

Reviewed by Wenson Hsieh.

* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::interactionRegionForRenderedRegion):
Avoid dereferencing `element` if it is null. Both of these assignments
change `element` but only if they find nonnull parents to ascend to, so we
don't need to duplicate the check, we can just move it upwards.

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




More information about the webkit-changes mailing list