Bug 1222619 - about:serviceworkers should show the correct cache entries, r=bkelly
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 10 Nov 2015 16:06:15 +0000
changeset 308103 f83d4cf7b763eec0cde65c4e1518406bb7c9ff9f
parent 308102 851dc8327772d5f6491b1bed591fc328baea50b7
child 308104 0372851573014c50a1337263408cb9641a62ea7f
push id7438
push useratolfsen@mozilla.com
push dateWed, 11 Nov 2015 16:08:26 +0000
reviewersbkelly
bugs1222619
milestone45.0a1
Bug 1222619 - about:serviceworkers should show the correct cache entries, r=bkelly
toolkit/content/aboutServiceWorkers.js
--- a/toolkit/content/aboutServiceWorkers.js
+++ b/toolkit/content/aboutServiceWorkers.js
@@ -114,19 +114,19 @@ function display(info, pushNotificationS
     return textNode;
   }
 
   createItem(bundle.GetStringFromName('scope'), info.scope);
   createItem(bundle.GetStringFromName('scriptSpec'), info.scriptSpec, true);
   let currentWorkerURL = info.activeWorker ? info.activeWorker.scriptSpec : "";
   createItem(bundle.GetStringFromName('currentWorkerURL'), currentWorkerURL, true);
   let activeCacheName = info.activeWorker ? info.activeWorker.cacheName : "";
-  createItem(bundle.GetStringFromName('activeCacheName'), info.activeCacheName);
+  createItem(bundle.GetStringFromName('activeCacheName'), activeCacheName);
   let waitingCacheName = info.waitingWorker ? info.waitingWorker.cacheName : "";
-  createItem(bundle.GetStringFromName('waitingCacheName'), info.waitingCacheName);
+  createItem(bundle.GetStringFromName('waitingCacheName'), waitingCacheName);
 
   let pushItem = createItem(bundle.GetStringFromName('pushEndpoint'), bundle.GetStringFromName('waiting'));
   if (pushNotificationService) {
     pushNotificationService.registration(info.scope, info.principal.originAttributes)
       .then(pushRecord => {
         pushItem.data = JSON.stringify(pushRecord);
       }).catch(error => {
         dump("about:serviceworkers - retrieving push registration failed\n");