content/base/test/csp/file_CSP_main_spec_compliant.js

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 // some javascript for the CSP XHR tests
     2 //
     4 try {
     5   var xhr_good = new XMLHttpRequest();
     6   var xhr_good_uri ="http://mochi.test:8888/tests/content/base/test/csp/file_CSP.sjs?testid=xhr_spec_compliant_good";
     7   xhr_good.open("GET", xhr_good_uri, true);
     8   xhr_good.send(null);
     9 } catch(e) {}
    11 try {
    12   var xhr_bad = new XMLHttpRequest();
    13   var xhr_bad_uri ="http://example.com/tests/content/base/test/csp/file_CSP.sjs?testid=xhr_spec_compliant_bad";
    14   xhr_bad.open("GET", xhr_bad_uri, true);
    15   xhr_bad.send(null);
    16 } catch(e) {}

mercurial