Bug#828159: firefox-esr: session tabs lost after upgrade from iceweasel to firefox-esr

2016-07-30 Thread François Revol
I also have had trouble for a while restoring session when quitting
properly, although killing Firefox instead usually seems to restore
correctly.

Trying to copy either the session.js or some .bak files as restore.js
usually works.


After cleaning up the 800 tabs in one window, I've quit it correctly,
but it consistently failed to restore one of the windows, with more than
1200 tabs (I know, it's a bad idea), openning it with just empty tabs.
The other windows restored fine though.

I ended up using python to split the tabs to several windows.
600 tabs per windows seemed fine at first, but there were still some
empty tabs. 300 seems to work fine.

Here is how I did it:

$ cd ~/.mozilla/firefox/*.default/sessionstore-backups
$ cp recovery.bak.001 recovery.js
$ python
> import json
>>> s=json.loads(open("recovery.js", "rb").read())
>>> for l in s['windows']:
... len(l['tabs'])
...
44
1257
5
>>> s['windows'].append({})
>>> s['windows'].append({})
>>> s['windows'].append({})
>>> for k in s['windows'][1].keys():
... s['windows'][3][k] = s['windows'][1][k]
... s['windows'][4][k] = s['windows'][1][k]
... s['windows'][5][k] = s['windows'][1][k]
...
>>> for l in s['windows']:
... len(l['tabs'])
...
44
1257
5
1257
1257
1257
>>> t = s['windows'][1]['tabs']
>>> s['windows'][1]['tabs'] = t[0:300]
>>> s['windows'][3]['tabs'] = t[300:600]
>>> s['windows'][4]['tabs'] = t[600:900]
>>> s['windows'][5]['tabs'] = t[900:]
>>> for l in s['windows']:
... len(l['tabs'])
...
44
300
5
300
300
357
>>> open("recovery.js", "wb").write(json.dumps(s))



Bug#828159: firefox-esr: session tabs lost after upgrade from iceweasel to firefox-esr

2016-06-25 Thread Nils Dagsson Moskopp
Package: firefox-esr
Version: 45.2.0esr-1
Severity: grave
Justification: causes non-serious data loss

Dear Maintainer,

I updated from Iceweasel to Firefox ESR and after restarting, my old tabs were 
lost.

The session tabs appear to be still saved in sessionstore.bak in the profile 
folder.
However, I have no idea how to make Firefox ESR use that file.

-- Package-specific info:

-- Extensions information
Name: Default theme
Location: 
/usr/lib/firefox-esr/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
Package: firefox-esr
Status: enabled

Name: Firefox Hello Beta
Location: ${PROFILE_EXTENSIONS}/l...@mozilla.org.xpi
Status: enabled

Name: NoScript
Location: 
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{73a6fe31-595d-460b-a920-fcc0f8843232}
Package: xul-ext-noscript
Status: enabled

Name: Tree Style Tab
Location: 
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/treestyle...@piro.sakura.ne.jp
Package: xul-ext-treestyletab
Status: enabled

-- Plugins information

-- Addons package information
ii  firefox-esr45.2.0esr-1  i386 Mozilla Firefox web browser - Ext
ii  xul-ext-noscri 2.6.9.30-1   all  permissions manager for Iceweasel
ii  xul-ext-treest 0.15.2015030 all  Show browser tabs like a tree

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.13-1-686-pae (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages firefox-esr depends on:
ii  debianutils   4.5.1
ii  fontconfig2.11.0-6.3
ii  libasound21.0.29-1
ii  libatk1.0-0   2.16.0-2
ii  libc6 2.19-19
ii  libcairo2 1.14.2-2
ii  libdbus-1-3   1.10.4-1
ii  libdbus-glib-1-2  0.102-1
ii  libevent-2.0-52.0.21-stable-2
ii  libffi6   3.2.1-3
ii  libfontconfig12.11.0-6.3
ii  libfreetype6  2.5.2-4
ii  libgcc1   1:4.9.2-10
ii  libgdk-pixbuf2.0-02.31.5-1
ii  libglib2.0-0  2.46.2-3
ii  libgtk2.0-0   2.24.28-1
ii  libhunspell-1.4-0 1.4.1-2
ii  libnspr4  2:4.10.8-2
ii  libnss3   2:3.19.2-1
ii  libpango-1.0-01.40.1-1
ii  libsqlite3-0  3.8.10.2-1
ii  libstartup-notification0  0.12-4
ii  libstdc++65.2.1-17
ii  libvpx3   1.5.0-2
ii  libx11-6  2:1.6.3-1
ii  libxcomposite11:0.4.4-1
ii  libxdamage1   1:1.1.4-2+b1
ii  libxext6  2:1.3.3-1
ii  libxfixes31:5.0.1-2+b2
ii  libxrender1   1:0.9.8-1+b1
ii  libxt61:1.1.4-1+b1
ii  procps2:3.3.9-9
ii  zlib1g1:1.2.8.dfsg-2+b1

Versions of packages firefox-esr recommends:
ii  gstreamer1.0-libav 1.4.5-3
ii  gstreamer1.0-plugins-good  1.8.1-1

Versions of packages firefox-esr suggests:
ii  fonts-lmodern  2.004.4-5
pn  fonts-stix | otf-stix  
ii  libcanberra0   0.30-2.1
ii  libgnomeui-0   2.24.5-3
ii  libgssapi-krb5-2   1.12.1+dfsg-20
pn  mozplugger 

-- no debconf information