Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
[WM]: support link rel=monetization in relList
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Oct 26, 2020
1 parent f18eca3 commit 43780b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dom/html/HTMLLinkElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,16 @@ static const DOMTokenListSupportedToken sSupportedRelValues[] = {
// Keep this and the one below in sync with ToLinkMask in
// LinkStyle.cpp.
// "preload" must come first because it can be disabled.
"preload", "prefetch", "dns-prefetch", "stylesheet", "next",
"alternate", "preconnect", "icon", "search", nullptr};
"preload", "prefetch", "dns-prefetch", "stylesheet",
"next", "alternate", "preconnect", "icon",
"search", "monetization", nullptr};

static const DOMTokenListSupportedToken sSupportedRelValuesWithManifest[] = {
// Keep this in sync with ToLinkMask in LinkStyle.cpp.
// "preload" and "manifest" must come first because they can be disabled.
"preload", "manifest", "prefetch", "dns-prefetch", "stylesheet", "next",
"alternate", "preconnect", "icon", "search", nullptr};
"preload", "manifest", "prefetch", "dns-prefetch",
"stylesheet", "next", "alternate", "preconnect",
"icon", "search", "monetization", nullptr};

nsDOMTokenList* HTMLLinkElement::RelList() {
if (!mRelList) {
Expand Down

0 comments on commit 43780b6

Please sign in to comment.