tor-browser

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

bug-1385844.js (520B)


      1 // Frame invalidatation should not follow 'debugger eval prev' links.
      2 // This should not fail a 'frame.isDebuggee()' assertion.
      3 
      4 var g1 = this;
      5 
      6 var h = newGlobal({ newCompartment: true });
      7 h.parent = g1;
      8 h.eval(`
      9  var hdbg = new Debugger(parent);
     10  function j() {
     11    hdbg.onEnterFrame = function(frame) {};
     12  }
     13 `);
     14 
     15 var g2 = newGlobal({ newCompartment: true });
     16 g2.j = h.j;
     17 
     18 var dbg = new Debugger(g2);
     19 var g2DO = dbg.addDebuggee(g2);
     20 
     21 dbg.onDebuggerStatement = function(f) {
     22  f.eval('j()');
     23 };
     24 g2.eval('debugger');