| Index: third_party/WebKit/Source/core/html/RelList.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/RelList.cpp b/third_party/WebKit/Source/core/html/RelList.cpp
|
| index a05e349c6f3c23545d03395e5c5487875aa25aa4..4d1cf239c45a76fc0a7ee249ae8515ee5cd0ea49 100644
|
| --- a/third_party/WebKit/Source/core/html/RelList.cpp
|
| +++ b/third_party/WebKit/Source/core/html/RelList.cpp
|
| @@ -5,6 +5,7 @@
|
| #include "core/html/RelList.h"
|
|
|
| #include "core/dom/Document.h"
|
| +#include "core/origin_trials/OriginTrials.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "wtf/HashMap.h"
|
|
|
| @@ -57,8 +58,6 @@ static HashSet<AtomicString>& supportedTokens()
|
| "apple-touch-icon",
|
| "apple-touch-icon-precomposed",
|
| };
|
| - if (RuntimeEnabledFeatures::linkServiceWorkerEnabled())
|
| - tokens.add("serviceworker");
|
| }
|
|
|
| return tokens;
|
| @@ -66,7 +65,9 @@ static HashSet<AtomicString>& supportedTokens()
|
|
|
| bool RelList::validateTokenValue(const AtomicString& tokenValue, ExceptionState&) const
|
| {
|
| - return supportedTokens().contains(tokenValue);
|
| + if (supportedTokens().contains(tokenValue))
|
| + return true;
|
| + return OriginTrials::linkServiceWorkerEnabled(m_element->getExecutionContext()) && tokenValue == "serviceworker";
|
| }
|
|
|
| DEFINE_TRACE(RelList)
|
|
|