summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-01-29 20:36:48 -0500
committerKris Maglione <maglione.k@gmail.com>2011-01-29 20:36:48 -0500
commitffba231f5637393b0125900ea989714ce5546a30 (patch)
treef8036887b0ada5b94dfe01e8cce6e51db0eb83d6 /common/content/tabs.js
parentcccb95e8079418b0cf85c43c512a6cf00a076648 (diff)
downloadpentadactyl-ffba231f5637393b0125900ea989714ce5546a30.tar.gz
Make :addons marginally functional on FF36.
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index 6766e388..49add59a 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -348,12 +348,15 @@ var Tabs = Module("tabs", {
* reloading.
*/
reload: function (tab, bypassCache) {
- if (bypassCache) {
- const flags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY | Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
- config.tabbrowser.getBrowserForTab(tab).reloadWithFlags(flags);
+ try {
+ if (bypassCache) {
+ const flags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY | Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
+ config.tabbrowser.getBrowserForTab(tab).reloadWithFlags(flags);
+ }
+ else
+ config.tabbrowser.reloadTab(tab);
}
- else
- config.tabbrowser.reloadTab(tab);
+ catch (e if !(e instanceof Error)) {}
},
/**