Backed out changeset ed867296b6d4 (bug 1591900) for causing mochitest fission failures in test_ext_activityLog.html CLOSED TREE
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/dom/Event.h"
|
||||
#include "mozilla/dom/BrowserHost.h"
|
||||
#include "mozIThirdPartyUtil.h"
|
||||
#include "nsIContentPolicy.h"
|
||||
#include "nsIClassifiedChannel.h"
|
||||
#include "nsIHttpChannelInternal.h"
|
||||
@@ -926,26 +925,6 @@ void ChannelWrapper::GetUrlClassification(
|
||||
aRetVal.SetValue(std::move(classification));
|
||||
}
|
||||
|
||||
bool ChannelWrapper::ThirdParty() const {
|
||||
nsCOMPtr<mozIThirdPartyUtil> thirdPartyUtil = services::GetThirdPartyUtil();
|
||||
if (NS_WARN_IF(!thirdPartyUtil)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIHttpChannel> chan = MaybeHttpChannel();
|
||||
if (!chan) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool thirdParty = false;
|
||||
nsresult rv = thirdPartyUtil->IsThirdPartyChannel(chan, nullptr, &thirdParty);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return thirdParty;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* Error handling
|
||||
*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user