mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 897503 - part 1 - HttpChannelParent reference count bug of nsHttpHandler r=sworkman
This commit is contained in:
parent
1c0a912273
commit
21de752dfd
@ -48,16 +48,17 @@ HttpChannelParent::HttpChannelParent(PBrowserParent* iframeEmbedding,
|
||||
, mLoadContext(aLoadContext)
|
||||
{
|
||||
// Ensure gHttpHandler is initialized: we need the atom table up and running.
|
||||
nsIHttpProtocolHandler* handler;
|
||||
CallGetService(NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "http", &handler);
|
||||
MOZ_ASSERT(handler);
|
||||
nsCOMPtr<nsIHttpProtocolHandler> dummyInitializer =
|
||||
do_GetService(NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "http");
|
||||
|
||||
MOZ_ASSERT(gHttpHandler);
|
||||
mHttpHandler = gHttpHandler;
|
||||
|
||||
mTabParent = static_cast<mozilla::dom::TabParent*>(iframeEmbedding);
|
||||
}
|
||||
|
||||
HttpChannelParent::~HttpChannelParent()
|
||||
{
|
||||
gHttpHandler->Release();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
class nsICacheEntryDescriptor;
|
||||
class nsIAssociatedContentSecurity;
|
||||
class nsHttpHandler;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
@ -120,6 +121,7 @@ private:
|
||||
PBOverrideStatus mPBOverride;
|
||||
|
||||
nsCOMPtr<nsILoadContext> mLoadContext;
|
||||
nsRefPtr<nsHttpHandler> mHttpHandler;
|
||||
};
|
||||
|
||||
} // namespace net
|
||||
|
Loading…
Reference in New Issue
Block a user