dom/xbl/crashtests/830614-1.xul
author Robert O'Callahan <robert@ocallahan.org>
Fri, 10 Jan 2014 16:03:25 +1300
changeset 180086 243259fda9aba5900ae1492c991a0e7a541a584d
parent 129606 content/xbl/crashtests/830614-1.xul@e8efa257d99bcf6013ca044ca3eeabb49f72b67e
permissions -rw-r--r--
Bug 946065. Part 4: Move content/xbl to dom/ and flatten away 'src' directory. r=Ms2ger

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="document.getElementById('trigger');">
  <box style="display: none">
    <bindings xmlns="http://www.mozilla.org/xbl">
      <binding id="crash">
        <implementation>
          <constructor>
            // Fetch it
            var obj = this.getElementsByTagName("box")[0];
            // And make it preserve its wrapper.  Note that this will happen
            // while we're wrapping our box as the parent for id="trigger",
            // so then we'll unwind and things will be bad.
            if (obj) obj.expando = 5;
          </constructor>
        </implementation>
      </binding>
    </bindings>
    <box style="-moz-binding:url(#crash);">
      <box id="trigger"/>
    </box>
  </box>
  <!-- Make sure we load our XBL before we try to run our test -->
  <box style="-moz-binding:url(#crash);"/>
</window>