2 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
3 <?xml-stylesheet href=
"chrome://mochikit/content/tests/SimpleTest/test.css"
6 https://bugzilla.mozilla.org/show_bug.cgi?id=1281071
8 <window title=
"Mozilla Bug 1281071"
9 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
10 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
12 <!-- test code goes here -->
13 <script type=
"application/javascript"><![CDATA[
14 SimpleTest.waitForExplicitFinish();
16 var w = $('ifr').contentWindow.wrappedJSObject;
17 is(w.tryLocationGet(),
"Permission to call 'get location' denied.",
18 "Trying to get our location object should throw");
23 <!-- test results are displayed in the html:body -->
24 <body xmlns=
"http://www.w3.org/1999/xhtml">
25 <iframe type=
"content"
26 src=
"http://mochi.test:8888/chrome/js/xpconnect/tests/chrome/file_bug1281071.html"