Bug 1641270 - Part 1: Expose cookieJarSettings to UI code through Document. r=smaug,dimi

Differential Revision: https://phabricator.services.mozilla.com/D95611
This commit is contained in:
Tim Huang 2020-11-11 11:13:57 +00:00
parent e9e39992b5
commit f0c895fc31
3 changed files with 8 additions and 1 deletions

View File

@ -1943,3 +1943,5 @@ addExternalIface('nsIPermissionDelegateHandler',
notflattened=True)
addExternalIface('nsIOpenWindowInfo', nativeType='nsIOpenWindowInfo',
notflattened=True)
addExternalIface('nsICookieJarSettings', nativeType='nsICookieJarSettings',
notflattened=True)

View File

@ -23,6 +23,7 @@ interface URI;
interface nsIDocShell;
interface nsILoadGroup;
interface nsIReferrerInfo;
interface nsICookieJarSettings;
interface nsIPermissionDelegateHandler;
interface XULCommandDispatcher;
@ -400,6 +401,10 @@ partial interface Document {
[ChromeOnly]
readonly attribute Principal partitionedPrincipal;
// The cookieJarSettings of this document
[ChromeOnly]
readonly attribute nsICookieJarSettings cookieJarSettings;
// The principal to use for the content blocking allow list
[ChromeOnly]
readonly attribute Principal? contentBlockingAllowListPrincipal;

View File

@ -12,7 +12,7 @@ interface nsIPrincipal;
* Cookie jar settings for top-level documents. Please see CookieJarSettings.h
* for more details.
*/
[builtinclass, uuid(3ec40331-7cf0-4b71-ba2a-2265aab8f6bc)]
[scriptable, builtinclass, uuid(3ec40331-7cf0-4b71-ba2a-2265aab8f6bc)]
interface nsICookieJarSettings : nsISupports
{
/**