summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/mochitest/file_doublewrappedcompartments.html
blob: f789a33d76f6d05df8fbc51483e21bf23fcfe2fb (plain)
1
2
3
4
5
6
7
8
9
10
<html>
    <head>
        <script>
            // We want to put an expando on the object, but we want this object
            // to be wrapped in other compartments. This means that the expando
            // must implement precreate, which happens (in general) for nodes.
            // So we just do a cyclic reference to the document body.
            window.expando = document.documentElement;
        </script>
    </head>