Bug 1213267 - Fix view-source address. r=bz ba=lizzard, a=lizzard
authorDragana Damjanovic <dd.mozilla@gmail.com>
Mon, 12 Oct 2015 02:08:00 -0400
changeset 296695 d8c7509ddad0
parent 296694 23d25d9a94d7
child 296696 9669bc030ba7
push id5293
push usercbook@mozilla.com
push date2015-11-11 10:29 +0000
treeherdermozilla-beta@d8c7509ddad0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, lizzard
bugs1213267
milestone43.0
Bug 1213267 - Fix view-source address. r=bz ba=lizzard, a=lizzard
docshell/base/nsDocShell.cpp
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -5476,16 +5476,17 @@ nsDocShell::LoadPage(nsISupports* aPageD
     newSpec.AppendLiteral("view-source:");
     newSpec.Append(spec);
 
     rv = NS_NewURI(getter_AddRefs(newUri), newSpec);
     if (NS_FAILED(rv)) {
       return rv;
     }
     shEntry->SetURI(newUri);
+    shEntry->SetOriginalURI(nullptr);
   }
 
   rv = LoadHistoryEntry(shEntry, LOAD_HISTORY);
   return rv;
 }
 
 NS_IMETHODIMP
 nsDocShell::GetCurrentDescriptor(nsISupports** aPageDescriptor)