WebUI: set Cross Origin Opener Policy to `same-origin`
commitf6b58f36e2c0a0f2f55c21da660d814e13d761ed
authorChocobo1 <Chocobo1@users.noreply.github.com>
Wed, 14 Jun 2023 05:38:48 +0000 (14 13:38 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 05:38:48 +0000 (14 13:38 +0800)
tree91be8dd84a3c3535dc04390bde6841e5a2440da0
parent79ca2e145f0d67b814bbc0a49b33f12ddc95116b
WebUI: set Cross Origin Opener Policy to `same-origin`

This separates browsing context for different origin sites and prevents
leaking data from it.
This header is only present when using built-in WebUI. Alternative WebUI
is not affected.
https://web.dev/why-coop-coep/#coop

PR #19157.
src/base/http/types.h
src/webui/webapplication.cpp