Commit 6c26c0cb authored by Jeremy Roman's avatar Jeremy Roman Committed by Commit Bot

Link to origin trial docs in portals-not-in-this-doc warning.

Change-Id: If33452721935f67d46642507442decae9b8426a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238498
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Commit-Queue: Lucas Gadani <lfg@chromium.org>
Auto-Submit: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: default avatarLucas Gadani <lfg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#776743}
parent e5c890cb
......@@ -130,12 +130,12 @@ bool HTMLPortalElement::CheckPortalsEnabledOrWarn() const {
if (RuntimeEnabledFeatures::PortalsEnabled(&document))
return true;
// TODO(jbroman): Consider linking to origin trial info if applicable.
document.AddConsoleMessage(MakeGarbageCollected<ConsoleMessage>(
mojom::blink::ConsoleMessageSource::kRendering,
mojom::blink::ConsoleMessageLevel::kWarning,
"An operation was prevented because a <portal> was moved to a document "
"where it is not enabled."));
"where it is not enabled. See "
"https://www.chromium.org/blink/origin-trials/portals."));
return false;
}
......@@ -145,11 +145,11 @@ bool HTMLPortalElement::CheckPortalsEnabledOrThrow(
if (RuntimeEnabledFeatures::PortalsEnabled(&document))
return true;
// TODO(jbroman): Consider linking to origin trial info if applicable.
exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError,
"An operation was prevented because a <portal> was moved to a document "
"where it is not enabled.");
"where it is not enabled. See "
"https://www.chromium.org/blink/origin-trials/portals.");
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment