Skip to content

Commit

Permalink
Bug 1618897 [wpt PR 22021] - [CSP] Factorize SVGElement & MHTMLElemen…
Browse files Browse the repository at this point in the history
…t nonce hiding., a=testonly

Automatic update from web-platform-tests
[CSP] Factorize SVGElement & MHTMLElement nonce hiding.

According to:
whatwg/html#2373
html and svg Element are hiding their nonce when there are at least one
Content-Security-Policy defined from an HTTP header.

The two implementation:
- HTMLElement::InsertedInto
- SVGElement::InsertedInto

were hidding the nonce slightly differently. To prevent further
divergence, factorize this implementation into Element::HideNonce() and
call it from both places.

Bug: 1053496
Change-Id: I3cbad88f70c61591bef060d4188c82388e6001d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078536
Commit-Queue: Arthur Sonzogni <arthursonzognichromium.org>
Reviewed-by: Mike West <mkwstchromium.org>
Reviewed-by: Fredrik Söderquist <fsopera.com>
Cr-Commit-Position: refs/heads/master{#746837}

--

wpt-commits: 06705ea82c8a9d1866665c8abd069dd3b0f8c12b
wpt-pr: 22021

UltraBlame original commit: 24ff6c7777429ca3691d2c2d66c9a2d09651f701
  • Loading branch information
marco-c committed Mar 9, 2020
1 parent c4bac83 commit 40290d6
Showing 1 changed file with 252 additions and 83 deletions.

0 comments on commit 40290d6

Please sign in to comment.