Bug 475542 - history/cache problem with view page source issuing a GET on an already POSTed form. r=gavin

This commit is contained in:
Curtis Bartley 2009-02-05 17:38:17 -05:00
Родитель 9043879337
Коммит df630ca9e8
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -232,10 +232,12 @@ function viewSource(url)
loadFromURL = false;
// Record the page load in the session history so <back> will work.
var shEntrySource = arg.QueryInterface(Ci.nsISHEntry);
var shEntry = Cc["@mozilla.org/browser/session-history-entry;1"].createInstance(Ci.nsISHEntry);
shEntry.setURI(makeURI(viewSrcUrl, null, null));
shEntry.setTitle(viewSrcUrl);
shEntry.loadType = Ci.nsIDocShellLoadInfo.loadHistory;
shEntry.cacheKey = shEntrySource.cacheKey;
getBrowser().webNavigation.sessionHistory
.QueryInterface(Ci.nsISHistoryInternal)
.addEntry(shEntry, true);