Bug 1241565 - nsIHttpChannelInternal should be a builtinclass, r=honzab.moz

This commit is contained in:
Andrea Marchesini 2016-01-22 11:55:54 +00:00
parent 8002f9c857
commit 9e47057422
2 changed files with 3 additions and 4 deletions

View File

@ -824,9 +824,7 @@ nsHttpChannelAuthProvider::BlockPrompt()
nsCOMPtr<nsIHttpChannelInternal> chanInternal = do_QueryInterface(mAuthChannel);
MOZ_ASSERT(chanInternal);
bool skipAuthentication = false;
nsresult rv = chanInternal->GetBlockAuthPrompt(&skipAuthentication);
if (NS_SUCCEEDED(rv) && skipAuthentication) {
if (chanInternal->GetBlockAuthPrompt()) {
return true;
}

View File

@ -39,7 +39,7 @@ interface nsIHttpUpgradeListener : nsISupports
* using any feature exposed by this interface, be aware that this interface
* will change and you will be broken. You have been warned.
*/
[scriptable, uuid(01b8296a-e206-4e5f-acab-82bd8b6a900c)]
[builtinclass, scriptable, uuid(4e28263d-1e03-46f4-aa5c-9512f91957f9)]
interface nsIHttpChannelInternal : nsISupports
{
/**
@ -271,5 +271,6 @@ interface nsIHttpChannelInternal : nsISupports
* authentication failure, that failure will be propagated to the channel
* listener. Must be called before opening the channel, otherwise throws.
*/
[infallible]
attribute boolean blockAuthPrompt;
};