Backed out changeset ec4c2b2a561b (bug 1374612) for causing wpt permafails in /html/dom/reflection-metadata.html CLOSED TREE

This commit is contained in:
shindli
2020-02-27 22:46:44 +02:00
parent a5a9df53bc
commit 0767c8420c
19 changed files with 168 additions and 172 deletions

View File

@@ -473,10 +473,7 @@ Maybe<nsStyleLinkElement::SheetInfo> HTMLLinkElement::GetStyleSheetInfo() {
referrerInfo->InitWithNode(this);
nsAutoString nonce;
nsString* cspNonce = static_cast<nsString*>(GetProperty(nsGkAtoms::nonce));
if (cspNonce) {
nonce = *cspNonce;
}
GetAttr(kNameSpaceID_None, nsGkAtoms::nonce, nonce);
return Some(SheetInfo{
*OwnerDoc(),