| ||||||||||||||||||||
Impressum file_upgrade_insecure.html Interaktion und
| ||||||||||||||||||||
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Bug 1139297 - Implement CSP upgrade-insecure-requests directive</title> <!-- style --> <link rel='stylesheet' type='text/css' href='http://example.com/tests/dom/security/t <!-- font --> <style> @font-face { font-family: "foofont"; src: url('http://example.com/tests/dom/security/test/csp/file_upgrade_insecure_se } .div_foo { font-family: "foofont"; } </style> </head> <body> <!-- images: --> <img src="http://example.com/tests/dom/security/test/csp/file_upgrade_insecure_ser <!-- redirects: upgrade http:// to https:// redirect to http:// and then upgrade to https:// ag <img src="http://example.com/tests/dom/security/test/csp/file_upgrade_insecure_ser <!-- script: --> <script src="http://example.com/tests/dom/security/test/csp/file_upgrade_insecure_ <!-- media: --> <audio src="http://example.com/tests/dom/security/test/csp/file_upgrade_insecure_s <!-- objects: --> <object width="10" height="10" data="http://example.com/tests/dom/security/test/csp/ <!-- font: (apply font loaded in header to div) --> <div class="div_foo">foo</div> <!-- iframe: (same origin) --> <iframe src="http://example.com/tests/dom/security/test/csp/file_upgrade_insecure_ <!-- within that iframe we load an image over http and make sure the requested gets upgraded to htt </iframe> <!-- xhr: --> <script type="application/javascript"> var myXHR = new XMLHttpRequest(); myXHR.open("GET", "http://example.com/tests/dom/security/test/csp/file_upgrade_in myXHR.send(null); </script> <!-- websockets: upgrade ws:// to wss://--> <script type="application/javascript"> // WebSocket tests are not supported on Android yet. Bug 1566168 const { AppConstants } = SpecialPowers.ChromeUtils.importESModule( "resource://gre/modules/AppConstants.sys.mjs" ); if (AppConstants.platform !== "android") { var mySocket = new WebSocket("ws://example.com/tests/dom/security/test/csp/file_upgr mySocket.onopen = function(e) { if (mySocket.url.includes("wss://")) { window.parent.postMessage({result: "websocket-ok"}, "*"); } else { window.parent.postMessage({result: "websocket-error"}, "*"); } mySocket.close(); }; mySocket.onerror = function(e) { // debug information for Bug 1316305 dump(" xxx mySocket.onerror: (mySocket): " + mySocket + "\n"); dump(" xxx mySocket.onerror: (mySocket.url): " + mySocket.url + "\n"); dump(" xxx mySocket.onerror: (e): " + e + "\n"); dump(" xxx mySocket.onerror: (e.message): " + e.message + "\n"); window.parent.postMessage({result: "websocket-unexpected-error"}, "*"); }; } </script> <!-- form action: (upgrade POST from http:// to https://) --> <iframe name='formFrame' id='formFrame'></iframe> <form target="formFrame" action="http://example.com/tests/dom/security/test/csp/fil <input name="foo" value="foo"> <input type="submit" id="submitButton" formenctype='multipart/form-data' value="Submi </form> <script type="text/javascript"> var submitButton = document.getElementById('submitButton'); submitButton.click(); </script> </body> </html>
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.57Angebot ¤*Bot Zugriff |
|
||||||||||||||||||
2026-11-25