a instanceof b triggers proxy traps if a and b are in the same global
Categories
(Core :: XPConnect, defect, P2)
Tracking
()
People
(Reporter: robwu, Assigned: robwu)
Details
(Keywords: sec-low, Whiteboard: [post-critsmash-triage][adv-main65+])
Attachments
(2 files)
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
| Assignee | ||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
| Assignee | ||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
| Assignee | ||
Comment 9•7 years ago
|
||
| Assignee | ||
Comment 10•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
| Assignee | ||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
| Assignee | ||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 16•6 years ago
|
||
I managed to reproduce the issue on Windows 10 x64 using an older version of Nightly (2018-11-05) and the steps from comment 0.
I retested everything using Firefox 65.0.2, beta 66.0b13 and latest Nightly 67.0a1 on Windows 10 x64, Ubuntu 18.04 x64 and macOS 10.13. The issue is not reproducing anymore.
However, I have a question: If I run the text the second time (without restarting the browser), I get this error: " SyntaxError: redeclaration of let sand". I am guessing that this is expected, but I wanted to be sure.
Comment 17•6 years ago
|
||
I am guessing that this is expected
Yes, if you are re-evaluating things involving "let" in the same scope. If you wanted to run the test multiple times, you could run it like so:
(() => {
let sand = Cu.Sandbox(null);
let retval = sand.eval(`new Proxy({}, {getPrototypeOf() { throw new Error("Triggered trap"); }, });`);
console.log(`isXrayWrapper(retval): ${Cu.isXrayWrapper(retval)}`);
console.log(`isXrayWrapper(Object): ${Cu.isXrayWrapper(sand.Object)}`);
retval instanceof sand.Object;
})();
Updated•6 years ago
|
Comment 18•6 years ago
|
||
Considering comment 16 and comment 17, I will mark this issue as verified fixed.
Updated•5 years ago
|
Description
•