mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backint out bug 580450, changeset 4d2c9a0c5e1c
This commit is contained in:
parent
ea56218085
commit
1a55ff58cd
@ -351,7 +351,7 @@ ContentChild::RecvNotifyRemotePrefObserver(const nsCString& aPref)
|
||||
bool
|
||||
ContentChild::RecvNotifyVisited(const IPC::URI& aURI)
|
||||
{
|
||||
nsCOMPtr<nsIURI> newURI(aURI);
|
||||
nsCOMPtr<nsIURI> newURI = aURI;
|
||||
History::GetService()->NotifyVisited(newURI);
|
||||
return true;
|
||||
}
|
||||
|
@ -277,7 +277,7 @@ ContentParent::RecvTestPermission(const IPC::URI& aUri,
|
||||
{
|
||||
EnsurePermissionService();
|
||||
|
||||
nsCOMPtr<nsIURI> uri(aUri);
|
||||
nsCOMPtr<nsIURI> uri = aUri;
|
||||
if (aExact) {
|
||||
mPermissionService->TestExactPermission(uri, aType.get(), retValue);
|
||||
} else {
|
||||
@ -435,7 +435,7 @@ ContentParent::RequestRunToCompletion()
|
||||
bool
|
||||
ContentParent::RecvStartVisitedQuery(const IPC::URI& aURI)
|
||||
{
|
||||
nsCOMPtr<nsIURI> newURI(aURI);
|
||||
nsCOMPtr<nsIURI> newURI = aURI;
|
||||
IHistory *history = nsContentUtils::GetHistory();
|
||||
history->RegisterVisitedCallback(newURI, nsnull);
|
||||
return true;
|
||||
@ -444,11 +444,11 @@ ContentParent::RecvStartVisitedQuery(const IPC::URI& aURI)
|
||||
|
||||
bool
|
||||
ContentParent::RecvVisitURI(const IPC::URI& uri,
|
||||
const IPC::URI& referrer,
|
||||
const PRUint32& flags)
|
||||
const IPC::URI& referrer,
|
||||
const PRUint32& flags)
|
||||
{
|
||||
nsCOMPtr<nsIURI> ourURI(uri);
|
||||
nsCOMPtr<nsIURI> ourReferrer(referrer);
|
||||
nsCOMPtr<nsIURI> ourURI = uri;
|
||||
nsCOMPtr<nsIURI> ourReferrer = referrer;
|
||||
IHistory *history = nsContentUtils::GetHistory();
|
||||
history->VisitURI(ourURI, ourReferrer, flags);
|
||||
return true;
|
||||
|
@ -70,8 +70,8 @@ CookieServiceParent::RecvGetCookieString(const IPC::URI& aHost,
|
||||
|
||||
// Deserialize URIs. Having a host URI is mandatory and should always be
|
||||
// provided by the child; thus we consider failure fatal.
|
||||
nsCOMPtr<nsIURI> hostURI(aHost);
|
||||
nsCOMPtr<nsIURI> originatingURI(aOriginating);
|
||||
nsCOMPtr<nsIURI> hostURI = aHost;
|
||||
nsCOMPtr<nsIURI> originatingURI = aOriginating;
|
||||
if (!hostURI)
|
||||
return false;
|
||||
|
||||
@ -92,8 +92,8 @@ CookieServiceParent::RecvSetCookieString(const IPC::URI& aHost,
|
||||
|
||||
// Deserialize URIs. Having a host URI is mandatory and should always be
|
||||
// provided by the child; thus we consider failure fatal.
|
||||
nsCOMPtr<nsIURI> hostURI(aHost);
|
||||
nsCOMPtr<nsIURI> originatingURI(aOriginating);
|
||||
nsCOMPtr<nsIURI> hostURI = aHost;
|
||||
nsCOMPtr<nsIURI> originatingURI = aOriginating;
|
||||
if (!hostURI)
|
||||
return false;
|
||||
|
||||
|
@ -57,16 +57,15 @@ class URI {
|
||||
public:
|
||||
URI() : mURI(nsnull) {}
|
||||
URI(nsIURI* aURI) : mURI(aURI) {}
|
||||
operator nsIURI*() const { return mURI.get(); }
|
||||
// The contained URI is already addrefed on creation. We don't want another
|
||||
// addref when passing it off to its actual owner.
|
||||
operator nsCOMPtr<nsIURI>() const { return already_AddRefed<nsIURI>(mURI); }
|
||||
|
||||
friend struct ParamTraits<URI>;
|
||||
|
||||
private:
|
||||
// Unimplemented
|
||||
URI(URI&);
|
||||
URI& operator=(URI&);
|
||||
|
||||
nsCOMPtr<nsIURI> mURI;
|
||||
nsIURI* mURI;
|
||||
};
|
||||
|
||||
template<>
|
||||
@ -137,7 +136,7 @@ struct ParamTraits<URI>
|
||||
if (NS_FAILED(rv))
|
||||
return false;
|
||||
|
||||
uri.swap(aResult->mURI);
|
||||
uri.forget(&aResult->mURI);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -154,7 +153,7 @@ struct ParamTraits<URI>
|
||||
if (!serializable || !serializable->Read(aMsg, aIter))
|
||||
return false;
|
||||
|
||||
uri.swap(aResult->mURI);
|
||||
uri.forget(&aResult->mURI);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -107,11 +107,11 @@ HttpChannelParent::RecvAsyncOpen(const IPC::URI& aURI,
|
||||
const PRBool& allowPipelining,
|
||||
const PRBool& forceAllowThirdPartyCookie)
|
||||
{
|
||||
nsCOMPtr<nsIURI> uri(aURI);
|
||||
nsCOMPtr<nsIURI> originalUri(aOriginalURI);
|
||||
nsCOMPtr<nsIURI> docUri(aDocURI);
|
||||
nsCOMPtr<nsIURI> referrerUri(aReferrerURI);
|
||||
|
||||
nsCOMPtr<nsIURI> uri = aURI;
|
||||
nsCOMPtr<nsIURI> originalUri = aOriginalURI;
|
||||
nsCOMPtr<nsIURI> docUri = aDocURI;
|
||||
nsCOMPtr<nsIURI> referrerUri = aReferrerURI;
|
||||
|
||||
nsCString uriSpec;
|
||||
uri->GetSpec(uriSpec);
|
||||
LOG(("HttpChannelParent RecvAsyncOpen [this=%x uri=%s]\n",
|
||||
|
Loading…
Reference in New Issue
Block a user