Title: [216196] trunk/Source/WebCore
- Revision
- 216196
- Author
- [email protected]
- Date
- 2017-05-04 11:27:08 -0700 (Thu, 04 May 2017)
Log Message
Should never hit layout while updating the render tree.
https://bugs.webkit.org/show_bug.cgi?id=171643
Reviewed by Antti Koivisto.
Laying out a half-baked render tree is not a great idea. Especially considering
that layout (sadly) can mutate the render tree.
* page/FrameView.cpp:
(WebCore::FrameView::layout):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (216195 => 216196)
--- trunk/Source/WebCore/ChangeLog 2017-05-04 18:25:39 UTC (rev 216195)
+++ trunk/Source/WebCore/ChangeLog 2017-05-04 18:27:08 UTC (rev 216196)
@@ -1,3 +1,16 @@
+2017-05-04 Zalan Bujtas <[email protected]>
+
+ Should never hit layout while updating the render tree.
+ https://bugs.webkit.org/show_bug.cgi?id=171643
+
+ Reviewed by Antti Koivisto.
+
+ Laying out a half-baked render tree is not a great idea. Especially considering
+ that layout (sadly) can mutate the render tree.
+
+ * page/FrameView.cpp:
+ (WebCore::FrameView::layout):
+
2017-05-04 Daniel Bates <[email protected]>
importScripts() should respect X-Content-Type-Options: nosniff
Modified: trunk/Source/WebCore/page/FrameView.cpp (216195 => 216196)
--- trunk/Source/WebCore/page/FrameView.cpp 2017-05-04 18:25:39 UTC (rev 216195)
+++ trunk/Source/WebCore/page/FrameView.cpp 2017-05-04 18:27:08 UTC (rev 216196)
@@ -1288,6 +1288,8 @@
void FrameView::layout(bool allowSubtree)
{
+ ASSERT_WITH_SECURITY_IMPLICATION(!frame().document()->inRenderTreeUpdate());
+
LOG(Layout, "FrameView %p (%dx%d) layout, main frameview %d, allowSubtree=%d", this, size().width(), size().height(), frame().isMainFrame(), allowSubtree);
if (isInRenderTreeLayout()) {
LOG(Layout, " in layout, bailing");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes