зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1824415 [wpt PR 39190] - Deflake permission observation WPT by ignoring the event target, a=testonly
Automatic update from web-platform-tests Deflake permission observation WPT by ignoring the event target This just hides the underlying problem, that the event is being fired at the wrong target sometimes (if my hypothesis is correct, anyway). But it will fix the flake, so we don't have to disable this test or ignore its status. Bug: 1427214 Change-Id: Ic97acb53d95077264e34253adc25a125b3ce1685 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4368364 Commit-Queue: Chris Fredrickson <cfredric@chromium.org> Auto-Submit: Chris Fredrickson <cfredric@chromium.org> Reviewed-by: Johann Hofmann <johannhof@chromium.org> Commit-Queue: Johann Hofmann <johannhof@chromium.org> Cr-Commit-Position: refs/heads/main@{#1121755} -- wpt-commits: 9a351c2a10bebd22e29dd5c47544c91fe02b0ecb wpt-pr: 39190
This commit is contained in:
Родитель
93adddb24b
Коммит
2d31f294f2
|
@ -34,7 +34,7 @@ window.addEventListener("message", async (event) => {
|
|||
case "observe_permission_change":
|
||||
const status = await navigator.permissions.query({name: "storage-access"});
|
||||
status.addEventListener("change", (event) => {
|
||||
reply(event.target.state)
|
||||
reply(status.state)
|
||||
}, { once: true });
|
||||
break;
|
||||
case "reload":
|
||||
|
|
Загрузка…
Ссылка в новой задаче