зеркало из https://github.com/mozilla/gecko-dev.git
Bug 524232 - cache about: protocol handlers r=mayhemer
This commit is contained in:
Родитель
2c33490365
Коммит
74c91a9068
|
@ -31,8 +31,8 @@
|
|||
#define NS_IPC_IOSERVICE_SET_OFFLINE_TOPIC "ipc:network:set-offline"
|
||||
#define NS_IPC_IOSERVICE_SET_CONNECTIVITY_TOPIC "ipc:network:set-connectivity"
|
||||
|
||||
static const char gScheme[][sizeof("resource")] =
|
||||
{"chrome", "file", "http", "https", "jar", "data", "resource"};
|
||||
static const char gScheme[][sizeof("moz-safe-about")] =
|
||||
{"chrome", "file", "http", "https", "jar", "data", "about", "moz-safe-about", "resource"};
|
||||
|
||||
class nsAsyncRedirectVerifyHelper;
|
||||
class nsINetworkLinkService;
|
||||
|
|
|
@ -38,7 +38,7 @@ static bool IsSafeToLinkForUntrustedContent(nsIAboutModule *aModule, nsIURI *aUR
|
|||
}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsAboutProtocolHandler, nsIProtocolHandler)
|
||||
NS_IMPL_ISUPPORTS(nsAboutProtocolHandler, nsIProtocolHandler, nsISupportsWeakReference)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// nsIProtocolHandler methods:
|
||||
|
@ -213,7 +213,7 @@ nsAboutProtocolHandler::AllowPort(int32_t port, const char *scheme, bool *_retva
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Safe about protocol handler impl
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsSafeAboutProtocolHandler, nsIProtocolHandler)
|
||||
NS_IMPL_ISUPPORTS(nsSafeAboutProtocolHandler, nsIProtocolHandler, nsISupportsWeakReference)
|
||||
|
||||
// nsIProtocolHandler methods:
|
||||
|
||||
|
|
|
@ -8,11 +8,13 @@
|
|||
|
||||
#include "nsIProtocolHandler.h"
|
||||
#include "nsSimpleNestedURI.h"
|
||||
#include "nsWeakReference.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class nsIURI;
|
||||
|
||||
class nsAboutProtocolHandler : public nsIProtocolHandler
|
||||
, public nsSupportsWeakReference
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
@ -28,6 +30,7 @@ private:
|
|||
};
|
||||
|
||||
class nsSafeAboutProtocolHandler final : public nsIProtocolHandler
|
||||
, public nsSupportsWeakReference
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
Загрузка…
Ссылка в новой задаче