gecko/js/xpconnect/tests/mochitest/file_doublewrappedcompartments.html
Peter Van der Beken a12d286723 Bug 984497 - Use SpecialPowers more and change SpecialPower usage to deal with Window on WebIDL bindings. r=bz.
--HG--
rename : content/media/webspeech/synth/test/test_setup.html => content/media/webspeech/synth/test/file_setup.html
rename : content/media/webspeech/synth/test/test_speech_queue.html => content/media/webspeech/synth/test/file_speech_queue.html
rename : content/media/webspeech/synth/test/test_speech_simple.html => content/media/webspeech/synth/test/file_speech_simple.html
extra : rebase_source : 687daf9d78e69fe6ae21f7c1a26503cf88a18b97
2014-02-15 22:12:34 +01:00

11 lines
429 B
HTML

<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>