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

Unified Diff: content/browser/download/save_package.cc

Issue 1442733002: Save-Page-As-Complete-Html: Fixing how links are rewritten in subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multi-frame-tests
Patch Set: Fixed the name of a test. Created 5 years, 1 month 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: content/browser/download/save_package.cc
diff --git a/content/browser/download/save_package.cc b/content/browser/download/save_package.cc
index 4a24c4138d9ddc2c3fb507c14f19378d560bbfbf..8c05e8bedac921bc470f5942cc424c7ee6287e72 100644
--- a/content/browser/download/save_package.cc
+++ b/content/browser/download/save_package.cc
@@ -1085,11 +1085,14 @@ void SavePackage::GetSerializedHtmlWithLocalLinksForFrame(
}
}
+ base::FilePath directory = target_tree_node->IsMainFrame()
+ ? saved_main_directory_path_.BaseName()
+ : base::FilePath();
+
// Ask target frame to serialize itself.
RenderFrameHostImpl* target = target_tree_node->current_frame_host();
target->Send(new FrameMsg_GetSerializedHtmlWithLocalLinks(
- target->GetRoutingID(), saved_links, saved_file_paths,
- saved_main_directory_path_.BaseName()));
+ target->GetRoutingID(), saved_links, saved_file_paths, directory));
}
// Process the serialized HTML content data of a specified frame

Powered by Google App Engine
This is Rietveld 408576698