Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: third_party/WebKit/Source/core/loader/NavigationScheduler.cpp

Issue 1983913002: Test to see if we can bring in document data from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebLocalFrameImpl::loadData Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
diff --git a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
index ccb0ab41139fe53b31ea4c5cfdef5c7c3d488b1e..f046e13d99122f71c39447eb2c3cda86f3bd2c26 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
@@ -173,9 +173,9 @@ private:
class ScheduledReload final : public ScheduledNavigation {
public:
- static ScheduledReload* create()
+ static ScheduledReload* create(Document* originDocument)
{
- return new ScheduledReload;
+ return new ScheduledReload(originDocument);
}
void fire(LocalFrame* frame) override
@@ -184,14 +184,14 @@ public:
ResourceRequest resourceRequest = frame->loader().resourceRequestForReload(FrameLoadTypeReload, KURL(), ClientRedirectPolicy::ClientRedirect);
if (resourceRequest.isNull())
return;
- FrameLoadRequest request = FrameLoadRequest(nullptr, resourceRequest);
+ FrameLoadRequest request = FrameLoadRequest(originDocument(), resourceRequest);
request.setClientRedirect(ClientRedirectPolicy::ClientRedirect);
frame->loader().load(request, FrameLoadTypeReload);
}
private:
- ScheduledReload()
- : ScheduledNavigation(0.0, nullptr, true, true)
+ ScheduledReload(Document* originDocument)
+ : ScheduledNavigation(0.0, originDocument, true, true)
{
}
};
@@ -378,7 +378,7 @@ void NavigationScheduler::scheduleReload()
return;
if (m_frame->document()->url().isEmpty())
return;
- schedule(ScheduledReload::create());
+ schedule(ScheduledReload::create(m_frame->document()));
}
void NavigationScheduler::navigateTask()
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoaderClient.h ('k') | third_party/WebKit/Source/core/page/CreateWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698