
This CL does a couple of things: 1) Updates extensions logic to throw an error if an extension tries to allow third-party cookies specifically in incognito when `AlwaysBlock3pcsIncognito` is enabled. Includes test coverage for this 2) Enables `AlwaysBlock3pcsIncognito` by default in preference_apitest 3) Updates general extension testing that uses thirdPartyCookiesAllowed to instead use hyperlinkAuditingEnabled for equivalent coverage Bug: b:370008370 Change-Id: I43afcaa298dcf05b564359392bc8979bc89cf004 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6305649 Reviewed-by: Kevin Graney <kmg@google.com> Commit-Queue: Devlin Cronin <rdevlin.cronin@chromium.org> Commit-Queue: Fiona Macintosh <fmacintosh@google.com> Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Auto-Submit: Fiona Macintosh <fmacintosh@google.com> Cr-Commit-Position: refs/heads/main@{#1427252}
This will become a reusable extensions module. It implements the core parts of Chrome's extension system, and can be used with any host of the content module.
Some extensions code that is not Chrome-specific still lives in //chrome/browser/extensions and will be moved here.
Technical Documentation: