Addon button becomes invisible

General discussion, compatibility and contributed extensions.

Moderators: Lootyhoof, FranklinDM

Locked
User avatar
moonbat
Moon Magic practitioner
Moon Magic practitioner
Posts: 2726
Joined: 2015-12-09, 15:45

Addon button becomes invisible

Post by moonbat » 2019-09-17, 01:10

The icon for Cookie Masters is invisible, both on the toolbar and in the customize toolbar window. I don't know what's changed since the addon hasn't been updated in over a year and was working fine earlier. Removed and reinstalled, same problem persists.
I think it's a generic problem, I faced it with nMatrix as well, and it got fixed after a restart.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
Advanced URL Builder(fork)|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2586
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Addon button becomes invisible

Post by coffeebreak » 2019-09-17, 05:18

Does this happen on every web page, or just blank pages?

There is a long-standing issue of the Cookie Masters button disappearing on pages that lack web content, yet being visible everywhere else. (Does this describe what you experience?)

vannilla
Board Warrior
Board Warrior
Posts: 1445
Joined: 2018-05-05, 13:29

Re: Addon button becomes invisible

Post by vannilla » 2019-09-17, 07:11

Is that a bootstrapped extension?
If so, the problem lies with how those extensions have to jump through some unnecessary hoops before they can register their toolbar button.
Basically, UI management for bootstrapped extensions sucks big time. Make a toolkit extension if you need to manage any kind of UI.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 8850
Joined: 2012-10-09, 19:37
Location: Skaro

Re: Addon button becomes invisible

Post by New Tobin Paradigm » 2019-09-17, 07:38

Off-topic:
This likely has jack point shit to do with this thread but..

There is a few ways that aren't commonly known when it comes to compensating for the terrible hack bootstrap is. One is lost to time unless you can find an extreme extension developer willing to share it with you.. (JustOff might know ;)) The second one is one I been holding on to and keeping to my self for five years.

Your easiest and best bet for consistent toolbar buttons on bootstrap (and yes it can still happen sometimes anyway) is to programmatically load an overlay that contains your toolbar button as your first things that happens for each instance of the main window opened.

You can use document.loadOverlay to do that but you need to also handle it properly. There are two examples per Phoenix-based Browser in UXP of how to do this.

Hope that helps.
How far are you prepared to go? How much are you prepared to risk? How many people are you prepared to sacrifice for victory?
Are you willing to die friendless, alone, deserted by everyone? Because that's what may be required of you in the war that is to come.

Image

User avatar
moonbat
Moon Magic practitioner
Moon Magic practitioner
Posts: 2726
Joined: 2015-12-09, 15:45

Re: Addon button becomes invisible

Post by moonbat » 2019-09-17, 12:52

coffeebreak wrote:
2019-09-17, 05:18
Does this happen on every web page, or just blank pages?
Now I notice it, it's intermittent. Shows up on some pages, not on others. Refreshing page doesn't help.
coffeebreak wrote:
2019-09-17, 05:18
There is a long-standing issue of the Cookie Masters button disappearing on pages that lack web content, yet being visible everywhere else. (Does this describe what you experience?)
No, not like this. I had made another post of a similar problem with custom toolbar vanishing after restart - could it be related?
vannilla wrote:
2019-09-17, 07:11
Is that a bootstrapped extension?
If so, the problem lies with how those extensions have to jump through some unnecessary hoops before they can register their toolbar button.
Basically, UI management for bootstrapped extensions sucks big time. Make a toolkit extension if you need to manage any kind of UI.
No idea, it is a Pale Moon port, not taken from CAA.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
Advanced URL Builder(fork)|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2586
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Addon button becomes invisible

Post by coffeebreak » 2019-09-17, 17:49

vannilla wrote:
2019-09-17, 07:11
Is that a bootstrapped extension?
Cookie Masters is not restartless, so would that mean it's not bootstrapped?


moonbat wrote:
2019-09-17, 12:52
it's intermittent. Shows up on some pages, not on others. Refreshing page doesn't help.
coffeebreak wrote:
2019-09-17, 05:18
(Does this describe what you experience?)
No, not like this. I had made another post of a similar problem with custom toolbar vanishing after restart - could it be related?
Hmm. I've only ever seen what I referred to earlier:
that the Cookie Masters icon, though not its label, disappears on blank (no-web-content) pages.

- Does the button reappear if you open a new tab or window? What happens after a restart?
- Does the button still disappear if you disable all other extensions? Maybe there's a conflict.
- What do the times it disappears have in common? On which pages does it happen? What specifically are you doing just before it disappears?

As for the custom toolbar, is Cookie Masters the only thing on it? If so, the button's removal, however unintended, would make the toolbar go away too. Other than that, I have no idea if or how they might be connected.

vannilla
Board Warrior
Board Warrior
Posts: 1445
Joined: 2018-05-05, 13:29

Re: Addon button becomes invisible

Post by vannilla » 2019-09-17, 18:27

coffeebreak wrote:
2019-09-17, 17:49
Cookie Masters is not restartless, so would that mean it's not bootstrapped?
Yes, "bootstrapped" is the actual name of "restartless" extensions.
Since it is not, my previous post can be disregarded.

Goodydino
Astronaut
Astronaut
Posts: 641
Joined: 2017-10-10, 21:20

Re: Addon button becomes invisible

Post by Goodydino » 2019-09-17, 21:35

Cookie Masters stopped working completely for me with Pale Moon 28. I replaced it with Cookie Permissions.

User avatar
moonbat
Moon Magic practitioner
Moon Magic practitioner
Posts: 2726
Joined: 2015-12-09, 15:45

Re: Addon button becomes invisible

Post by moonbat » 2019-09-18, 04:31

Goodydino wrote:
2019-09-17, 21:35
Cookie Masters stopped working completely for me with Pale Moon 28. I replaced it with Cookie Permissions.
Thanks, I've done the same. Works for me.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
Advanced URL Builder(fork)|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Dypsis
Apollo supporter
Apollo supporter
Posts: 36
Joined: 2019-07-03, 23:51

Re: Addon button becomes invisible

Post by Dypsis » 2019-09-20, 05:50

I have this problem with Classic Passwords Editor.
The icon will only show in the Tools menu. If I drag it over to the Toolbar, it doesn't show after exiting Toolbar customize.

Locked