Bug 1852892 [wpt PR 41941] - [FedCM] Check top frame's visibility instead of iframe...
commit648e34ada0b43a276d821b213bc827ff325b4ffe
authorYi Gu <yigu@chromium.org>
Wed, 27 Sep 2023 11:58:10 +0000 (27 11:58 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 28 Sep 2023 14:56:36 +0000 (28 14:56 +0000)
treeee18dc82bec784998a193009e1caad2a012c7982
parentad1219f1f6604a74147cc881fc3ccecc3822a3e3
Bug 1852892 [wpt PR 41941] - [FedCM] Check top frame's visibility instead of iframe's, a=testonly

Automatic update from web-platform-tests
[FedCM] Check top frame's visibility instead of iframe's

Currently we only proceed with FedCM API if the render frame is visible.
This makes sense when FedCM is used in the top frame. However, it's
common for top frame to embed a cross-origin iframe, possibly invisible,
to invoke FedCM API.

This patch checks the top frame's visibility instead of the iframe's to
make sure FedCM API can be used as long as the top frame is visible.

Change-Id: I299f1d3fb6dfb50b45cb5323efc6a97c95d45132
Bug: 1481308
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4860279
Reviewed-by: Zachary Tan <tanzachary@chromium.org>
Commit-Queue: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1195567}

--

wpt-commits: e4d7159520f7d5a72695e30ab8b54f48a5e13b40
wpt-pr: 41941
testing/web-platform/tests/credential-management/fedcm-iframe.https.html