In fact, restartless can be made reliable. But the authors of add-ons copy each other ...
User Agent Status removed my added toolbar
Moderators: FranklinDM, Lootyhoof
Re: User Agent Status removed my added toolbar
How do we do that? I've avoided making restartless extensions so far.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Re: User Agent Status removed my added toolbar
Here, an example.
This hosting will delete the file after 1 hour.
https://tmpfiles.org/dl/124168/example.zip
Re: User Agent Status removed my added toolbar
Thanks. What's the initialization mistake other extensions make, compared to this one?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Re: User Agent Status removed my added toolbar
The authors are trying to insert their button into the toolbar (where the user moved it). And if it is not in the toolbars, then they are inserted the button into the palette.
In fact, the button should always be inserted into the palette, and then we must update the toolbars.
It is very easy to do, because the browser has a ready-made mechanism for this.
In fact, the button should always be inserted into the palette, and then we must update the toolbars.
It is very easy to do, because the browser has a ready-made mechanism for this.
Code: Select all
// update toolbars
let elms = win.document.querySelectorAll("toolbar");
for(let elm of elms) {
if(elm.getAttribute("customizable")=="true") {
elm.currentSet = elm.getAttribute("currentset");
};
};
Re: User Agent Status removed my added toolbar
moonbat, this toolbar removal issue isn't just when there are restartless extension buttons on the added toolbar. I've seen it with just PM's built in buttons. But it may still be related to having restartless extensions installed in the profile even when they don't have a button on the added bar. There are old posts here that point the finger at restartless extensions but it seems there wasn't anything definitive identified (at least in the threads I found).
Kris_88, I agree that extensions should not auto insert their button at the right end of the location bar. I always end up moving them where I want them anyway (I keep my location bar with very few buttons.) Question is I guess can something be done (an extension?) to prevent that behavior. Just relying on extension developers won't do, and a lot of extensions aren't maintained anymore anyway.
Kris_88, I agree that extensions should not auto insert their button at the right end of the location bar. I always end up moving them where I want them anyway (I keep my location bar with very few buttons.) Question is I guess can something be done (an extension?) to prevent that behavior. Just relying on extension developers won't do, and a lot of extensions aren't maintained anymore anyway.
Win10home(1709), PM33.0.0-portable as of Feb 1, '24
Re: User Agent Status removed my added toolbar
It's not a problem. The add-ons can place its elements anywhere, for reasons of the author. But the customization mechanism is quite complicated and the problem arises when the author tries to rewrite this mechanism, instead of using the built-in one. It is quite difficult to rewrite it so that it does not conflict with the built-in.
Re: User Agent Status removed my added toolbar
I partly blame the absolute mess that Mozilla's documentation was, after going through it myself. Amazing how with millions of dollars from Google they never bothered to hire a decent technical writer and keep the pages up to date with changes to Firefox or structure them for easy discoverability. Lots of places with 'to do' or 'needs an example' and the best documentation seems to have been written by third party volunteers and then added to their site.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Re: User Agent Status removed my added toolbar
Kris_88, perhaps not a problem in theory/intent, but is a problem in practice. Other buttons get bumped off the toolbar and not all end up in the Palette. Sometimes it takes creating a new profile to get them back. And there may be a connection of that with the added toolbar disappearing.
Win10home(1709), PM33.0.0-portable as of Feb 1, '24
Re: User Agent Status removed my added toolbar
They write it incorrectly due to ignorance of or ignoring the documentation, which is pretty badly organized as I said. Another common problem in the early days of Firefox 3.x when it used to be accused of hogging memory was due to extensions not properly removing event listeners that they had added.The original Link Alert used to have this problem back then, I contributed a fix for the fork.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX