| Index: Source/core/dom/StyleElement.cpp
|
| diff --git a/Source/core/dom/StyleElement.cpp b/Source/core/dom/StyleElement.cpp
|
| index ee20e6171a8b53e11844d4566eb8720bc2b7a88c..4ef4c8dfea79b141dd1ca592272582ec79081873 100644
|
| --- a/Source/core/dom/StyleElement.cpp
|
| +++ b/Source/core/dom/StyleElement.cpp
|
| @@ -163,7 +163,7 @@ static bool shouldBypassMainWorldCSP(Element* element)
|
|
|
| // Main world CSP is bypassed for style elements in user agent shadow DOM.
|
| ShadowRoot* root = element->containingShadowRoot();
|
| - if (root && root->type() == ShadowRoot::UserAgentShadowRoot)
|
| + if (root && root->type() == ShadowRoot::ClosedShadowRoot)
|
| return true;
|
|
|
| return false;
|
|
|