mirror of
https://github.com/servo/servo.git
synced 2025-09-01 18:48:23 +01:00
feat: add Notification
Web API binding (#34842)
* feat: add Notification Web API binding Signed-off-by: Jason Tsai <git@pews.dev> * chore: update spec link Signed-off-by: Jason Tsai <git@pews.dev> * chore: fix clippy Signed-off-by: Jason Tsai <git@pews.dev> * fix: index overflow Signed-off-by: Jason Tsai <git@pews.dev> * test(tidy): add notification WebIDL standard URL Signed-off-by: Jason Tsai <git@pews.dev> * fix: allow crown::unrooted_must_root Signed-off-by: Jason Tsai <git@pews.dev> * implement GetPermission Signed-off-by: Jason Tsai <git@pews.dev> * fix silent type Signed-off-by: Jason Tsai <git@pews.dev> * add all properties Signed-off-by: Jason Tsai <git@pews.dev> * test: add Notification to global Signed-off-by: Jason Tsai <git@pews.dev> * chore: update wpt manifest and fix clippy Signed-off-by: Jason Tsai <git@pews.dev> * test: temp skip notifications Signed-off-by: Jason Tsai <git@pews.dev> * add vibration and apply suggestions Signed-off-by: Jason Tsai <git@pews.dev> * partially implement RequestPermission Signed-off-by: Jason Tsai <git@pews.dev> * call Permission request permission algorithm Signed-off-by: Jason Tsai <git@pews.dev> * chore: pub crate Notification Signed-off-by: Jason Tsai <git@pews.dev> * chore: fix clippy Signed-off-by: Jason Tsai <git@pews.dev> * chore: crown attribute Signed-off-by: Jason Tsai <git@pews.dev> * fix part of suggestions Signed-off-by: Jason Tsai <git@pews.dev> * fix: store private `Action` structure Signed-off-by: Jason Tsai <git@pews.dev> * chore: fix typo Signed-off-by: Jason Tsai <git@pews.dev> * fix: serialize images URL Signed-off-by: Jason Tsai <git@pews.dev> * fix: use globalscope as environment settings object Signed-off-by: Jason Tsai <git@pews.dev> * chore: add pref `dom_notification_enabled` and default to disabled Signed-off-by: Jason Tsai <git@pews.dev> * fix: use `descriptor_permission_state` Signed-off-by: Jason Tsai <git@pews.dev> * apply suggestions Signed-off-by: Jason Tsai <git@pews.dev> Co-authored-by: Josh Matthews <josh@joshmatthews.net> * test: remove passed meta Signed-off-by: Jason Tsai <git@pews.dev> * test: enable notification prefs in mozilla tests Signed-off-by: Jason Tsai <git@pews.dev> --------- Signed-off-by: Jason Tsai <git@pews.dev> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
14d591c462
commit
22c3a63737
21 changed files with 717 additions and 370 deletions
|
@ -2,171 +2,6 @@
|
|||
expected: ERROR
|
||||
|
||||
[idlharness.https.any.worker.html]
|
||||
[idl_test setup]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute permission]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: member requestPermission]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute maxActions]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute onclick]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute onshow]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute onerror]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute onclose]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute title]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute dir]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute lang]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute body]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute tag]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute image]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute icon]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute badge]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute vibrate]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute timestamp]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute renotify]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute silent]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute requireInteraction]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute data]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute actions]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: operation close()]
|
||||
expected: FAIL
|
||||
|
||||
[Notification must be primary interface of notification]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of notification]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "permission" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must not have property "requestPermission"]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "maxActions" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "onclick" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "onshow" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "onerror" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "onclose" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "title" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "dir" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "lang" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "body" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "tag" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "image" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "icon" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "badge" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "vibrate" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "timestamp" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "renotify" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "silent" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "requireInteraction" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "data" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "actions" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "close()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ServiceWorkerRegistration interface: operation showNotification(DOMString, optional NotificationOptions)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -175,174 +10,6 @@
|
|||
|
||||
|
||||
[idlharness.https.any.html]
|
||||
[idl_test setup]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute permission]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: operation requestPermission(optional NotificationPermissionCallback)]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute maxActions]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute onclick]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute onshow]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute onerror]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute onclose]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute title]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute dir]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute lang]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute body]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute tag]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute image]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute icon]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute badge]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute vibrate]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute timestamp]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute renotify]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute silent]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute requireInteraction]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute data]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: attribute actions]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: operation close()]
|
||||
expected: FAIL
|
||||
|
||||
[Notification must be primary interface of notification]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of notification]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "permission" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "requestPermission(optional NotificationPermissionCallback)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: calling requestPermission(optional NotificationPermissionCallback) on notification with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "maxActions" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "onclick" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "onshow" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "onerror" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "onclose" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "title" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "dir" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "lang" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "body" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "tag" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "image" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "icon" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "badge" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "vibrate" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "timestamp" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "renotify" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "silent" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "requireInteraction" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "data" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "actions" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Notification interface: notification must inherit property "close()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ServiceWorkerRegistration interface: operation showNotification(DOMString, optional NotificationOptions)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue