зеркало из https://github.com/mozilla/gecko-dev.git
Bug 475542 - history/cache problem with view page source issuing a GET on an already POSTed form. r=gavin
This commit is contained in:
Родитель
6d5b61eafb
Коммит
7ae7d77cc0
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче