Page 1 of 2

I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 02:31
by galneon
Tab Groups no longer works, so without warning from the auto-updater, I just lost over 400 tabs from my session. KeePass integration is also gone as the newest version that worked with PM no longer loads at all. I've stuck around as long as I could.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 02:37
by fillerup
really sucks, but also partially your fault for being so careless.. lots of ways you could have prevented that

- making a backup of your profile prior to updating

- bookmarking your open tabs into a folder

- using Sessions Manager to save/restore your sessions

- using an addon (i forgot its name) to back up your list of open tabs into a text file at a set interval

anyway i think Basilisk or Waterfox would be suitable alternatives

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 02:39
by Isengrim
Tab Groups has not been intentionally deprecated. It just needs someone to update it. The original author is no longer reasonably able to do so.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 02:44
by galneon
fillerup wrote:really sucks, but also partially your fault for being so careless.. lots of ways you could have prevented that

- making a backup of your profile prior to updating

- bookmarking your open tabs into a folder

- using Sessions Manager to save/restore your sessions

- using an addon (i forgot its name) to back up your list of open tabs into a text file at a set interval

anyway i think Basilisk or Waterfox would be suitable alternatives
I back up everything nightly and I've just reverted, so only today's session changes were lost. I've worked around so much lost functionality over the years for the sake of supporting PM (which I've recommended to so many people), but at some point, I have to look at the lost time and productivity that has accumulated and conclude it's just not worth it. I'm not going to put anymore time into workarounds or compromises, all to further a mission that has evolved to the point where I no longer keep up with it.

Thanks for the suggestions--I will explore those alternatives (among others probably) tomorrow.

Anyway, it isn't like me to post an "I'm leaving" thread anywhere, so I won't prolong the annoyance for satisfied users any longer. :P

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 07:36
by fillerup
galneon wrote:I've worked around so much lost functionality over the years for the sake of supporting PM
same, but it's only with Pale Moon that i get the functionalities and privacy assurances that i don't have when using other browsers. did PM not provide any of that for you?

between the alternatives, Waterfox has the biggest pool of addons to draw from, so i think you'll be happy with it as a replacement. its longevity is not guaranteed though, and that combined with some quirks i found while using made me switch to Basilisk which i have been quite satisfied with for the past few months. PM 28 will be a powerhouse again when compatibility with some major addons are restored though.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 11:06
by therube
(Oh, I see, Tab Groups (Panorama) was a browser feature, not an extension.)

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 11:11
by Isengrim
therube wrote:(Oh, I see, Tab Groups (Panorama) was a browser feature, not an extension.)
It was a feature in Firefox that was later removed and converted to an extension by the Mozilla Team. The extension was ported to Pale Moon at some point.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 11:14
by Moonchild
Isengrim wrote:
therube wrote:(Oh, I see, Tab Groups (Panorama) was a browser feature, not an extension.)
It was a feature in Firefox that was later removed and converted to an extension by the Mozilla Team. The extension was ported to Pale Moon at some point.
Um no.
It was a feature in the browser but was removed by us before Mozilla did so, and my Tab Groups extension was created at that point in time. When Mozilla decided to remove the feature later on, someone else did the same thing for Firefox there. That extension was not ported to Pale Moon and is independent of our own efforts.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-18, 11:18
by Isengrim
Moonchild wrote:Um no.
It was a feature in the browser but was removed by us before Mozilla did so, and my Tab Groups extension was created at that point in time. When Mozilla decided to remove the feature later on, someone else did the same thing for Firefox there. That extension was not ported to Pale Moon and is independent of our own efforts.
I stand corrected! My apologies.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-21, 18:45
by Terkaz
Hello! The same thing happened to me. I removed Moonchild’s Tab Groups and replaced it with Quicksaver’s version from Mozilla repository. It work with v28, I don’t have any bugs so far. It also take over settings from Moonchild’s version – I didn’t lose any tabs.

For groups and tabs backup I recommend Tab Groups Helper by Kevin Jones.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 03:55
by ketmar
actually, fix for panorama is freakin' easy:

1. in file "chrome/content/tabview-browser.js" you have to replace string "browser-delayed-startup-finished" at the bottom of the file to "sessionstore-windows-restored".
2. you have to replace all top-level `let`s with `var`s (just in case).
3. in "chrome/content/groupitems.js", replace `getBoundingBox()` implementation with:

Code: Select all

   getBoundingBox: function GroupItems_getBoundingBox(els) {
    var left = 99999999;
    var top = 99999999;
    var right = -99999999;
    var bottom = -99999999;
    for (var el in els) {
      var bounds = iQ(el).bounds();
      for (var b in bounds) {
        left = Math.min(left, b.left);
        top = Math.min(top, b.top);
        right = Math.max(right, b.right);
        bottom = Math.max(bottom, b.bottom);
      }
    }
  },
with these changes panorama will be working again.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 18:39
by Moonchild
Can you clarify 3? The original function returns a rect -- but this function returns nothing.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 18:59
by ketmar
oops. it is a copy-pasta bug! i'm very sorry. it should end with `return new Rect(left, top, right-left, bottom-top);`, of course.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 21:13
by CraigPD
Great strides forward thanks to everyone's contributed patches! :clap: I previewed the pending 0.4 release on GitHub and ask if it's possible to readdress the empty page icons that affected Tab Groups prior to the 0.3 version bump. They have gone missing again though everything else seems completely functional.

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 21:31
by ketmar
sorry, i don't think that i understand you. can you please post a "good" and "bad" screenshots? if it is hard for you to produce a "good" screenshot (due to required browser/extension downgrade), just draw some silly ms-paint thingy that should show me what is broken, and how it was before. ;-)

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 22:02
by CraigPD
Maybe "page icon" is wrong terminology. The same affliction prior to v0.3. I hope this clarifies and thanks again for your efforts.

v0.3 - 27.9.4
TabGroups_0.3_PM27.9.4.jpg
v0.4 - 28.0.0
TabGroups_0.4_PM28.0.0.jpg

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 22:37
by ketmar
aha, i see. funny thing: i am using panorama for a long time, but never payed any attention to such icons. no promises are made, but i'll try to look into this issue. i am pretty sure that it is something very trivial to fix. yet it is not trivial to find what to fix, where, and what line should be changed. ;-)

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 23:12
by ketmar
oops, posted a wrong patch. anyway, here we go, take two:

Code: Select all

From a112053072e664a7494d0c7d6ba3ca5d30062800 Mon Sep 17 00:00:00 2001
From: Ketmar Dark <ketmar@ketmar.no-ip.org>
Date: Thu, 23 Aug 2018 02:05:25 +0300
Subject: [PATCH] fixed tab icons

---
 src/chrome/content/tabview-content.js | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/chrome/content/tabview-content.js b/src/chrome/content/tabview-content.js
index ad202c5..d415375 100644
--- a/src/chrome/content/tabview-content.js
+++ b/src/chrome/content/tabview-content.js
@@ -12,16 +12,26 @@ Cu.import("chrome://tabgroups/content/utils.jsm");
 
 // Bug 671101 - directly using webProgress in this context
 // causes docShells to leak
+/*k8: this is deprecated
 __defineGetter__("webProgress", function () {
   let ifaceReq = docShell.QueryInterface(Ci.nsIInterfaceRequestor);
   return ifaceReq.getInterface(Ci.nsIWebProgress);
 });
+*/
+
+// prefixed to avoid clashes
+function k8_WEH_getWebProgress () {
+  let ifaceReq = docShell.QueryInterface(Ci.nsIInterfaceRequestor);
+  return ifaceReq.getInterface(Ci.nsIWebProgress);
+}
+
 
 // ----------
 // WindowEventHandler
 //
 // Handles events dispatched by the content window.
 var WindowEventHandler = {
+
   // ----------
   // Function: onDOMWillOpenModalDialog
   // Sends a synchronous message when the "onDOMWillOpenModalDialog" event
@@ -63,7 +73,7 @@ var WindowMessageHandler = {
   // Checks if the currently active document is loaded.
   isDocumentLoaded: function WMH_isDocumentLoaded(cx) {
     let isLoaded = (content.document.readyState != "uninitialized" &&
-                    !webProgress.isLoadingDocument);
+                    !k8_WEH_getWebProgress().isLoadingDocument);
 
     sendAsyncMessage(cx.name, {isLoaded: isLoaded});
   },
-- 
2.17.1
with this patch, panorama works flawlessly, shows page icons, and produces no messages in error console. for your pleasure, sir!

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-22, 23:57
by CraigPD
Thanks much, Ketmar. Waiting for wolfbeast to merge & appreciate the results. So glad you're not abandoning us... yet. :D

Re: I just lost 400 tabs due to Tab Groups deprecation

Posted: 2018-08-23, 00:19
by ketmar
i just felt that i should not keep my fixes to panorama to myself only, as i know how painful it is to loose hundreds of your stored tabs. and as i started to do fixes, i thought that i should finish it all. ;-)
Off-topic:
that is, i stopped developing my own extensions, but i didn't fully moved away: Pale Moon is the best browser on the planet, so i'll be using it, and will be lurking here for a long time. ;-)