diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-03-15 18:22:44 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-03-15 18:22:44 -0400 |
commit | afbe7039851bc627396a33b666d34bb437572b47 (patch) | |
tree | c9eaf37e3b8ed4569755deba74bcc7df240cd306 /common/content/tabs.js | |
parent | a0ca379cfddde5b88007211d6f6ebdf9748f7409 (diff) | |
download | pentadactyl-afbe7039851bc627396a33b666d34bb437572b47.tar.gz |
Make userContext a proper Context.
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r-- | common/content/tabs.js | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js index efb44b43..0c6abfe1 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -375,19 +375,14 @@ var Tabs = Module("tabs", { * reloading. */ reloadAll: function (bypassCache) { - if (bypassCache) { - for (let i = 0; i < config.tabbrowser.mTabs.length; i++) { - try { - this.reload(config.tabbrowser.mTabs[i], bypassCache); - } - catch (e) { - // FIXME: can we do anything useful here without stopping the - // other tabs from reloading? - } + this.visibleTabs.forEach(function (tab) { + try { + this.reload(config.tabbrowser.mTabs[i], bypassCache); } - } - else - config.tabbrowser.reloadAllTabs(); + catch (e) { + dactyl.reportError(e, true); + } + }); }, /** |