I am working on a new addon that makes use of tabs.hide() and in the documentation (tabs.hide() - Mozilla | MDN) it states “The first time an extension hides a tab, the browser will tell the user that the tab is being hidden, show them how they can access the hidden tab, and give them the option of disabling the extension instead.”
In my addon, I allow the user to enter some search parameters and from there hide tabs that don’t meet those criteria. When the user enters the first letter (using my, what I am calling, real-time mode) I see that Firefox generates the informational dialog. However, it is displayed under my popup.html and the text is not fully seen and I could certainly see adding additional options which will make my popup.html large enough to cover the dialog.
There doesn’t seem to be a way (with a little searching around) to be able to force this dialog for “approval” until the first time a tab is hidden. The other information that might complicate this scenario is that once I click off of my popup.html, I restore all tabs to be visible as it is intended to only help find tabs and not permanent. (So once I click off of popup.html, tabs are restored, and the Firefox dialog also goes away.)
Any thoughts on how I might help “expose” this first time dialog better? (I’m thinking maybe just force hiding a tab before popup.html is displayed which would cause the Firefox dialog, but not sure how I would determine when they approved it and should continue with the regular UI … seems fairly complicated.)