From a5d5e76b1080461782e396f40fbaf534b71a7208 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 22 Jan 2020 05:03:17 -0800 Subject: [PATCH] fix: some websites using WebComponents V0 not loading (#21858) --- shell/browser/feature_list.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell/browser/feature_list.cc b/shell/browser/feature_list.cc index b19596b7b429b..685142821698d 100644 --- a/shell/browser/feature_list.cc +++ b/shell/browser/feature_list.cc @@ -27,6 +27,13 @@ void InitializeFeatureList() { // when node integration is enabled. disable_features += std::string(",") + features::kSpareRendererForSitePerProcess.name; + + // https://www.polymer-project.org/blog/2018-10-02-webcomponents-v0-deprecations + // https://chromium-review.googlesource.com/c/chromium/src/+/1869562 + // Any website which uses older WebComponents will fail in without this + // enabled, since Electron does not support origin trials. + enable_features += std::string(",") + "WebComponentsV0Enabled"; + #if !BUILDFLAG(ENABLE_PICTURE_IN_PICTURE) disable_features += std::string(",") + media::kPictureInPicture.name; #endif