// test for bug 1408734
add_task(async () => {
// register a service worker
let registration = await navigator.serviceWorker.register("fetch.js",
{scope: "./"});
// wait for service worker be activated
await waitForState(registration.installing, "activated");
// get the ServiceWorkerRegistration we just register through GetRegistration
registration = await navigator.serviceWorker.getRegistration("./");
ok(registration, "should get the registration under scope './'");
// access registration.updateViaCache to trigger the bug
// we really care that we don't crash. In the future we will fix
is(registration.updateViaCache, "imports", "registration.updateViaCache should work after unregister()");
});
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.