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

Unified Diff: Source/core/svg/SVGAElement.cpp

Issue 339593005: Set the target type when creating the request for main resource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Made the setter method private Created 6 years, 6 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: Source/core/svg/SVGAElement.cpp
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp
index baa6754333f2df2c96c64b2bb25728133f30bb5b..0c089dae1e6e8b0a90fecc0d6c1d8dadffb1d179 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -161,7 +161,9 @@ void SVGAElement::defaultEventHandler(Event* event)
LocalFrame* frame = document().frame();
if (!frame)
return;
- FrameLoadRequest frameRequest(&document(), ResourceRequest(document().completeURL(url)), target);
+ ResourceRequest request = ResourceRequest::createMainResourceRequest(
+ document().completeURL(url), frame->isMainFrame());
+ FrameLoadRequest frameRequest(&document(), request, target);
frameRequest.setTriggeringEvent(event);
frame->loader().load(frameRequest);
return;

Powered by Google App Engine
This is Rietveld 408576698