forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core-http] delay saving of DOM parser error namespace
We eagerly save the namespace of "parsererror" element on module load. It's unnecessary because in most scenarios we would not encounter a parse error. Furthermore, it caused Content Security Policy error in Chrome version 86.0 or newer because the returned DOM object for parser errors contains some CSS styles. This change fixes the issue by lazily loading the error namespace when the parsed DOM document contains "parsererror" elements. Fixes Azure#13268
- Loading branch information
1 parent
832c98f
commit e1cbf2f
Showing
4 changed files
with
47 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters