Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: third_party/WebKit/Source/core/html/RelList.cpp

Issue 1781783002: Implement support for link type serviceworker in link elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 18a2ecdaa776a3c636d9ee66aa3fcd28dbe8145e..42b7e99b5b65d6fb7b8ea4813cce10c2dd2d5a62 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 "platform/RuntimeEnabledFeatures.h"
#include "wtf/HashMap.h"
namespace blink {
@@ -67,6 +68,8 @@ static RelList::SupportedTokens& supportedTokens()
supportedValuesMap.add("manifest");
supportedValuesMap.add("apple-touch-icon");
supportedValuesMap.add("apple-touch-icon-precomposed");
+ if (RuntimeEnabledFeatures::linkServiceworkerEnabled())
+ supportedValuesMap.add("serviceworker");
}
return supportedValuesMap;

Powered by Google App Engine
This is Rietveld 408576698