diff -r 000000000000 -r 6474c204b198 dom/xbl/test/file_bug946815.xhtml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dom/xbl/test/file_bug946815.xhtml Wed Dec 31 06:09:35 2014 +0100
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+ // Grab some basic infrastructure off the content window.
+ var win = XPCNativeWrapper.unwrap(window);
+ SpecialPowers = win.SpecialPowers;
+ Cu = SpecialPowers.Cu;
+ is = win.is;
+ ok = win.ok;
+ SimpleTest = win.SimpleTest;
+
+ var bound = document.getElementById('bound');
+
+ // This gets invoked by an event handler.
+ window.finish = function() {
+ // XBL scope, with 'wifi-manage' scope
+ testWifiPermissionFromXbl(true, true /* with wifi-manage permission */);
+ SimpleTest.finish();
+ }
+
+ eval('var testWifiPermissionFromXbl = ' + win.testWifiPermissionFromContent.toSource());
+
+ // XBL scope, with no 'wifi-manage' permission
+ testWifiPermissionFromXbl(true, false /* without wifi-manage permission */);
+
+ // Hand things off to content. Content will call us back.
+ win.go();
+
+
+
+
+
+
+
+
+
+
+Mozilla Bug 946815
+
+
+
+
+
+