Bug 1696391: Return early from ContentBlockingUserInteraction::Observe if a Principal is SystemPrincipal because it effectively renders the function as a no op r=baku

Differential Revision: https://phabricator.services.mozilla.com/D107201
This commit is contained in:
Christoph Kerschbaumer 2021-03-04 13:10:57 +00:00
parent 805563414d
commit 5e4f07d2f6

View File

@ -18,7 +18,7 @@ namespace mozilla {
/* static */
void ContentBlockingUserInteraction::Observe(nsIPrincipal* aPrincipal) {
if (!aPrincipal) {
if (!aPrincipal || aPrincipal->IsSystemPrincipal()) {
// The content process may have sent us garbage data.
return;
}