Backed out 5 changesets (bug 1598520) for perma fails on test_enumerateDevices_navigation.html. CLOSED TREE
Backed out changeset 583dac2feebc (bug 1598520) Backed out changeset c769e733f588 (bug 1598520) Backed out changeset 45287a2ec476 (bug 1598520) Backed out changeset 59cff6014447 (bug 1598520) Backed out changeset ddf722557c33 (bug 1598520)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include "SHEntryChild.h"
|
||||
#include "nsISHEntry.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIChildChannel.h"
|
||||
#include "ReferrerInfo.h"
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "mozilla/dom/BrowsingContext.h"
|
||||
@@ -90,11 +90,16 @@ nsDocShellLoadState::nsDocShellLoadState(
|
||||
nsDocShellLoadState::~nsDocShellLoadState() {}
|
||||
|
||||
nsresult nsDocShellLoadState::CreateFromPendingChannel(
|
||||
nsIChannel* aPendingChannel, nsDocShellLoadState** aResult) {
|
||||
nsIChildChannel* aPendingChannel, nsDocShellLoadState** aResult) {
|
||||
nsCOMPtr<nsIChannel> channel = do_QueryInterface(aPendingChannel);
|
||||
if (NS_WARN_IF(!channel)) {
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
// Create the nsDocShellLoadState object with default state pulled from the
|
||||
// passed-in channel.
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
nsresult rv = aPendingChannel->GetURI(getter_AddRefs(uri));
|
||||
nsresult rv = channel->GetURI(getter_AddRefs(uri));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
@@ -105,13 +110,13 @@ nsresult nsDocShellLoadState::CreateFromPendingChannel(
|
||||
// Pull relevant state from the channel, and store it on the
|
||||
// nsDocShellLoadState.
|
||||
nsCOMPtr<nsIURI> originalUri;
|
||||
rv = aPendingChannel->GetOriginalURI(getter_AddRefs(originalUri));
|
||||
rv = channel->GetOriginalURI(getter_AddRefs(originalUri));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
loadState->SetOriginalURI(originalUri);
|
||||
|
||||
nsCOMPtr<nsILoadInfo> loadInfo = aPendingChannel->LoadInfo();
|
||||
nsCOMPtr<nsILoadInfo> loadInfo = channel->LoadInfo();
|
||||
loadState->SetTriggeringPrincipal(loadInfo->TriggeringPrincipal());
|
||||
|
||||
// Return the newly created loadState.
|
||||
|
||||
Reference in New Issue
Block a user