Skip to content

Commit 79d2076

Browse files
alancutterChromium LUCI CQ
authored andcommitted
Add feature flag for launch_handler manifest field
Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/8tNe2jrJ78A Bug: 1231886 Change-Id: Id7c7a34c140c8932798af5dea5dab12e4a2e4c09 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3068785 Commit-Queue: Alan Cutter <[email protected]> Reviewed-by: Nate Chapin <[email protected]> Cr-Commit-Position: refs/heads/master@{#908770}
1 parent eb0e848 commit 79d2076

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

content/child/runtime_features.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ void SetRuntimeFeaturesFromChromiumFeatures() {
395395
kThrottleDisplayNoneAndVisibilityHiddenCrossOriginIframes},
396396
{"TrustedDOMTypes", features::kTrustedDOMTypes},
397397
{"UserAgentClientHint", blink::features::kUserAgentClientHint},
398+
{"WebAppLaunchHandler", blink::features::kWebAppEnableLaunchHandler},
398399
{"WebAppLinkCapturing", blink::features::kWebAppEnableLinkCapturing},
399400
{"WebAppTabStrip", features::kDesktopPWAsTabStrip},
400401
{"WebAppWindowControlsOverlay",

third_party/blink/common/features.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,11 @@ const base::Feature kLogUnexpectedIPCPostedToBackForwardCachedDocuments{
849849
const base::Feature kWebAppEnableIsolatedStorage{
850850
"WebAppEnableIsolatedStorage", base::FEATURE_DISABLED_BY_DEFAULT};
851851

852+
// Enables the "launch_handler" manifest field for web apps.
853+
// Explainer: https://github.com/WICG/sw-launch/blob/main/launch_handler.md
854+
const base::Feature kWebAppEnableLaunchHandler{
855+
"WebAppEnableLaunchHandler", base::FEATURE_DISABLED_BY_DEFAULT};
856+
852857
// Enables declarative link capturing in web apps.
853858
// Explainer:
854859
// https://github.com/WICG/sw-launch/blob/master/declarative_link_capturing.md

third_party/blink/public/common/features.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ BLINK_COMMON_EXPORT extern const base::Feature
341341

342342
BLINK_COMMON_EXPORT extern const base::Feature kWebAppEnableIsolatedStorage;
343343

344+
BLINK_COMMON_EXPORT extern const base::Feature kWebAppEnableLaunchHandler;
345+
344346
BLINK_COMMON_EXPORT extern const base::Feature kWebAppEnableLinkCapturing;
345347

346348
BLINK_COMMON_EXPORT extern const base::Feature kWebAppEnableManifestId;

third_party/blink/renderer/platform/runtime_enabled_features.json5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,6 +2276,10 @@
22762276
name: "WebAnimationsSVG",
22772277
status: "experimental",
22782278
},
2279+
{
2280+
name: "WebAppLaunchHandler",
2281+
status: "experimental",
2282+
},
22792283
{
22802284
name: "WebAppLinkCapturing",
22812285
origin_trial_feature_name: "WebAppLinkCapturing",

0 commit comments

Comments
 (0)