Files
sousa-gecko/testing/web-platform/meta/content-security-policy/inheritance/document-write-iframe.html.ini
T
Vincent Hilla 973d6e2bf6 Bug 2035423 - Revert setting CSP context already on document creation. r=tschuster
StartDocumentLoad calls SetRequestContextWithDocument. Since bug 543435, the
initial about:blank load doesn't go through this code anymore. Therefore, we
added that call also to CreateAboutBlankDocumentViewer. This is advantageous
in general too, because transient documents will have the correct context.
But due to bug 1899512, there are regressions.

This change reverts setting the request context already at document creation.
Instead we match regular loads and set the request context in the corresponding
CompleteInitialAboutBlankLoad.

Differential Revision: https://phabricator.services.mozilla.com/D297337
2026-05-05 14:02:54 +00:00

4 lines
115 B
INI

[document-write-iframe.html]
[document.open() keeps inherited CSPs on transient about:blank.]
expected: FAIL