1 // See https://bugzilla.mozilla.org/show_bug.cgi?id=1273251
4 add_task(async function() {
5 let webnav = Services.appShell.createWindowlessBrowser(false);
7 let docShell = webnav.docShell;
9 docShell.createAboutBlankDocumentViewer(null, null);
11 let window = webnav.document.defaultView;
12 let unwrapped = Cu.waiveXrays(window);
14 window.document.body.innerHTML = '<div id="foo"></div>';
16 equal(window.foo, undefined, "Should not have named X-ray property access");
17 equal(typeof unwrapped.foo, "object", "Should always have non-X-ray named property access");