Bug 1159407 - JavaScript error at aboutServiceWorkers.js when updating the service worker via about:serviceworkers page. r=baku
authorJose Antonio Olivera Ortega <jaoo@jaoo.es>
Wed, 29 Apr 2015 08:24:00 +0200
changeset 241761 a12fdf664207588dc6395b318b90efcfbdb20c71
parent 241760 8e4ecd2f7a60c788135128352e3215acc85413f3
child 241762 1fe6e588713d60cde31ddec243356418c6e836c7
push id28669
push userryanvm@gmail.com
push dateThu, 30 Apr 2015 17:57:05 +0000
treeherdermozilla-central@7723b15ea695 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1159407
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1159407 - JavaScript error at aboutServiceWorkers.js when updating the service worker via about:serviceworkers page. r=baku
toolkit/content/aboutServiceWorkers.js
--- a/toolkit/content/aboutServiceWorkers.js
+++ b/toolkit/content/aboutServiceWorkers.js
@@ -127,17 +127,17 @@ function display(info) {
     error => {
       dump("about:serviceworkers - push registration failed\n");
     }
   );
 
   let updateButton = document.createElement("button");
   updateButton.appendChild(document.createTextNode(bundle.GetStringFromName('update')));
   updateButton.onclick = function() {
-    gSWM.update(info.scope);
+    gSWM.softUpdate(info.scope);
   };
   div.appendChild(updateButton);
 
   let unregisterButton = document.createElement("button");
   unregisterButton.appendChild(document.createTextNode(bundle.GetStringFromName('unregister')));
   div.appendChild(unregisterButton);
 
   let loadingMessage = document.createElement('span');