dom/xbl/test/file_bug379959_cross.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4 <style>
     5 #div1 {
     6   color: green;
     7   -moz-binding: url(file_bug379959_xbl.xml#xbltest);
     8 }
     9 #div2 {
    10   color: green;
    11   -moz-binding: url(http://example.com/tests/dom/xbl/test/file_bug379959_xbl.xml#xbltest);
    12 }
    13 </style>
    14 <body>
    15 <div id="div1"></div>
    16 <div id="div2"></div>
    17 <script>
    18 onload = function() {
    19   nodes = SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('div1'));
    20   parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
    21   nodes = SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('div2'));
    22   parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
    23 }
    24 </script>
    25 </html>

mercurial