Crash under _layoutForNodeHighlight: when inspecting espn.com
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Jun 2015 22:00:36 +0000 (22:00 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Jun 2015 22:00:36 +0000 (22:00 +0000)
commit19597c2ac53b4776318c3e94174f2b12667aaf0f
tree9885d11e104d4bf58bb04e81acc660d625b4c57e
parent77b377589e2fa5a7469354129d7bc63f5c2fdc8f
Crash under _layoutForNodeHighlight: when inspecting espn.com
https://bugs.webkit.org/show_bug.cgi?id=146422

Reviewed by Joseph Pecoraro.
Source/WebKit/mac:

When inspecting espn.com, MobileSafari sometimes crashes, because
highlight.quads is empty. I was not able to quickly determine why.

Fix by bailing in this case.

* WebInspector/WebNodeHighlightView.mm:
(-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):

Source/WebKit2:

When inspecting espn.com, MobileSafari sometimes crashes, because
highlight.quads is empty. I was not able to quickly determine why.

Fix by bailing in this case.

* UIProcess/WKInspectorHighlightView.mm:
(-[WKInspectorHighlightView _layoutForNodeHighlight:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebInspector/WebNodeHighlightView.mm
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/WKInspectorHighlightView.mm