w3c / webappsec-permissions-policy

A mechanism to selectively enable and disable browser features and APIs
https://w3c.github.io/webappsec-permissions-policy/
Other
399 stars 155 forks source link

Add `documentUrl` to Permissions Policy report #541

Closed shhnjk closed 9 months ago

shhnjk commented 9 months ago

The current report structure has a sourceFile. However, the script might be a third-party library, where the site owner does not know where this script is being executed.

This change adds documentUrl to Permissions Policy report for this reason.

Fixes: https://github.com/w3c/webappsec-permissions-policy/issues/536


Preview | Diff

shhnjk commented 9 months ago

Never mind, this has been taken care in the reporting API. https://www.w3.org/TR/reporting-1/#queue-report