nsIPermissionDelegateHandler.idl (967B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 /** 7 * This file contains an interface to the Permission Delegate Handler, 8 */ 9 10 #include "nsISupports.idl" 11 12 interface nsIPrincipal; 13 14 [scriptable, builtinclass, uuid(07611dc6-bf4d-4d8a-a64b-f3a5904dddc7)] 15 interface nsIPermissionDelegateHandler : nsISupports 16 { 17 /* 18 * Return true if we are delegating permission to a third party which is not 19 * explicitly trusted. An orgin is not explicitly trusted means it is not 20 * presented in the Feature Policy ancestor chain, via src, explicitly listed 21 * in allow, and it is not the top-level origin. 22 * 23 * @param aTypes the permission types to check 24 */ 25 boolean maybeUnsafePermissionDelegate(in Array<ACString> aTypes); 26 };