You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix($sanitize): remove inline style from sanitization Firefox bug detection
Inserting a `style` tag causes a CSP violation when using a strict CSP that
doesn't allow inline styles. The `style` tag doesn't seem relevant for the
Firefox bug detection, and can be replaced with a `span`, see issue angular#16463
for more details.
The related unit test in `sanitizeSpec.js`, "should not allow JavaScript
hidden in badly formed HTML to get through sanitization (Firefox bug)", is
left untouched and still uses `style` to assert that the behavior hasn't
changed in the original scenario.
Fixesangular#16463.
0 commit comments