MozillaZine

[EXT] Download Status Bar

Announce and Discuss the Latest Theme and Extension Releases.
jendrew
 
Posts: 14
Joined: May 17th, 2015, 5:25 pm

Post Posted January 19th, 2016, 5:52 pm

Hello:
Can you please advise -- how I may export my settings for this add-on?

I find the add-on key for me, so I would like to have a backup, in case i have to rebuild my fx profile.
thankyou

The_Rave
 
Posts: 95
Joined: January 25th, 2005, 8:36 am
Location: Germany

Post Posted January 24th, 2016, 10:51 am

Regarding current problems with nightly. This is caused by this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1220564

change code in line 3577 of bootstrap.js in this way:

Code: Select all
//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");

joeg

User avatar
 
Posts: 2615
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Post Posted January 24th, 2016, 12:50 pm

The_Rave wrote:Regarding current problems with nightly. This is caused by this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1220564

change code in line 3577 of bootstrap.js in this way:

Code: Select all
//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");
Wow! It really works. Thanks very much.
Although every day is Judgment Day, I nonetheless feel like a room without a roof.

omji
 
Posts: 3
Joined: April 11th, 2014, 10:55 pm

Post Posted January 26th, 2016, 2:05 pm

It stop working for new Palemoon 26 browser.

Is there a fix or update please.
Thanks

joeg

User avatar
 
Posts: 2615
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Post Posted January 26th, 2016, 2:26 pm

omji wrote:It stop working for new Palemoon 26 browser.

Is there a fix or update please.
Thanks
How about trying The_Rave's fix?
Although every day is Judgment Day, I nonetheless feel like a room without a roof.

fauxreaper
 
Posts: 1
Joined: January 26th, 2016, 2:30 pm

Post Posted January 26th, 2016, 2:32 pm

Where is located this "bootstrap.js"?

HughHyatt

User avatar
 
Posts: 39
Joined: July 16th, 2003, 6:04 am
Location: Metro Phila.

Post Posted January 26th, 2016, 2:38 pm

The_Rave wrote:Regarding current problems with nightly. This is caused by this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1220564

change code in line 3577 of bootstrap.js in this way:

Code: Select all
//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");


I have 8 files in my home directory named "bootstrap.js". Five are in subdirectories of ~/.mozilla/firefox/, but none has more than 1,473 lines. Furthermore, I can't find anything relevant on the referenced page; what am I missing?
Use open source software; with no walls and fences, who needs Windows and Gates? — Luis Pinto

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0

joeg

User avatar
 
Posts: 2615
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Post Posted January 26th, 2016, 3:35 pm

HughHyatt wrote:
The_Rave wrote:Regarding current problems with nightly. This is caused by this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1220564

change code in line 3577 of bootstrap.js in this way:

Code: Select all
//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");


I have 8 files in my home directory named "bootstrap.js". Five are in subdirectories of ~/.mozilla/firefox/, but none has more than 1,473 lines. Furthermore, I can't find anything relevant on the referenced page; what am I missing?
The "referenced page" is Greek to me, too.

As for "... 8 files in my home directory named 'bootstrap.js'", the point is that you have to find the specific bootstrap.js file for the Download Status Bar extension. On my Win7x64 machine, the extension ID is {6c28e999-e900-4635-a39d-b1ec90ba0c0f}.

And, just for the record, The_Rave's instructions are a tad misleading. He wrote
Code: Select all
   //var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
    var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");

He should have written
//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
//var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");

That is, you have to replace everything in red with everything in green, or - said in another way - you have to change everything to the right of the "=".
Last edited by joeg on January 26th, 2016, 3:50 pm, edited 1 time in total.
Although every day is Judgment Day, I nonetheless feel like a room without a roof.

joeg

User avatar
 
Posts: 2615
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Post Posted January 26th, 2016, 3:42 pm

fauxreaper wrote:Where is located this "bootstrap.js"?
Please see my reply to HughHyatt.
Although every day is Judgment Day, I nonetheless feel like a room without a roof.

jumba
 
Posts: 1
Joined: January 26th, 2016, 11:33 pm

Post Posted January 26th, 2016, 11:43 pm

omji wrote:It stop working for new Palemoon 26 browser.

Is there a fix or update please.
Thanks

Hello! This was also reported in Pale Moon forum. The reason why the add-on now fails with Pale Moon 26.0.0 is because the add-on checks the Downloads API compatibility using version number 26. Now that Pale Moon has reached the version 26, it sets the "ff26above" flag to true and tries to use the new incompatible API calls with PM.

Here is a small patch to fix it:
Code: Select all
diff --git a/bootstrap.js b/bootstrap.js
index 50072c0..87cb47e 100755
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -1388,6 +1388,12 @@ DownloadBarComponent.prototype = {
                                this.windowtype = "mail:3pane";
                                DownloadBar.windowtype = "mail:3pane";
                        break;
+                       case "Pale Moon":
+                               this.ff26above=false;
+                               DownloadBar.ff26above=false;
+                               this.windowtype = "navigator:browser";
+                               DownloadBar.windowtype = "navigator:browser";
+                       break;
                        case "Fennec": break;
                        default: //"Firefox", "SeaMonkey"
                }

joeg

User avatar
 
Posts: 2615
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Post Posted January 27th, 2016, 4:23 am

jumba wrote: Here is a small patch to fix it:...
Thanks. I don't use PaleMoon, but at least I've learned you can't just go around sticking code from one program into another, even if they're "related".
Although every day is Judgment Day, I nonetheless feel like a room without a roof.

omji
 
Posts: 3
Joined: April 11th, 2014, 10:55 pm

Post Posted January 27th, 2016, 7:17 am

jumba wrote:
omji wrote:It stop working for new Palemoon 26 browser.

Is there a fix or update please.
Thanks

Hello! This was also reported in Pale Moon forum. The reason why the add-on now fails with Pale Moon 26.0.0 is because the add-on checks the Downloads API compatibility using version number 26. Now that Pale Moon has reached the version 26, it sets the "ff26above" flag to true and tries to use the new incompatible API calls with PM.

Here is a small patch to fix it:
Code: Select all
diff --git a/bootstrap.js b/bootstrap.js
index 50072c0..87cb47e 100755
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -1388,6 +1388,12 @@ DownloadBarComponent.prototype = {
                                this.windowtype = "mail:3pane";
                                DownloadBar.windowtype = "mail:3pane";
                        break;
+                       case "Pale Moon":
+                               this.ff26above=false;
+                               DownloadBar.ff26above=false;
+                               this.windowtype = "navigator:browser";
+                               DownloadBar.windowtype = "navigator:browser";
+                       break;
                        case "Fennec": break;
                        default: //"Firefox", "SeaMonkey"
                }


Thanks ! It works.

It would be good for users that someone makes forked extension Download status bar,
and post link in Palemoon extension page.

The_Rave
 
Posts: 95
Joined: January 25th, 2005, 8:36 am
Location: Germany

Post Posted January 27th, 2016, 8:04 am

joeg wrote: He wrote
Code: Select all
   //var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
    var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");



No i wrote it as mentioned and i will not repeat the wrong interpretation. The old line is due the "//" a comment now and will be ignored by js interpreter. The 2nd line is the active code now.

Every Nightly users should have basic skills about JS, knowledge about firefox profile path and meaning of files and folders in profile directory or should left files untouched or use only official builds. Backups of profile dir are mandatory before any changes of course.

joeg

User avatar
 
Posts: 2615
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Post Posted January 27th, 2016, 11:15 am

The_Rave wrote:Every Nightly users should have basic skills about JS, knowledge about firefox profile path and meaning of files and folders in profile directory or should left files untouched or use only official builds. Backups of profile dir are mandatory before any changes of course.
I'm an English teacher by profession. I readily confess to not knowing much about computers.

Even I, however, was able to get your fix to work, and I appreciate your help in fixing the extension.

As for the computer skills a Nightly user should have, I'll leave that to someone else. All I can say is that I've learned a lot about Fx over the years by simply using the Nightly, reading the posts to the various forums, and trying to apply what I've read.

In general, the forum members are polite and helpful, and I'm happy there are no "minimum computer knowledge entry requirements".

I repeat, thank you for your help in fixing Download Status Bar.
Although every day is Judgment Day, I nonetheless feel like a room without a roof.

The_Rave
 
Posts: 95
Joined: January 25th, 2005, 8:36 am
Location: Germany

Post Posted January 27th, 2016, 12:33 pm

As mentioned before you was able to help yourself with some hints and experience and this is the minimum requirement in this case. All users of an official firefox build will have no problems at the moment. I'm think the developer of this addon will fix this, if its needed for the official firefox builds.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 5 guests