I have a specific issue I want to solve right now, but the topic is phrased more generally as I would love the answer to this as well. But this might be an XY-problem because of this, so here’s the actual problem I want to solve:
I am using LibreWolf as my main browser, and it has WebGL disabled by default to avoid fingerprinting. I would like to keep it this way, but I am currently also making some internal tools for myself that requires WebGL (map renders with Plotly in Dash).
Is there a way to tell LibreWolf to enable WebGL only for specific sites, so that I don’t have to manually toggle this when I want to look at my maps? My initial thought was that this could be solved with a site-specific about:config.
NB I have not used LibreWolf, I don’t think there are any site specific toggles in about:config. This probably doesn’t help but some Android Webviews do allow this.
You probably considered this already but as a workaround could you use one browser when you need WebGL and another when you do not.