add_task(async function comparePublicKey() { var data = await sendRequestToWorker({ type: "publicKey" }); var p256dhKey = new Uint8Array(pushSubscription.getKey("p256dh"));
is(p256dhKey.length, 65, "Key share should be 65 octets");
isDeeply(
p256dhKey,
new Uint8Array(data.p256dh), "Mismatched key share"
); var authSecret = new Uint8Array(pushSubscription.getKey("auth"));
is(authSecret.length, 16, "Auth secret should be 16 octets");
isDeeply(
authSecret,
new Uint8Array(data.auth), "Mismatched auth secret"
);
});
add_task(async function unsubscribe() {
controlledFrame.remove();
await pushSubscription.unsubscribe();
});
add_task(async function unregister() {
await registration.unregister();
});
</script>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.