Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix($sanitize): remove inline style from sanitization Firefox bug det…
…ection 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. Fixes angular#16463.
- Loading branch information