summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-03-15 18:22:44 -0400
committerKris Maglione <maglione.k@gmail.com>2011-03-15 18:22:44 -0400
commitafbe7039851bc627396a33b666d34bb437572b47 (patch)
treec9eaf37e3b8ed4569755deba74bcc7df240cd306 /common/content/tabs.js
parenta0ca379cfddde5b88007211d6f6ebdf9748f7409 (diff)
downloadpentadactyl-afbe7039851bc627396a33b666d34bb437572b47.tar.gz
Make userContext a proper Context.
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js19
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);
+ }
+ });
},
/**