Bug 931383 - nsICacheEntryOpenCallback is not defined in pageInfo.js, test_clearHistory_shutdown.js. r=dao, a=bajaj
authorHonza Bambas <honzab.moz@firemni.cz>
Wed, 06 Nov 2013 16:59:05 +0100
changeset 167378 11b4854b7cdf9c92fc75a2c979ec7962a57f2b4f
parent 167377 c6d43940a3ed122f845f0e3f0d3026451b455aea
child 167379 187487847908e206df27bede829162428a0e112c
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, bajaj
bugs931383
milestone27.0a2
Bug 931383 - nsICacheEntryOpenCallback is not defined in pageInfo.js, test_clearHistory_shutdown.js. r=dao, a=bajaj
browser/base/content/pageinfo/pageInfo.js
browser/components/places/tests/unit/test_clearHistory_shutdown.js
--- a/browser/base/content/pageinfo/pageInfo.js
+++ b/browser/base/content/pageinfo/pageInfo.js
@@ -466,17 +466,17 @@ function toggleGroupbox(id)
     }
   }
 }
 
 function openCacheEntry(key, cb)
 {
   var checkCacheListener = {
     onCacheEntryCheck: function(entry, appCache) {
-      return nsICacheEntryOpenCallback.ENTRY_VALID;
+      return Components.interfaces.nsICacheEntryOpenCallback.ENTRY_WANTED;
     },
     onCacheEntryAvailable: function(entry, isNew, appCache, status) {
       cb(entry);
     },
     get mainThreadOnly() { return true; }
   };
   diskStorage.asyncOpenURI(Services.io.newURI(key, null, null), "", nsICacheStorage.OPEN_READONLY, checkCacheListener);
 }
--- a/browser/components/places/tests/unit/test_clearHistory_shutdown.js
+++ b/browser/components/places/tests/unit/test_clearHistory_shutdown.js
@@ -134,17 +134,17 @@ function getDistinctNotifications() {
 }
 
 function storeCache(aURL, aContent) {
   let cache = Services.cache2;
   let storage = cache.diskCacheStorage(LoadContextInfo.default, false);
 
   var storeCacheListener = {
     onCacheEntryCheck: function (entry, appcache) {
-      return nsICacheEntryOpenCallback.ENTRY_VALID;
+      return Ci.nsICacheEntryOpenCallback.ENTRY_WANTED;
     },
 
     onCacheEntryAvailable: function (entry, isnew, appcache, status) {
       do_check_eq(status, Cr.NS_OK);
 
       entry.setMetaDataElement("servertype", "0");
       var os = entry.openOutputStream(0);