Skip to content

Commit

Permalink
Bug 1499442 - Preload user-interaction permission, r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
bakulf committed Oct 17, 2018
1 parent dce8b79 commit dafac54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion extensions/cookie/nsPermissionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "mozilla/Attributes.h"
#include "mozilla/AntiTrackingCommon.h"
#include "mozilla/DebugOnly.h"

#include "mozilla/dom/ContentParent.h"
Expand Down Expand Up @@ -137,7 +138,9 @@ static const char* kPreloadPermissions[] = {
// removed. See bug 1428130.
"cookie",
"trackingprotection",
"trackingprotection-pb"
"trackingprotection-pb",

USER_INTERACTION_PERM
};

// A list of permissions that can have a fallback default permission
Expand Down
1 change: 0 additions & 1 deletion toolkit/components/antitracking/AntiTrackingCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "prtime.h"

#define ANTITRACKING_PERM_KEY "3rdPartyStorage"
#define USER_INTERACTION_PERM "storageAccessAPI"

using namespace mozilla;
using mozilla::dom::ContentChild;
Expand Down
2 changes: 2 additions & 0 deletions toolkit/components/antitracking/AntiTrackingCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "mozilla/MozPromise.h"
#include "mozilla/RefPtr.h"

#define USER_INTERACTION_PERM "storageAccessAPI"

class nsIChannel;
class nsIHttpChannel;
class nsIPermission;
Expand Down

0 comments on commit dafac54

Please sign in to comment.