Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  file_bug1456721.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/security/test/cors/file_bug1456721.html


<!DOCTYPE HTML>
<html>
<head>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
  <title>Test new CORS console messages</title>
</head>
<body onload="initTest()">
<p id="display">
<iframe id=loader></iframe>
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="application/javascript">

let gen;
let number_of_tests = 0;

function initTest() {
  window.addEventListener("message", function(e) {
    gen.next(e.data);
    if (number_of_tests == 2) {
      document.location.href += "#finishedTestTwo";
    }
  });

  gen = runTest();

  gen.next();
}

function* runTest() {
  let loader = document.getElementById("loader");
  let loaderWindow = loader.contentWindow;
  loader.onload = function() { gen.next(); };

  loader.src = "http://example.org/browser/dom/security/test/cors/file_CrossSiteXHR_inner.html";
  origin = "http://example.org";
  yield undefined;

  let tests = [
               // Loading URLs other than http(s) should throw 'CORS request
               // not http' console message. (Even though we removed ftp support within Bug 1574475
               // we keep this test since it tests a scheme other than http(s))
               { baseURL: "ftp://mochi.test:8888/browser/dom/security/test/cors/file_CrossSiteXHR_server.sjs",
                 method: "GET",
               },
               // (https://www.w3.org/TR/cors/#cross-origin-request-with-preflight-0)
               // CORs preflight external redirect should throw 'CORS request
               // external redirect not allowed' error.
               // This will also throw 'CORS preflight channel did not succeed'
               // and 'CORS request did not succeed' console messages.
               {
                 baseURL: "http://mochi.test:8888/browser/dom/security/test/cors/bug1456721.sjs?redirect",
                 method: "OPTIONS",
               },
              ];

  for (let test of tests) {
    let req = {
      url: test.baseURL,
      method: test.method
    };

    loaderWindow.postMessage(JSON.stringify(req), origin);
    number_of_tests++;
    yield;
  }
}

</script>
</pre>
</body>
</html>

Messung V0.5
C=98 H=93 G=95

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge