mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
805563414d
commit
5e4f07d2f6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user