Bug 1206458 - Stop bypassing the cache (and service workers) when reloading content in Fennec; r=margaret

This commit is contained in:
Ehsan Akhgari 2015-09-23 17:52:20 -04:00
Родитель a69598b275
Коммит 6ca32d9dc4
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -1712,7 +1712,7 @@ var BrowserApp = {
break;
case "Session:Reload": {
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY | Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY;
// Check to see if this is a message to enable/disable mixed content blocking.
if (aData) {
@ -3602,8 +3602,7 @@ Tab.prototype = {
return;
let url = currentURI.spec;
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE |
Ci.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY;
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY;
if (this.originalURI && !this.originalURI.equals(currentURI)) {
// We were redirected; reload the original URL
url = this.originalURI.spec;