summaryrefslogtreecommitdiffstats
path: root/application/palemoon/modules/WindowsPreviewPerTab.jsm
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-04-07 12:33:16 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-04-07 12:33:16 -0400
commit45f3d2bf068f90b8a397bbada9b07dda7c831647 (patch)
treece09240fc4f06a3dc3c8dfed063144cd58b38dc5 /application/palemoon/modules/WindowsPreviewPerTab.jsm
parent03cf69df453c7d4e188259e4bfb7317e8e993a33 (diff)
downloadUXP-45f3d2bf068f90b8a397bbada9b07dda7c831647.tar
UXP-45f3d2bf068f90b8a397bbada9b07dda7c831647.tar.gz
UXP-45f3d2bf068f90b8a397bbada9b07dda7c831647.tar.lz
UXP-45f3d2bf068f90b8a397bbada9b07dda7c831647.tar.xz
UXP-45f3d2bf068f90b8a397bbada9b07dda7c831647.zip
[PALEMOON] Fix for loops in DownloadsCommon.jsm and WindowsPreviewPerTab.jsm
(SyntaxError: missing ] after element list)
Diffstat (limited to 'application/palemoon/modules/WindowsPreviewPerTab.jsm')
-rw-r--r--application/palemoon/modules/WindowsPreviewPerTab.jsm9
1 files changed, 8 insertions, 1 deletions
diff --git a/application/palemoon/modules/WindowsPreviewPerTab.jsm b/application/palemoon/modules/WindowsPreviewPerTab.jsm
index 41b38f0cf..e186bcad2 100644
--- a/application/palemoon/modules/WindowsPreviewPerTab.jsm
+++ b/application/palemoon/modules/WindowsPreviewPerTab.jsm
@@ -510,7 +510,14 @@ TabWindow.prototype = {
// Previews are internally stored using a map, so we need to iterate over
// the tabbrowser's array of tabs to retrieve previews in the same order.
- let inorder = [previews.get(t) for (t of tabs) if (previews.has(t))];
+ // Tycho: let inorder = [previews.get(t) for (t of tabs) if (previews.has(t))];
+ let inorder = [];
+
+ for (let t of tabs) {
+ if (previews.has(t)) {
+ inorder.push(previews.get(t));
+ }
+ }
// Since the internal taskbar array has not yet been updated, we must force
// the sorting order of our local array on it. To do so, we must walk