You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Web API type definition issue] securitypolicyviolation event in WorkerGlobalScope should be typed as SecurityPolicyViolationEvent #2123
Missing Type for SecurityPolicyViolationEvent in WorkerGlobalScope
Expected vs. Actual Behavior
securitypolicyviolation event in WorkerGlobalScope should be typed as SecurityPolicyViolationEvent
According to the MDN documentation, the securitypolicyviolation event in WorkerGlobalScope should provide a SecurityPolicyViolationEvent.
Currently, TypeScript types this event as a generic Event, which loses all the properties specific to SecurityPolicyViolationEvent such as documentURI, blockedURI, violatedDirective, effectiveDirective, etc.
It would be helpful if TypeScript provided proper typings so that developers can access these properties safely, for example:
changed the title [-][Web API type definition issue] Missing Type for SecurityPolicyViolationEvent in WorkerGlobalScope[/-][+][Web API type definition issue] securitypolicyviolation event in WorkerGlobalScope should be typed as SecurityPolicyViolationEvent[/+]on Aug 24, 2025
Activity
[-][Web API type definition issue] Missing Type for SecurityPolicyViolationEvent in WorkerGlobalScope[/-][+][Web API type definition issue] securitypolicyviolation event in WorkerGlobalScope should be typed as SecurityPolicyViolationEvent[/+]SkyZeroZx commentedon Aug 25, 2025
PR proposed : #2124