зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1724376 - Part 1: Add a new storage access grant reason for the privilege API. r=dimi,pbz
To differentiate the privilege API calls, we need to add a new grant reason for it. Differential Revision: https://phabricator.services.mozilla.com/D123803
This commit is contained in:
Родитель
48c864f2b1
Коммит
eaf8c903b1
|
@ -27,7 +27,8 @@ struct ParamTraits<
|
|||
mozilla::ContentBlockingNotifier::
|
||||
StorageAccessPermissionGrantedReason::eStorageAccessAPI,
|
||||
mozilla::ContentBlockingNotifier::
|
||||
StorageAccessPermissionGrantedReason::eOpener> {};
|
||||
StorageAccessPermissionGrantedReason::
|
||||
ePrivilegeStorageAccessForOriginAPI> {};
|
||||
|
||||
// ContentBlockingNotifier::BlockingDecision over IPC.
|
||||
template <>
|
||||
|
|
|
@ -73,6 +73,7 @@ void ReportUnblockingToConsole(
|
|||
|
||||
switch (aReason) {
|
||||
case ContentBlockingNotifier::eStorageAccessAPI:
|
||||
case ContentBlockingNotifier::ePrivilegeStorageAccessForOriginAPI:
|
||||
messageWithSameOrigin = "CookieAllowedForOriginByStorageAccessAPI";
|
||||
break;
|
||||
|
||||
|
|
|
@ -30,7 +30,8 @@ class ContentBlockingNotifier final {
|
|||
enum StorageAccessPermissionGrantedReason {
|
||||
eStorageAccessAPI,
|
||||
eOpenerAfterUserInteraction,
|
||||
eOpener
|
||||
eOpener,
|
||||
ePrivilegeStorageAccessForOriginAPI,
|
||||
};
|
||||
|
||||
// This method can be called on the parent process or on the content process.
|
||||
|
|
Загрузка…
Ссылка в новой задаче