From bda6ed59fd74822c9e14afd3163334bdc78aaa43 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Tue, 24 Mar 2015 07:34:17 -0700 Subject: [PATCH] Bug 1146557 P1 Fix CacheStorage and Cache to QI to nsISupports correctly. r=ehsan --- dom/cache/Cache.cpp | 1 + dom/cache/CacheStorage.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/dom/cache/Cache.cpp b/dom/cache/Cache.cpp index 58ecd1ceac6..c0ba120ac99 100644 --- a/dom/cache/Cache.cpp +++ b/dom/cache/Cache.cpp @@ -93,6 +93,7 @@ NS_IMPL_CYCLE_COLLECTION_TRACE_WRAPPERCACHE(mozilla::dom::cache::Cache) NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(Cache) NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY + NS_INTERFACE_MAP_ENTRY(nsISupports) NS_INTERFACE_MAP_END Cache::Cache(nsIGlobalObject* aGlobal, CacheChild* aActor) diff --git a/dom/cache/CacheStorage.cpp b/dom/cache/CacheStorage.cpp index d576440233e..39cef3d87d9 100644 --- a/dom/cache/CacheStorage.cpp +++ b/dom/cache/CacheStorage.cpp @@ -55,6 +55,7 @@ NS_IMPL_CYCLE_COLLECTION_TRACE_WRAPPERCACHE(mozilla::dom::cache::CacheStorage) NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(CacheStorage) NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY + NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIIPCBackgroundChildCreateCallback) NS_INTERFACE_MAP_ENTRY(nsIIPCBackgroundChildCreateCallback) NS_INTERFACE_MAP_END