Permalink
Browse files

Bug 676780 - Fennec is unable to load webpages and close tabs [r=mbru…

…beck, a=drivers]
  • Loading branch information...
1 parent b999b00 commit cf5e6523b2dc9e18b366884adb6032a09e5c3b51 @mfinkle mfinkle committed Aug 10, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mobile/components/SessionStore.js
View
5 mobile/components/SessionStore.js
@@ -677,8 +677,11 @@ SessionStore.prototype = {
let window = Services.wm.getMostRecentWindow("navigator:browser");
- let selected = data.windows[0].selected;
let tabs = data.windows[0].tabs;
+ let selected = data.windows[0].selected;
+ if (selected > tabs.length)
+ selected = 1;
+
for (let i=0; i<tabs.length; i++) {
let tabData = tabs[i];

0 comments on commit cf5e652

Please sign in to comment.