principals-04.js (451B)
1 // Test what happens when a compartment gets a SavedFrame that it doesn't have 2 // the principals to access any of its frames. 3 4 var low = newGlobal({ principal: 0 }); 5 var high = newGlobal({ principal: 0xfffff }); 6 7 low.high = high; 8 high.low = low; 9 10 high.eval("function a() { return saveStack(1, low); }"); 11 var stack = low.eval("high.a();") 12 13 assertEq(stack.functionDisplayName, null); 14 assertEq(stack.parent, null); 15 assertEq(stack.toString(), "");