[ContentChangeObserver] Skip anonymous renderers when checking for "willRespondToMous...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 17:27:05 +0000 (17:27 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 17:27:05 +0000 (17:27 +0000)
commit0cd72fdc2747fe24a181e42c3924d6f20f5bb3d1
treea2bf813a9d8cfcf9dac7871c31cea33d73373228
parent902595a6ca4b7997e66776538ea6e634452b7f43
[ContentChangeObserver] Skip anonymous renderers when checking for "willRespondToMouseClickEvents"
https://bugs.webkit.org/show_bug.cgi?id=196259
<rdar://problem/49240029>

Reviewed by Dean Jackson.

Source/WebCore:

Anonymous renderers don't have associated DOM nodes so they can't have event listeners either. Let's skip them.

Test: fast/events/touch/ios/content-observation/crash-on-anonymous-renderer.html

* page/ios/ContentChangeObserver.cpp:
(WebCore::ContentChangeObserver::StyleChangeScope::isConsideredClickable const):

LayoutTests:

* fast/events/touch/ios/content-observation/crash-on-anonymous-renderer-expected.txt: Added.
* fast/events/touch/ios/content-observation/crash-on-anonymous-renderer.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/touch/ios/content-observation/crash-on-anonymous-renderer-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/content-observation/crash-on-anonymous-renderer.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/ios/ContentChangeObserver.cpp