Javascript CSP规则在Firefox中不同地应用于SVG

Javascript CSP规则在Firefox中不同地应用于SVG,javascript,firefox,svg,content-security-policy,Javascript,Firefox,Svg,Content Security Policy,我有带有内容安全策略的HTML文档 <meta http-equiv="Content-Security-Policy" content="style-src 'self'"> 在Firefox中,我得到一个内容安全策略错误,并且没有应用样式。Chrome中没有错误。Firefox中的DIV元素没有错误 这是预期的行为还是一个实现错误 下面的演示应该显示两个镀铬的绿色框。在Firefox中,右边的框是红色的 Firefox中是否有运行的附加功能?如果是这样的话,把它们都关掉,然后

我有带有内容安全策略的HTML文档

<meta http-equiv="Content-Security-Policy" content="style-src 'self'">
在Firefox中,我得到一个内容安全策略错误,并且没有应用样式。Chrome中没有错误。Firefox中的DIV元素没有错误

这是预期的行为还是一个实现错误


下面的演示应该显示两个镀铬的绿色框。在Firefox中,右边的框是红色的


Firefox中是否有运行的附加功能?如果是这样的话,把它们都关掉,然后再试一次。不,它可以在干净的设备上复制。
const el = document.createElementNS('http://www.w3.org/2000/svg', 'svg');

el.style.background = 'green';
document.body.appendChild(el);