mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
d1c1a83512
The conversion of checks for UniversalBrowserWrite to UniversalXPConnect caused these test fail, because they acquire UniversalXPConnect and actually doesn't want the results. In particular, they pass the security check in nsWindowWatcher::CalculateChromeFlags, which causes them to fail. The first test doesn't actually need UniversalXPConnect, so we can remove it for free. The second one needs it, so we add some SpecialPowers goop to make it possible. It's not ideal, but it can go away when the wrapper in bug 702353 lands.
55 lines
1.3 KiB
HTML
55 lines
1.3 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=377611
|
|
-->
|
|
<head>
|
|
<title>Test for feed discovery</title>
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
</head>
|
|
<body>
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=377611">Mozilla Bug 377611</a>
|
|
<p id="display"></p>
|
|
<div id="content" style="display: none">
|
|
|
|
</div>
|
|
<pre id="test">
|
|
<script class="testbody" type="text/javascript">
|
|
|
|
/** Test for Bug 377611 **/
|
|
|
|
var rv = { tests: null };
|
|
var testCheckInterval = null;
|
|
|
|
function startTest() {
|
|
var url = window.location.href.replace(/test_feed_discovery\.html/,
|
|
'feed_discovery.html');
|
|
SpecialPowers.openDialog(window, [url, '', 'dialog=no,width=10,height=10', rv]);
|
|
testCheckInterval = window.setInterval(tryIfTestIsFinished, 500);
|
|
}
|
|
|
|
function tryIfTestIsFinished() {
|
|
if (rv.tests) {
|
|
window.clearInterval(testCheckInterval);
|
|
checkTest();
|
|
}
|
|
}
|
|
|
|
function checkTest() {
|
|
for (var i = 0; i < rv.tests.length; ++ i) {
|
|
var test = rv.tests[i];
|
|
ok(test.check, test.message);
|
|
}
|
|
SimpleTest.finish();
|
|
}
|
|
|
|
window.onload = startTest;
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|
|
|