ok(true, "The page is paused");
ok(!debuggee.foo, "foo is still false after we hit the breakpoint");
await client.close();
// `close` will force the destruction of the thread actor, which, // will resume the page execution. But all of that seems to be // synchronous and we have to spin the event loop in order to ensure // having the content javascript to execute the resumed code.
await new Promise(executeSoon);
// Closing the connection will force the thread actor to resume page // execution
ok(debuggee.foo, "foo is true after client close");
executeSoon(resolve);
dump("resolved\n");
})();
function evalCode() { /* eslint-disable */
Cu.evalInSandbox("var foo = false;\n", debuggee); /* eslint-enable */
ok(!debuggee.foo, "foo is false at startup");
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 ist noch experimentell.