Download Status Bar 15.0.0.1 can't intercept downloads

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

SlayerM

Download Status Bar 15.0.0.1 can't intercept downloads

Unread post by SlayerM » 2016-11-28, 18:01

The issue in the subject of topic. I use Pale Moon 27.0.0.1 Portable with Russian localization file, Windows 7 SP1 x64. Used extensions:
Image

Everybody experiencing the same problem with Download Status Bar?

CraigPD
Lunatic
Lunatic
Posts: 292
Joined: 2013-01-01, 19:03
Location: Mexico

Re: Download Status Bar 15.0.0.1 can't intercept downloads

Unread post by CraigPD » 2016-11-28, 19:42

It’s a known issue in 27.0 and the extension developer has been notified.
viewtopic.php?f=46&t=13734&p=97732#p97732

In the meantime you may want to try Download Manager (S3) which is currently compatible.
viewtopic.php?f=46&t=13734&start=20#p98433

win7-7
Fanatic
Fanatic
Posts: 183
Joined: 2013-09-16, 15:18
Location: --

Re: Download Status Bar 15.0.0.1 can't intercept downloads

Unread post by win7-7 » 2016-11-29, 11:01

This add-on seems to works with simple fix.

first open XPI with any program of your choise and modify bootstrap.js

change lines 1386-1387.

switch(Services.appinfo.name) {
case "Pale Moon":
this.ff26above=false;
DownloadBar.ff26above=false;
this.windowtype = "navigator:browser";
DownloadBar.windowtype = "navigator:browser";
break;

change lines from false to true:

switch(Services.appinfo.name) {
case "Pale Moon":
this.ff26above=true;
DownloadBar.ff26above=true;
this.windowtype = "navigator:browser";
DownloadBar.windowtype = "navigator:browser";
break;

SlayerM

Re: Download Status Bar 15.0.0.1 can't intercept downloads

Unread post by SlayerM » 2016-11-29, 16:59

Thank you both CraigPD and win7-7 for your attention to my problem. The solution from win7-7 worked well, i uploaded fixed XPI for everybody who do not want to edit it manually:
Link

User avatar
Kerebron
Fanatic
Fanatic
Posts: 105
Joined: 2016-12-04, 22:01

Re: Download Status Bar 15.0.0.1 can't intercept downloads

Unread post by Kerebron » 2016-12-04, 22:06

Thank you, win7-7 - your fix works like a charm. Thanks again! :thumbup:

User avatar
SmileyFaze
Moongazer
Moongazer
Posts: 14
Joined: 2015-07-16, 08:43
Location: Australia

Re: Download Status Bar 15.0.0.1 can't intercept downloads

Unread post by SmileyFaze » 2016-12-30, 00:56

Great work!! I'm using PaleMoon v27.0.3 & your fix works fantabulously!

This is a first.......2 fixes in one day.....

First, the Nav Bar/Address Bar bug/incompatibility fix with incompatible themes https://userstyles.org/styles/135791/pale-moon-27-address-status-bar-fix

Then Second, this mod/fix of the DL Status Bar Add-on js file ▲ ABOVE ▲ (thanks for the link, I wouldn't have been able myself)

Two unintended (AFAIK) changes to our beloved PaleMoon via updates, bite the dust!

Bravo!!! Image


Thanks very much! Image

justmix4

Re: Download Status Bar 15.0.0.1 can't intercept downloads

Unread post by justmix4 » 2016-12-31, 13:58

Thanks guys, works like a charm. :thumbup:
Can I somehow manually change language of this addon from English to my native? Download Status Bar has many translations.

////

Ok, here you can find all translations.
https://www.babelzilla.org/index.php?op ... &type=show
Just download as .xpi and enjoy DST in your language.

riiis
Lunatic
Lunatic
Posts: 471
Joined: 2014-05-17, 15:51
Location: USA

Re: Download Status Bar 15.0.0.1 can't intercept downloads

Unread post by riiis » 2016-12-31, 19:06

win7-7 wrote:This add-on seems to works with simple fix ...
This win7-7 fix works for Pale Moon 27, but breaks Download Status Bar for use in PM26 and prior. A better fix, for both the Pale Moon user and the add-on's developer, is to change the bootstrap.js file in Download Status Bar (beginning with line 1384) as follows:

Code: Select all

		switch(Services.appinfo.name) {
			case "Pale Moon":
				if (appInfo.version<27) {						// this line added
					this.ff26above=false;
					DownloadBar.ff26above=false;
					this.windowtype = "navigator:browser";
					DownloadBar.windowtype = "navigator:browser";
				}													// this line added
			break;
After adding these two lines to bootstrap.js in DSB, DSB should continue to function normally in both PM26 and after updating Pale Moon to PM27.

Note that Firefox changed how downloads were handled in FF26. Pale Moon made similar changes, but not until PM27. So, PM version 26 required the old download process. And PM version 27 and FF version 26 required the new download process. Download add-ons which ignored differences between PM26 and FF26 broke in PM26, perhaps to work again in PM27. Add-ons like Download Status Bar, whose authors included code specifically for Pale Moon, now see their add-ons requiring a minor fix to continue to work in PM27.
download_status_bar-15.0.0.1-fx+tb+sm+pm27.xpi
(956.59 KiB) Downloaded 186 times

Locked