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

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 2501083004: Fix View Frame Source for iframe of a file:// URL shows main frame's filename (Closed)
Patch Set: Excluding test in site-per-process Created 4 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: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index e0269a8b693726b4c3e80e3dfd607876ad2fd6fd..d0066faf760efc4aaa917cd6b7becb1baf9fff6e 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -1234,6 +1234,7 @@ void ViewSource(Browser* browser,
GURL view_source_url =
GURL(content::kViewSourceScheme + std::string(":") + url.spec());
last_committed_entry->SetVirtualURL(view_source_url);
+ last_committed_entry->SetURL(url);
// Do not restore scroller position.
last_committed_entry->SetPageState(page_state.RemoveScrollOffset());
« no previous file with comments | « chrome/browser/chrome_navigation_browsertest.cc ('k') | testing/buildbot/filters/site-per-process.browser_tests.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698