From 5d0afe900544b69199abc6e4d9ae04bf51a65f92 Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Thu, 23 Sep 2021 08:48:17 +0000 Subject: [PATCH] Bug 1731994: part 3) Extend documentation of `ContentPermissionRequestBase`'s constructor. r=edgar Differential Revision: https://phabricator.services.mozilla.com/D126349 --- dom/base/nsContentPermissionHelper.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/base/nsContentPermissionHelper.h b/dom/base/nsContentPermissionHelper.h index ac22f98a6296..6f599300e577 100644 --- a/dom/base/nsContentPermissionHelper.h +++ b/dom/base/nsContentPermissionHelper.h @@ -137,6 +137,7 @@ class ContentPermissionRequestBase : public nsIContentPermissionRequest { protected: // @param aPrefName see `mPrefName`. + // @param aType see `mType`. ContentPermissionRequestBase(nsIPrincipal* aPrincipal, nsPIDOMWindowInner* aWindow, const nsACString& aPrefName, @@ -155,7 +156,10 @@ class ContentPermissionRequestBase : public nsIContentPermissionRequest { // to either true or false. If no such testing is required, mPrefName may be // empty. const nsCString mPrefName; + + // The type of the request, such as "autoplay-media-audible". const nsCString mType; + bool mIsHandlingUserInput; bool mMaybeUnsafePermissionDelegate; };