fune/netwerk/base/nsIRedirectHistoryEntry.idl
Thomas Nguyen 4fcb94e968 Bug 1351146 - P1 - Add more information to redirect chains. r=dragana
In order to provide more details context of how client arrived at the unsafe
page, particularly in redirect case, we may have to add more information to
redirect chains including:
- referrer (if any)
- remote address.
- URL

We may want to use an idl interface instead of nsIPrincipal to store these
information

MozReview-Commit-ID: 3Uh4r06w60C
2017-05-25 19:42:00 +02:00

34 lines
902 B
Text

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
interface nsIPrincipal;
interface nsIURI;
/**
* This nsIRedirectHistoryEntry defines an interface for specifying channel
* redirect information
*/
[scriptable, uuid(133b2905-0eba-411c-a8bb-f59787142aa2)]
interface nsIRedirectHistoryEntry : nsISupports
{
/**
* The principal of this redirect entry
*/
readonly attribute nsIPrincipal principal;
/**
* The referring URI of this redirect entry. This may be null.
*/
readonly attribute nsIURI referrerURI;
/**
* The remote address of this redirect entry.
*/
readonly attribute ACString remoteAddress;
};