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.)

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

mercurial