Quellcodebibliothek
Statistik
Leitseite
products
/
Sources
/
formale Sprachen
/
C
/
Linux
/
kernel
/
module
/ Datei vom 24.10.2025 mit Größe 2 kB
Quelle file_bug941404.html Sprache: HTML
products/Sources/formale Sprachen/C/Firefox/dom/security/test/csp/file_bug941404.html
<
html
>
<
head
> <
meta
charset=
"utf-8"
> </
head
>
<
body
>
<!-- this should be allowed (no CSP)-->
<
img
src=
"
http://example.org/tests/dom/security/test/csp/file_CSP.sjs?testid=img_g
ood
&type=img/png"
> </
img
>
<
script
type=
"text/javascript"
>
var
req = new XMLHttpRequest();
req.onload = function() {
//this should be allowed (no CSP)
try {
var
img
= document.createElement(
"img"
);
img
.src=
"
http://example.org/tests/dom/security/test/csp/file_CSP.sjs?testid=img2
_good
&type=img/png"
;
document.
body
.appendChild(
img
);
} catch(e) {
console.log(
"yo: "
+e);
}
};
req.open(
"get"
,
"file_bug941404_xhr.html"
, true);
req.responseType =
"document"
;
req.send();
</
script
>
</
body
>
</
html
>
Messung
C
H
Z
G
90
99
100
96
¤
Dauer der Verarbeitung: 0.0 Sekunden (vorverarbeitet am 2026-11-25)
¤
*Bot Zugriff
2026-11-25