Closed Bug 1739292 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 31495 - Require Notifications be used in secure contexts

Categories

(Toolkit Graveyard :: Notifications and Alerts, task, P4)

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 31495 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/31495
Details from upstream follow.

Dominick Ng <dominickn@chromium.org> wrote:

Require Notifications be used in secure contexts

This is a dusting off of https://github.com/web-platform-tests/wpt/pull/6596 (with most of it deleted).

Component: web-platform-tests → Notifications and Alerts
Product: Testing → Toolkit

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 8 tests and 2 subtests

Status Summary

Firefox

OK : 8
PASS : 2
FAIL : 1
NOTRUN: 42

Chrome

OK : 8
PASS : 3
NOTRUN: 42

Safari

OK : 8
PASS : 3
NOTRUN: 42

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/notifications/permissions-non-secure.html
Notification.permission must be called from a secure context: FAIL

New Tests That Don't Pass

/notifications/constructor-basic.https.html
Called the notification constructor with one argument.: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
/notifications/constructor-invalid.https.html
Called the notification constructor with no arguments.: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
/notifications/event-onclose.https.html
Checked test prerequisites.: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
/notifications/event-onshow.https.html
Checked test prerequisites.: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
/notifications/instance.https.html
Notification instance basic tests: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
/notifications/lang.https.html
Roundtripping lang "". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "en". Expecting "en".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "en-US-x-hixie". Expecting "en-US-x-hixie".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-DE". Expecting "de-DE".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-de". Expecting "de-de".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-De". Expecting "de-De".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-dE". Expecting "de-dE".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-DE-1996". Expecting "de-DE-1996".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-Latn-DE". Expecting "de-Latn-DE".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-Latf-DE". Expecting "de-Latf-DE".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-Latn-DE-1996". Expecting "de-Latn-DE-1996".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "de-CH". Expecting "de-CH".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "it-CH". Expecting "it-CH".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "fr-CH". Expecting "fr-CH".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "rm-CH". Expecting "rm-CH".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "es-CH". Expecting "es-CH".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "Latn-de". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "Latf-de". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "tic-tac-tac-toe". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "cocoa-1-bar". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "cocoa-a-bar". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "en-". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "en--". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "foo--bar". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "id---Java". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "fr-x". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "fr-xenomorph". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "fr-x-xenomorph". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "a". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "a-fr-lang". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "b-fr-lang". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "es1-KK-aa-bb-cc-dd". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "es2-KL-aa-bb-cc-dd". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "es3-KM-aa-bb-cc-dd". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "fooÉ". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "foöÉ-bÁr". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Roundtripping lang "foöÉbÁr". Expecting "".: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
/notifications/permissions-non-secure.html
Notification.permission must be called from a secure context: FAIL (Chrome: PASS, Safari: PASS)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7fa239dedefe [wpt PR 31495] - Require Notifications be used in secure contexts, a=testonly https://hg.mozilla.org/integration/autoland/rev/5d375fcf273e [wpt PR 31495] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.