mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-21 11:40:34 -10:00
Automatic update from web-platform-tests Add new tests for credentials and isolation in reporting. This adds WPT to ensure that credentials are not sent to cross-origin reporting endpoints, that they *are* sent to same-origin reporting endpoints (currently failing; tracked as crbug.com/1163645), and that reports which come from documents with different origins are not sent in the same bundle, even when configured to deliver reports to the same endpoint. Change-Id: Icb36647d02ad33e8a2f10901782ad9b92cd0f191 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2657296 Commit-Queue: Ian Clelland <[email protected]> Reviewed-by: Rodney Ding <[email protected]> Cr-Commit-Position: refs/heads/main@{#920222} -- wpt-commits: 824f5aadae74478bc2a3ad97b9c407fd2158508a wpt-pr: 27423
20 lines
485 B
HTML
20 lines
485 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Notify parent on load and generate a CSP error</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
addEventListener('load', () => {
|
|
// Alert the parent frame that this frame has loaded.
|
|
parent.postMessage('Loaded','*');
|
|
|
|
// Trigger a CSP error, which should generate a report.
|
|
const img = document.createElement('img');
|
|
img.src = "/reporting/resources/fail.png";
|
|
document.body.appendChild(img);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|