Commit 587291f0 authored by Yoichi Osato's avatar Yoichi Osato Committed by Commit Bot

Add "HTMLImports" runtime flag for Blink

This patch introduces the flag for the HTML Imports deprecation.

Use with --disable-blink-features=HTMLImports
flag on content_shell or chrome.

Bug: 766694
Change-Id: I9c0836f3fc05429d34062dc0fcc2eda209cc1cf0
Reviewed-on: https://chromium-review.googlesource.com/998455Reviewed-by: default avatarYoichi Osato <yoichio@chromium.org>
Reviewed-by: default avatarTakayoshi Kochi <kochi@chromium.org>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549394}
parent 96591dfa
...@@ -144,7 +144,8 @@ LinkResource* HTMLLinkElement::LinkResourceToProcess() { ...@@ -144,7 +144,8 @@ LinkResource* HTMLLinkElement::LinkResourceToProcess() {
} }
if (!link_) { if (!link_) {
if (rel_attribute_.IsImport()) { if (rel_attribute_.IsImport() &&
RuntimeEnabledFeatures::HTMLImportsEnabled()) {
link_ = LinkImport::Create(this); link_ = LinkImport::Create(this);
} else if (rel_attribute_.IsManifest()) { } else if (rel_attribute_.IsManifest()) {
link_ = LinkManifest::Create(this); link_ = LinkManifest::Create(this);
......
...@@ -48,7 +48,7 @@ interface HTMLLinkElement : HTMLElement { ...@@ -48,7 +48,7 @@ interface HTMLLinkElement : HTMLElement {
// HTML Imports // HTML Imports
// https://w3c.github.io/webcomponents/spec/imports/#interface-import // https://w3c.github.io/webcomponents/spec/imports/#interface-import
readonly attribute Document? import; [RuntimeEnabled=HTMLImports] readonly attribute Document? import;
// Subresource Integrity // Subresource Integrity
// https://w3c.github.io/webappsec-subresource-integrity/#HTMLLinkElement // https://w3c.github.io/webappsec-subresource-integrity/#HTMLLinkElement
......
...@@ -538,6 +538,11 @@ ...@@ -538,6 +538,11 @@
{ {
name: "HeapIncrementalMarking", name: "HeapIncrementalMarking",
}, },
// https://crbug.com/766694 for testing disabling the feature.
{
name: "HTMLImports",
status: "stable",
},
// https://crbug.com/523952 for testing disabling the feature. // https://crbug.com/523952 for testing disabling the feature.
{ {
name: "HTMLImportsStyleApplication", name: "HTMLImportsStyleApplication",
......
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