tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug778409.js (360B)


      1 function run_test() {
      2  var sb1 = Cu.Sandbox('http://example.com');
      3  var sb2 = Cu.Sandbox('http://example.org');
      4  var chromeObj = {foo: 2};
      5  var sb1obj = Cu.evalInSandbox('new Object()', sb1);
      6  chromeObj.__proto__ = sb1obj;
      7  sb2.wrapMe = chromeObj;
      8  Assert.ok(true, "Didn't crash");
      9  Assert.equal(sb2.wrapMe.__proto__, sb1obj, 'proto set correctly');
     10 }