Index: third_party/WebKit/Source/core/page/Page.cpp |
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp |
index f82f7cea97ff15d102c421be69abde8152c55461..4d02c07212e8cb7ff3584b6864bc7a263eb9aaff 100644 |
--- a/third_party/WebKit/Source/core/page/Page.cpp |
+++ b/third_party/WebKit/Source/core/page/Page.cpp |
@@ -46,6 +46,7 @@ |
#include "core/page/DragController.h" |
#include "core/page/FocusController.h" |
#include "core/page/PointerLockController.h" |
+#include "core/page/ScopedPageLoadDeferrer.h" |
#include "core/page/ValidationMessageClient.h" |
#include "core/page/scrolling/ScrollingCoordinator.h" |
#include "core/paint/PaintLayer.h" |
@@ -104,6 +105,8 @@ Page* Page::createOrdinary(PageClients& pageClients) |
{ |
Page* page = create(pageClients); |
ordinaryPages().add(page); |
+ if (ScopedPageLoadDeferrer::isActive()) |
+ page->setDefersLoading(true); |
return page; |
} |