New in Chrome 120: Permissions Policy Violation Reports

New in Chrome 120: Permissions Policy Violation Reports

Google Chrome version 120 now supports Permissions Policy Violation Reports. This feature leverages the Permissions Policy API and Reporting API integration, enhancing developers' control over browser functionalities on their web pages.

The Permissions Policy API is a powerful tool that allows developers to specify which features and capabilities are available to a page, its iframes, and subresources. By declaring these policies, developers can restrict or enable specific browser functionalities, ensuring a more secure and controlled user experience.

The Reporting API offers a generic mechanism for web applications to generate reports based on various platform features. This API's integration with the Permissions Policy API powers the new Permissions Policy Violation Reports.

With this integration, web developers can now configure endpoints where these violation reports will be sent. This functionality is particularly useful for site owners and developers who want to monitor and understand when disallowed features are requested on their pages. For instance, if a feature is blocked by the permissions policy set by a developer and an attempt is made to use this feature, a report will be generated and sent to URIports. This allows for real-time monitoring and immediate response to potential security or functionality issues.

In summary, the Permissions Policy Violation Reports in the new Google Chrome browser provide developers with enhanced control and monitoring capabilities over the features and functionalities available on their web pages.