Adds a flag to open external links inside desktop PWAs
The flag `desktop-pwas-stay-in-window` controls whether
out of scope links open in an external browser. When
disabled (the default) behavior remains the same as
before this change (out of scope links open in the browser).
When enabled, out of scope links will open in the PWA
window and display the location bar (as we do already, in
bookmark apps).
This change has been made because the current flow (kicking
the user to the browser) breaks authentication flows on
some websites.
Bug: 853593
Change-Id: Id38dbd8437651133b2b5be5f05260b342066d0ce
Reviewed-on: https://chromium-review.googlesource.com/c/1242727
Commit-Queue: Jay Harris <[email protected]>
Reviewed-by: Matt Giuca <[email protected]>
Reviewed-by: Alan Cutter <[email protected]>
Cr-Commit-Position: refs/heads/master@{#597772}
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index 610f032..ed33e60 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -338,6 +338,9 @@
extern const char kEnableDesktopPWAsLinkCapturingName[];
extern const char kEnableDesktopPWAsLinkCapturingDescription[];
+extern const char kDesktopPWAsStayInWindowName[];
+extern const char kDesktopPWAsStayInWindowDescription[];
+
extern const char kEnableSystemWebAppsName[];
extern const char kEnableSystemWebAppsDescription[];