You’re getting SecurityError because this stylesheet is loaded from different origin but Developer Console works from main page origin.
Refer to WebExtensions porting: access to cross-origin document.styleSheets[...].cssRules to see how I’ve worked around this issue in my add-on.
1 Like