Add dedicated flag in chrome://flags for FedCM interception
This CL splits the WebID feature into 2:
Part#1: FedCM JavaScript API https://wicg.github.io/FedCM/
Part#2: HTTP filter which observes HTTP traffic,
detects if an HTTP request is likely for authentication, and displays
FedCM browser UI if the HTTP request is likely for authentication.
The reason for the split is that we are planning on going to dev trial
with the JavaScript API but without the HTTP filtering.
This CL switches the chrome://flags WebID flag from having 2 states to
having 3
State #1: FedCM disabled
State #2: FedCM JavaScript API enabled but HTTP filtering off
State #3: FedCM JavaScript API enabled and HTTP filtering off
This CL also renames flag related code from WebID->FedCM.
BUG=1267916
Change-Id: I420ac8a28795942923aa0270b00ad0c4286d56e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3290265
Commit-Queue: Peter Kotwicz <[email protected]>
Reviewed-by: Camille Lamy <[email protected]>
Reviewed-by: Ken Buchanan <[email protected]>
Reviewed-by: Yi Gu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#947390}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 8985a79e..c7626be 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -1333,6 +1333,10 @@
const char kEffectiveConnectionType3GDescription[] = "3G";
const char kEffectiveConnectionType4GDescription[] = "4G";
+const char kFedCmName[] = "FedCM";
+const char kFedCmDescription[] =
+ "Enables JavaScript API to intermediate federated identity requests.";
+
const char kFileHandlingAPIName[] = "File Handling API";
const char kFileHandlingAPIDescription[] =
"Enables the file handling API, allowing websites to register as file "
@@ -2683,11 +2687,6 @@
"Enables experimental supports for Web Bundles (Bundled HTTP Exchanges) "
"navigation.";
-const char kWebIdName[] = "WebID";
-const char kWebIdDescription[] =
- "Enables WebID HTTP filtering and JavaScript "
- "API to intermediate federated identity requests.";
-
const char kWebMidiName[] = "Web MIDI";
const char kWebMidiDescription[] =
"Enables the implementation of the Web MIDI API. When disabled the "