4 https://bugzilla.mozilla.org/show_bug.cgi?id=993423
8 <title>Test for Bug
993423</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
13 /** Test for Bug
993423 **/
14 SimpleTest.waitForExplicitFinish();
16 var sCallbackInvocations =
0;
17 function callback(handlerIsInXBLScope) {
18 ok(!handlerIsInXBLScope,
"Event handler should not be in XBL scope");
19 if (++sCallbackInvocations ==
2)
24 document.querySelector('use').setAttributeNS('http://www.w3.org/
1999/xlink',
25 'href', location.href + '#a');
31 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=993423">Mozilla Bug
993423</a>
33 <div id=
"content" style=
"display: none">
41 <img src=
"about:logo" onload=
"var isInXBL = (function() { return this; })() != window; if (isInXBL) callback = window.wrappedJSObject.callback; callback(isInXBL);">