Bug 1447341 - make blob: protocol handler support nsISupportsWeakReference, r=baku

MozReview-Commit-ID: 1UqdssdVs3b

--HG--
extra : rebase_source : 9551b408a579662b13a79c8e4b3c7f683b46f40a
This commit is contained in:
Gijs Kruitbosch 2018-04-17 15:36:25 +01:00
parent 4af496d7f2
commit 82f83be436
2 changed files with 4 additions and 1 deletions

View File

@ -832,7 +832,8 @@ nsHostObjectProtocolHandler::Traverse(const nsACString& aUri,
// -----------------------------------------------------------------------
// Protocol handler
NS_IMPL_ISUPPORTS(nsHostObjectProtocolHandler, nsIProtocolHandler)
NS_IMPL_ISUPPORTS(nsHostObjectProtocolHandler, nsIProtocolHandler,
nsISupportsWeakReference)
NS_IMETHODIMP
nsHostObjectProtocolHandler::GetDefaultPort(int32_t *result)

View File

@ -13,6 +13,7 @@
#include "nsCOMPtr.h"
#include "nsIInputStream.h"
#include "nsTArray.h"
#include "nsWeakReference.h"
#define BLOBURI_SCHEME "blob"
#define FONTTABLEURI_SCHEME "moz-fonttable"
@ -34,6 +35,7 @@ class MediaSource;
class nsHostObjectProtocolHandler : public nsIProtocolHandler
, public nsIProtocolHandlerWithDynamicFlags
, public nsSupportsWeakReference
{
public:
nsHostObjectProtocolHandler();