Bug 1183907, properly wrappercache worker URL object, r=baku

This commit is contained in:
Olli Pettay 2015-07-15 14:50:59 +03:00
parent 05e7622943
commit 2b16b265fc
2 changed files with 3 additions and 2 deletions

View File

@ -482,7 +482,7 @@ private:
mozilla::ErrorResult& mRv;
};
NS_IMPL_CYCLE_COLLECTION(URL, mSearchParams)
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(URL, mSearchParams)
// The reason for using worker::URL is to have different refcnt logging than
// for main thread URL.
@ -490,6 +490,7 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(workers::URL)
NS_IMPL_CYCLE_COLLECTING_RELEASE(workers::URL)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(URL)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END

View File

@ -35,7 +35,7 @@ class URL final : public mozilla::dom::URLSearchParamsObserver
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_CLASS(URL)
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(URL)
URL(WorkerPrivate* aWorkerPrivate, URLProxy* aURLProxy);