Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1937188] Restore geolocation permission for wpt geolocation policy tests and make attribute tests more similar #50150

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

moz-wptsync-bot
Copy link
Collaborator

Permission was removed from permissions-policy-geolocation.html upstream but not
re-added to the individual tests. These two tests need it. They were
incorrectly passing in CI due to the tests that run before them
(disabled-by-permissions-policy.https.sub.html) granting the permission --
they would fail when run individually.

This also does some cosmetic cleanup to make it clear that the tests are
very similar. This includes renaming the tests from "Geolocation API"
to "Geolocation", as the name was changed in Bug 1902628 [wpt PR 46750].

Additionally, enabled-by-permission-policy-attribute fails in test-verify mode
as an async_test -- the async setup function is not compatible with
that. enabled-by-permission-policy-attribute-redirect-on-load
is the same test but with a redirect -- it is a promise_test. This
switches enabled-by-permission-policy-attribute to work as a promise_test,
which fixes the test-verify issue.

Differential Revision: https://phabricator.services.mozilla.com/D232772

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1937188
gecko-commit: 2ad450615824e0e0ba0d95e928a8d3e0d59c2f9e
gecko-reviewers: saschanaz, jgraham

…ake attribute tests more similar

Permission was removed from permissions-policy-geolocation.html upstream but not
re-added to the individual tests.  These two tests need it.  They were
incorrectly passing in CI due to the tests that run before them
(disabled-by-permissions-policy.https.sub.html) granting the permission --
they would fail when run individually.

This also does some cosmetic cleanup to make it clear that the tests are
very similar.  This includes renaming the tests from "Geolocation API"
to "Geolocation", as the name was changed in Bug 1902628 [wpt PR 46750].

Additionally, enabled-by-permission-policy-attribute fails in test-verify mode
as an async_test -- the async setup function is not compatible with
that.  enabled-by-permission-policy-attribute-redirect-on-load
is the same test but with a redirect -- it is a promise_test.  This
switches enabled-by-permission-policy-attribute to work as a promise_test,
which fixes the test-verify issue.

Differential Revision: https://phabricator.services.mozilla.com/D232772

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1937188
gecko-commit: 2ad450615824e0e0ba0d95e928a8d3e0d59c2f9e
gecko-reviewers: saschanaz, jgraham
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit 85b330f into master Jan 18, 2025
13 of 16 checks passed
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1937188 branch January 18, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants