diff --git a/packages/tswebextension/src/lib/mv2/background/services/permissions-policy-service.ts b/packages/tswebextension/src/lib/mv2/background/services/permissions-policy-service.ts index 6461497a1..a1764b984 100644 --- a/packages/tswebextension/src/lib/mv2/background/services/permissions-policy-service.ts +++ b/packages/tswebextension/src/lib/mv2/background/services/permissions-policy-service.ts @@ -5,6 +5,7 @@ import { PERMISSIONS_POLICY_HEADER_NAME, RequestType, } from '@adguard/tsurlfilter'; +import { nanoid } from 'nanoid'; import { defaultFilteringLog, FilteringEventType, @@ -108,7 +109,10 @@ export class PermissionsPolicyService { type: FilteringEventType.ApplyPermissionsRule, data: { tabId, - eventId: requestId, + // for proper filtering log request info rule displaying + // event id should be unique for each event, not copied from request + // https://github.com/AdguardTeam/AdguardBrowserExtension/issues/2341 + eventId: nanoid(), requestUrl, frameUrl: referrerUrl, frameDomain: getDomain(referrerUrl),