I've reached out to @basti for input on how to best detect whether the IPProtection is active for a given site. Rather than taking the complex route, the plan is to have them extract the logic used by [IPProtectionToolbarButton.sys.mjs](https://searchfox.org/firefox-main/source/browser/components/ipprotection/IPProtectionToolbarButton.sys.mjs#217-272) into a function we can use in our own progress listener. This will allow us to control our UX visibility without reimplementing and diverging the logic. Filed a [bug](https://bugzilla.mozilla.org/show_bug.cgi?id=2034102) for them to get into their next sprint.
Bug 2026242 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I've reached out to @basti for input on how to best detect whether the IPProtection is active for a given site. Rather than taking the complex route, the plan is to have them extract the logic used by [IPProtectionToolbarButton.sys.mjs](https://searchfox.org/firefox-main/source/browser/components/ipprotection/IPProtectionToolbarButton.sys.mjs#217-272) into a function we can use in our own progress listener. This will allow us to control our UX visibility without reimplementing and diverging the logic. Filed a [bug](https://bugzilla.mozilla.org/show_bug.cgi?id=2034102) for them to get this into their next sprint.