Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

"use strict";
add_task(async function() {
let webnav = Services.appShell.createWindowlessBrowser(false);
let docShell = webnav.docShell;
docShell.createAboutBlankDocumentViewer(null, null);
let window = webnav.document.defaultView;
let unwrapped = Cu.waiveXrays(window);
window.document.body.innerHTML = '<div id="foo"></div>';
equal(window.foo, undefined, "Should not have named X-ray property access");
equal(typeof unwrapped.foo, "object", "Should always have non-X-ray named property access");
webnav.close();
});