From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../document-write-report-only-tentative.html | 26 +++++++++++++++ ...cument-write-report-only-tentative.html.headers | 1 + .../document-write-reporting-tentative.html | 32 ++++++++++++++++++ ...document-write-reporting-tentative.html.headers | 1 + .../tests/document-policy/reporting/image.jpg | Bin 0 -> 2033 bytes ...-images-max-bpp-reporting-onload-tentative.html | 26 +++++++++++++++ ...max-bpp-reporting-onload-tentative.html.headers | 1 + .../lossy-images-max-bpp-reporting-tentative.html | 27 ++++++++++++++++ ...images-max-bpp-reporting-tentative.html.headers | 1 + .../oversized-images-reporting-tentative.html | 32 ++++++++++++++++++ ...ersized-images-reporting-tentative.html.headers | 1 + .../tests/document-policy/reporting/oversized.jpg | Bin 0 -> 1655 bytes .../reporting/resources/sync-script.js | 20 ++++++++++++ .../reporting/sync-script-reporting.html | 14 ++++++++ .../reporting/sync-script-reporting.html.headers | 1 + .../reporting/sync-xhr-report-only.html | 28 ++++++++++++++++ .../reporting/sync-xhr-report-only.html.headers | 1 + .../reporting/sync-xhr-reporting.html | 36 +++++++++++++++++++++ .../reporting/sync-xhr-reporting.html.headers | 1 + .../reporting/unoptimized-image.jpg | Bin 0 -> 43999 bytes .../unsized-media-reporting-tentative.html | 24 ++++++++++++++ .../unsized-media-reporting-tentative.html.headers | 1 + 22 files changed, 274 insertions(+) create mode 100644 testing/web-platform/tests/document-policy/reporting/document-write-report-only-tentative.html create mode 100644 testing/web-platform/tests/document-policy/reporting/document-write-report-only-tentative.html.headers create mode 100644 testing/web-platform/tests/document-policy/reporting/document-write-reporting-tentative.html create mode 100644 testing/web-platform/tests/document-policy/reporting/document-write-reporting-tentative.html.headers create mode 100644 testing/web-platform/tests/document-policy/reporting/image.jpg create mode 100644 testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-onload-tentative.html create mode 100644 testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-onload-tentative.html.headers create mode 100644 testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-tentative.html create mode 100644 testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-tentative.html.headers create mode 100644 testing/web-platform/tests/document-policy/reporting/oversized-images-reporting-tentative.html create mode 100644 testing/web-platform/tests/document-policy/reporting/oversized-images-reporting-tentative.html.headers create mode 100644 testing/web-platform/tests/document-policy/reporting/oversized.jpg create mode 100644 testing/web-platform/tests/document-policy/reporting/resources/sync-script.js create mode 100644 testing/web-platform/tests/document-policy/reporting/sync-script-reporting.html create mode 100644 testing/web-platform/tests/document-policy/reporting/sync-script-reporting.html.headers create mode 100644 testing/web-platform/tests/document-policy/reporting/sync-xhr-report-only.html create mode 100644 testing/web-platform/tests/document-policy/reporting/sync-xhr-report-only.html.headers create mode 100644 testing/web-platform/tests/document-policy/reporting/sync-xhr-reporting.html create mode 100644 testing/web-platform/tests/document-policy/reporting/sync-xhr-reporting.html.headers create mode 100644 testing/web-platform/tests/document-policy/reporting/unoptimized-image.jpg create mode 100644 testing/web-platform/tests/document-policy/reporting/unsized-media-reporting-tentative.html create mode 100644 testing/web-platform/tests/document-policy/reporting/unsized-media-reporting-tentative.html.headers (limited to 'testing/web-platform/tests/document-policy/reporting') diff --git a/testing/web-platform/tests/document-policy/reporting/document-write-report-only-tentative.html b/testing/web-platform/tests/document-policy/reporting/document-write-report-only-tentative.html new file mode 100644 index 0000000000..bf17807f4a --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/document-write-report-only-tentative.html @@ -0,0 +1,26 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/document-write-report-only-tentative.html.headers b/testing/web-platform/tests/document-policy/reporting/document-write-report-only-tentative.html.headers new file mode 100644 index 0000000000..924dac8e87 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/document-write-report-only-tentative.html.headers @@ -0,0 +1 @@ +Document-Policy-Report-Only: document-write=?0 diff --git a/testing/web-platform/tests/document-policy/reporting/document-write-reporting-tentative.html b/testing/web-platform/tests/document-policy/reporting/document-write-reporting-tentative.html new file mode 100644 index 0000000000..65a584ce19 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/document-write-reporting-tentative.html @@ -0,0 +1,32 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/document-write-reporting-tentative.html.headers b/testing/web-platform/tests/document-policy/reporting/document-write-reporting-tentative.html.headers new file mode 100644 index 0000000000..6d05e969b5 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/document-write-reporting-tentative.html.headers @@ -0,0 +1 @@ +Document-Policy: document-write=?0 diff --git a/testing/web-platform/tests/document-policy/reporting/image.jpg b/testing/web-platform/tests/document-policy/reporting/image.jpg new file mode 100644 index 0000000000..c059b96d97 Binary files /dev/null and b/testing/web-platform/tests/document-policy/reporting/image.jpg differ diff --git a/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-onload-tentative.html b/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-onload-tentative.html new file mode 100644 index 0000000000..85e1349a19 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-onload-tentative.html @@ -0,0 +1,26 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-onload-tentative.html.headers b/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-onload-tentative.html.headers new file mode 100644 index 0000000000..cb28d40ec1 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-onload-tentative.html.headers @@ -0,0 +1 @@ +Document-Policy: lossy-images-max-bpp=0.5 diff --git a/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-tentative.html b/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-tentative.html new file mode 100644 index 0000000000..b6876f4880 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-tentative.html @@ -0,0 +1,27 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-tentative.html.headers b/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-tentative.html.headers new file mode 100644 index 0000000000..cb28d40ec1 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/lossy-images-max-bpp-reporting-tentative.html.headers @@ -0,0 +1 @@ +Document-Policy: lossy-images-max-bpp=0.5 diff --git a/testing/web-platform/tests/document-policy/reporting/oversized-images-reporting-tentative.html b/testing/web-platform/tests/document-policy/reporting/oversized-images-reporting-tentative.html new file mode 100644 index 0000000000..bef7db27a7 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/oversized-images-reporting-tentative.html @@ -0,0 +1,32 @@ + + + + + + + + + oversized image + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/oversized-images-reporting-tentative.html.headers b/testing/web-platform/tests/document-policy/reporting/oversized-images-reporting-tentative.html.headers new file mode 100644 index 0000000000..10f5be1c33 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/oversized-images-reporting-tentative.html.headers @@ -0,0 +1 @@ +Document-Policy: oversized-images=2.0 diff --git a/testing/web-platform/tests/document-policy/reporting/oversized.jpg b/testing/web-platform/tests/document-policy/reporting/oversized.jpg new file mode 100644 index 0000000000..497ed770bf Binary files /dev/null and b/testing/web-platform/tests/document-policy/reporting/oversized.jpg differ diff --git a/testing/web-platform/tests/document-policy/reporting/resources/sync-script.js b/testing/web-platform/tests/document-policy/reporting/resources/sync-script.js new file mode 100644 index 0000000000..10d582cb0e --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/resources/sync-script.js @@ -0,0 +1,20 @@ +// This is deliberately split from sync-script-reporting.html so that it will +// not be blocked by policy, and can actuall be executed. + +var t = async_test("Sync-script Report Format"); + +var check_report_format = (reports, observer) => { + let report = reports[0]; + assert_equals(report.type, "document-policy-violation"); + assert_equals(report.url, document.location.href); + assert_equals(report.body.featureId, "sync-script"); + assert_equals(report.body.sourceFile, null); + assert_equals(report.body.lineNumber, null); + assert_equals(report.body.columnNumber, null); + assert_equals(report.body.disposition, "enforce"); + check_report_json(report); +}; + +new ReportingObserver(t.step_func_done(check_report_format), + { types: ['document-policy-violation'], + buffered: true}).observe(); diff --git a/testing/web-platform/tests/document-policy/reporting/sync-script-reporting.html b/testing/web-platform/tests/document-policy/reporting/sync-script-reporting.html new file mode 100644 index 0000000000..45e1b8fc3c --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/sync-script-reporting.html @@ -0,0 +1,14 @@ + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/sync-script-reporting.html.headers b/testing/web-platform/tests/document-policy/reporting/sync-script-reporting.html.headers new file mode 100644 index 0000000000..cfe200c27b --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/sync-script-reporting.html.headers @@ -0,0 +1 @@ +Document-Policy: sync-script=?0 diff --git a/testing/web-platform/tests/document-policy/reporting/sync-xhr-report-only.html b/testing/web-platform/tests/document-policy/reporting/sync-xhr-report-only.html new file mode 100644 index 0000000000..a68cf713ee --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/sync-xhr-report-only.html @@ -0,0 +1,28 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/sync-xhr-report-only.html.headers b/testing/web-platform/tests/document-policy/reporting/sync-xhr-report-only.html.headers new file mode 100644 index 0000000000..8de201c750 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/sync-xhr-report-only.html.headers @@ -0,0 +1 @@ +Document-Policy-Report-Only: sync-xhr=?0 diff --git a/testing/web-platform/tests/document-policy/reporting/sync-xhr-reporting.html b/testing/web-platform/tests/document-policy/reporting/sync-xhr-reporting.html new file mode 100644 index 0000000000..3bcb63459d --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/sync-xhr-reporting.html @@ -0,0 +1,36 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/sync-xhr-reporting.html.headers b/testing/web-platform/tests/document-policy/reporting/sync-xhr-reporting.html.headers new file mode 100644 index 0000000000..ab319fc4ce --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/sync-xhr-reporting.html.headers @@ -0,0 +1 @@ +Document-Policy: sync-xhr=?0 diff --git a/testing/web-platform/tests/document-policy/reporting/unoptimized-image.jpg b/testing/web-platform/tests/document-policy/reporting/unoptimized-image.jpg new file mode 100644 index 0000000000..599137a55d Binary files /dev/null and b/testing/web-platform/tests/document-policy/reporting/unoptimized-image.jpg differ diff --git a/testing/web-platform/tests/document-policy/reporting/unsized-media-reporting-tentative.html b/testing/web-platform/tests/document-policy/reporting/unsized-media-reporting-tentative.html new file mode 100644 index 0000000000..47a3643646 --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/unsized-media-reporting-tentative.html @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/document-policy/reporting/unsized-media-reporting-tentative.html.headers b/testing/web-platform/tests/document-policy/reporting/unsized-media-reporting-tentative.html.headers new file mode 100644 index 0000000000..cf59933e8d --- /dev/null +++ b/testing/web-platform/tests/document-policy/reporting/unsized-media-reporting-tentative.html.headers @@ -0,0 +1 @@ +Document-Policy: unsized-media=?0 -- cgit v1.2.3