Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge 102] Privacy Sandbox: Defensively disallow Javascript in handler
CL adjusts the PrivacySandboxDialogHandler to be more defensive when handling calls from the renderer. Specifically, any user initiated action which would result in a call to a OnceCallback is made idempotent. This is achieved by disallowing Javascript on the first such call, and confirming JavaScript is allowed in subsequent calls. (cherry picked from commit 1a44290) Bug: 1323611 Change-Id: I477bbbec6469dbd705afe2cdf7662f8603ca3970 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3634519 Commit-Queue: Theodore Olsauskas-Warren <sauski@google.com> Reviewed-by: Olesia Marukhno <olesiamarukhno@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1000996} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3641763 Auto-Submit: Theodore Olsauskas-Warren <sauski@google.com> Commit-Queue: Olesia Marukhno <olesiamarukhno@google.com> Cr-Commit-Position: refs/branch-heads/5005@{#657} Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
- Loading branch information
1 parent
90e7276
commit 42feb1a
Showing
2 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters