iOS: Many AMP pages crash inside Document::updateStyleIfNeeded
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Dec 2017 23:25:04 +0000 (23:25 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Dec 2017 23:25:04 +0000 (23:25 +0000)
commit47e25c766a82b863617982b2ce8d1cead36d3e55
treeb9e11803ac69e8a95ce3abfce9d2b130f16dc414
parent4d6a1bae9fa13b10c7fe54399ab7cb2e4a4c6ff7
iOS: Many AMP pages crash inside Document::updateStyleIfNeeded
https://bugs.webkit.org/show_bug.cgi?id=180550
<rdar://problem/35410390>

Reviewed by Zalan Bujtas.

The crash was caused when updatign the layout of an non-flattened frame inside a flattened frame.
In those cases, isInChildFrameWithFrameFlattening is false on the inner frame.

No new tests for now.

* dom/NoEventDispatchAssertion.h:
* rendering/RenderFrameBase.cpp:
(WebCore::RenderFrameBase::performLayoutWithFlattening): Disable the assertion temporarily here.
In theory, we should be able to remove the check for isInChildFrameWithFrameFlattening but we err
on the safer side for now.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/NoEventDispatchAssertion.h
Source/WebCore/rendering/RenderFrameBase.cpp