Closed mykmelez closed 7 years ago
This doesn't happen in debug builds on Linux.
I just tested again a few times on Mac (using hello-world-server), and I could only reproduce the first time, right after I'd built. Subsequent runs didn't exhibit the problem.
I'm able to reproduce by introducing a some long running script main.js.
e.g.
function go() {
var sum = 0;
for (var i = 0; i < 100000; i++) {
sum += i / 2;
}
console.log(sum);
setTimeout(go, 500);
}
go();
After building debug (with #143 applied, although I'm not sure that matters) on Mac, running the sample browser hits
MOZ_CRASH(Accessing the Subject Principal without an AutoJSAPI on the stack is forbidden)
at /Users/myk/Projects/positron/dom/base/nsContentUtils.cpp:2760: