Bug 1140658 - Part 6: Randomize the URL of the ServiceWorker script in order to work around bug 1141256 for now

This commit is contained in:
Ehsan Akhgari 2015-03-06 22:19:35 -05:00
parent b2c3d38b97
commit b2ac00aa59

View File

@ -28,7 +28,7 @@ function serviceWorkerTestExec(testFile) {
document.body.appendChild(iframe);
}
navigator.serviceWorker.register("worker_wrapper.js", {scope: "."})
navigator.serviceWorker.register("worker_wrapper.js" + "?" + (Math.random()), {scope: "."})
.then(function(registration) {
if (registration.installing) {
registration.installing.onstatechange = function(e) {