CopyPlainText warnings with 31.0.1

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

Moderators: FranklinDM, Lootyhoof

JujuLand
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: 2017-04-26, 08:08

CopyPlainText warnings with 31.0.1

Unread post by JujuLand » 2022-10-23, 08:30

Hi, I have installed this version for gtk3 under Xubuntu 16.04 using the tar.xz file, and I added some add-ons.

CopyPlainText works, but each time I open a submenu in palemoon, I had this warning, which is a bit ennoying.
PS, I add retcar to make it easily to read.
1666085661936 addons.manager
WARN Exception calling callback:
TypeError: addon is null
(chrome://copyplaintext/content/copyplaintext.js:123:1)
JS Stack trace: copyplaintext_init2/
<@copyplaintext.js:123:1 < safeCall@AddonManager.jsm:159:5
< noMoreObjects@AddonManager.jsm:2013:9
< callNext@AddonManager.jsm:321:7
< getAddonByID_safeCall@AddonManager.jsm:2008:13
< PL_getAddon@PluginProvider.jsm:135:7
< callProviderAsync@AddonManager.jsm:220:12
< nextObject@AddonManager.jsm:2003:9
< callNext@AddonManager.jsm:327:7
< getAddonByID_safeCall@AddonManager.jsm:2008:13
< getAddonByID@GMPProvider.jsm:524:7
< callProviderAsync@AddonManager.jsm:220:12
< nextObject@AddonManager.jsm:2003:9
< callNext@AddonManager.jsm:327:7
< getAddonByID_safeCall@AddonManager.jsm:2008:13
< getAddonByID@LightweightThemeManager.jsm:357:7
< callProviderAsync@AddonManager.jsm:220:12
< nextObject@AddonManager.jsm:2003:9
< callNext@AddonManager.jsm:327:7
< getAddonByID_safeCall@AddonManager.jsm:2008:13
< getAddonByID_getVisibleAddonForID@XPIProvider.jsm:3756:7
< makeSafe/<@XPIProviderUtils.js:149:17
< getRepositoryAddon@XPIProviderUtils.js:130:5
< getAddon/<@XPIProviderUtils.js:1038:9
< process@Promise-backend.js:931:23
< walkerLoop@Promise-backend.js:812:7
< scheduleWalkerLoop/
<@Promise-backend.js:746:11
Thanks
A+

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2183
Joined: 2018-05-05, 13:29

Re: CopyPlainText warnings with 31.0.1

Unread post by vannilla » 2022-10-23, 14:32

I haven't checked the code so I don't know why it does need this, but the error is caused by the extension requesting an instance of itself from the add-on manager.
When the code was written the API probably always guaranteed a non-null value, so it didn't bother to check if the variable had a sensible value.

JujuLand
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: 2017-04-26, 08:08

Re: CopyPlainText warnings with 31.0.1

Unread post by JujuLand » 2022-11-03, 17:21

If I understand what you said, it's due to a modification of the API.

For me it's a a bit ennoying, as I often in some programs I made launch palemoon, and it filled the console with non-interesting things ...

A+

Falna
Astronaut
Astronaut
Posts: 511
Joined: 2015-08-23, 17:56
Location: UK / France

Re: CopyPlainText warnings with 31.0.1

Unread post by Falna » 2022-11-04, 00:27

I think I've spotted the problem; just tried to release an update (v1.2.1) but the server is currently generating a 500 error. Hopefully that will be fixed soon and you can give it a try.

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...

JujuLand
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: 2017-04-26, 08:08

Re: CopyPlainText warnings with 31.0.1

Unread post by JujuLand » 2022-11-04, 08:59

ok

thanks

Locked