1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/xpconnect/tests/mochitest/file_doublewrappedcompartments.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,10 @@ 1.4 +<html> 1.5 + <head> 1.6 + <script> 1.7 + // We want to put an expando on the object, but we want this object 1.8 + // to be wrapped in other compartments. This means that the expando 1.9 + // must implement precreate, which happens (in general) for nodes. 1.10 + // So we just do a cyclic reference to the document body. 1.11 + window.expando = document.documentElement; 1.12 + </script> 1.13 + </head>