dom/xbl/test/file_bug379959_cross.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/xbl/test/file_bug379959_cross.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +<style>
     1.8 +#div1 {
     1.9 +  color: green;
    1.10 +  -moz-binding: url(file_bug379959_xbl.xml#xbltest);
    1.11 +}
    1.12 +#div2 {
    1.13 +  color: green;
    1.14 +  -moz-binding: url(http://example.com/tests/dom/xbl/test/file_bug379959_xbl.xml#xbltest);
    1.15 +}
    1.16 +</style>
    1.17 +<body>
    1.18 +<div id="div1"></div>
    1.19 +<div id="div2"></div>
    1.20 +<script>
    1.21 +onload = function() {
    1.22 +  nodes = SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('div1'));
    1.23 +  parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
    1.24 +  nodes = SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('div2'));
    1.25 +  parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
    1.26 +}
    1.27 +</script>
    1.28 +</html>

mercurial