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

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: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 89f35b6ecb9be583578c026861e89727d203965e..4c8f6cb4bf57bede8b1f79058dc960a44305beb9 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -1204,6 +1204,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(GURL());
Charlie Reis 2016/11/17 23:04:24 Hmm, I'm not sure this is safe. There are other p
afakhry 2016/11/19 01:49:29 Yes, it gets set again later as a result of receiv
// Do not restore scroller position.
last_committed_entry->SetPageState(page_state.RemoveScrollOffset());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698