w3c / webappsec-csp

WebAppSec Content Security Policy
https://w3c.github.io/webappsec-csp/
Other
210 stars 78 forks source link

Consider using SecurityPolicyViolationEvent.sourceFile a USVString #674

Open emilio opened 3 months ago

emilio commented 3 months ago

It's a path and generally USVString is used for those. WebKit already does this FWIW.

This is I think only observable if you create a custom event with an unpaired surrogate in the init dictionary (in which case you'd start getting a replacement character rather than the unpaired surrogate).

cc @smaug----

emilio commented 3 months ago

Same for the URI members too I guess