зеркало из https://github.com/mozilla/pjs.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:
Родитель
9043879337
Коммит
df630ca9e8
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче