deCDN

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

Moderators: Lootyhoof, FranklinDM

User avatar
Drugwash
Lunatic
Lunatic
Posts: 272
Joined: 2016-01-28, 12:08
Location: Ploieşti, Romania

Re: deCDN

Unread post by Drugwash » 2025-02-11, 00:25

Haven't touched that browser.preferences.instantApply setting AFAIK so it should be at its default. No hurry though, take your time and think everything over so that it would please most setups (and users, if possible). Regular setups should be fine but corner cases as you know are the most difficult to account for. ;)

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 861
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: deCDN

Unread post by RealityRipple » 2025-02-11, 22:41

Updated today with three improvements:
The download status icon now shows on all windows, not just the most recent. The panel's also accessible from any of these windows, and the progress is now "global" (part of a module).
The code to trigger a cleanup and re-download will now occur when instantApply is on (Linux and macOS by default) at the Options window's closure.
The Options window will now show a download status if it's opened in the middle of a download. Additionally, the Branch dropdown, Refresh Branches button, and Erase/Reset button will be disabled during the download (unless the current download status is an error message).

User avatar
Drugwash
Lunatic
Lunatic
Posts: 272
Joined: 2016-01-28, 12:08
Location: Ploieşti, Romania

Re: deCDN

Unread post by Drugwash » 2025-02-12, 08:05

Seems to be better now. Thank you.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 953
Joined: 2020-11-03, 06:47
Location: Philippines

Crash involving deCDN

Unread post by jobbautista9 » 2025-02-27, 13:47

I found an issue involving this add-on. For some reason I can consistently crash this news article https://www.stuff.co.nz/entertainment/1 ... tay-secret when I have deCDN. I've tested in a fresh profile of 64-bit 33.6.0.1 running on Windows 11 x64, the only thing changed is this add-on installed and enabled. :think:

I've uploaded a crash minidump to the FTP. The filename is palemoon-crash_stuff-co-nz_20250227213840.7z (117 MB)
Image

"Destroying things, smartly!" - IJN Samidare, probably

Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37678
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: deCDN

Unread post by Moonchild » 2025-02-27, 14:05

Thanks for the crash dump. Seems it's an issue with AddExternalResource failing; null crash so easy fix.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

thosrtanner
Lunatic
Lunatic
Posts: 429
Joined: 2014-05-10, 18:19
Location: UK

Re: deCDN

Unread post by thosrtanner » 2025-02-27, 15:32

What is AddExternalResource - as reported above, I had a problem with this crashing, and it was beginning to look like it was related to what web pages I had open as I'd removed all of my other extensions. I was wondering if the fix for this would be likely to address my issue.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37678
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: deCDN

Unread post by Moonchild » 2025-02-27, 16:30

thosrtanner wrote:
2025-02-27, 15:32
What is AddExternalResource
code comment:

Code: Select all

307   /**
308    * Add an ExternalResource for aURI.  aViewer and aLoadGroup might be null
309    * when this is called if the URI didn't result in an XML document.  This
310    * function makes sure to remove the pending load for aURI, if any, from our
311    * hashtable, and to notify its observers, if any.
312    */
Basically it's an internal function in the platform to link an external resource (data/code/etc) to a URI object. It makes sense that deCDN would make use of that (indirectly) triggering the crash. It was more a bit of whiteboarding on my part, sorry about that.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 861
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: deCDN

Unread post by RealityRipple » 2025-02-27, 19:30

Must have been called internally by nsIHttpChannel's redirectTo() routine... No wonder I couldn't find the crash through extension conflicts.

If that solves that, the only problem left is replacing font files.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 953
Joined: 2020-11-03, 06:47
Location: Philippines

Re: deCDN

Unread post by jobbautista9 » 2025-02-28, 00:05

Yeah I got lucky finding which extension was making the browser crash lol. Probably helped that the first letter is a "d" since I started alphabetically ;)
Image

"Destroying things, smartly!" - IJN Samidare, probably

Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 953
Joined: 2020-11-03, 06:47
Location: Philippines

deCDN conflicting with a website behind Deflect CDN

Unread post by jobbautista9 » 2025-03-14, 13:34

Example of a website behind Deflect's CDN and DDoS protection is Northern Dispatch, which is a Philippine alternative news site from Northern Luzon. When I have the add-on enabled it doesn't get me pass the browser check. Can you investigate why this is happening please? It works in Firefox 128 ESR with LocalCDN enabled.

For now I've added nordis.net to my whitelist.
Image

"Destroying things, smartly!" - IJN Samidare, probably

Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 861
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: deCDN conflicting with a website behind Deflect CDN

Unread post by RealityRipple » 2025-03-14, 17:43

jobbautista9 wrote:
2025-03-14, 13:34
Example of a website behind Deflect's CDN and DDoS protection is Northern Dispatch, which is a Philippine alternative news site from Northern Luzon. When I have the add-on enabled it doesn't get me pass the browser check. Can you investigate why this is happening please? It works in Firefox 128 ESR with LocalCDN enabled.

For now I've added nordis.net to my whitelist.
That is odd. Even odder, when I entered "new_solver(6);" into the console on the protection page, the code ran fine and redirected to the right page. Something isn't finishing loading, which is preventing the "onload" event of the body element from starting. Hitting stop or escape also seems to partially start the sequence, but not actually run (probably because all requests have been... you know, stopped). I'll take a look and see if anything that should be cancelled isn't... or shouldn't and is.

Edit: narrowed it down to an "empty" onDataAvailable call that was triggering a double failure response. I don't exactly know why it didn't like it, but it's more efficient anyway. I was hoping to have some more improvements before I updated to 33.4, but this seems like an important fix, so... New ver in 10 minues~

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 953
Joined: 2020-11-03, 06:47
Location: Philippines

Re: deCDN conflicting with a website behind Deflect CDN

Unread post by jobbautista9 » 2025-03-15, 02:46

Thanks, can confirm the new 33.4 version now fixes the Deflect browser check without having to whitelist the host! :thumbup:
Image

"Destroying things, smartly!" - IJN Samidare, probably

Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.