зеркало из https://github.com/mozilla/gecko-dev.git
Bug 942411 - Use SpecialPowers.pushPermissions to make sure the permission is set before test run. r=smaug
This commit is contained in:
Родитель
e9e1dd2072
Коммит
f698c9e158
|
@ -140,14 +140,17 @@
|
|||
iframe.setAttribute("src", "file_ignoreuserfocus.html");
|
||||
}
|
||||
addEventListener("load", function() {
|
||||
SpecialPowers.addPermission("browser", true, document);
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["dom.mozBrowserFramesEnabled", true]
|
||||
]
|
||||
}, function() {
|
||||
SimpleTest.waitForFocus(runTest);
|
||||
});
|
||||
SpecialPowers.pushPermissions(
|
||||
[{'type': 'browser', 'allow': true, 'context': document}],
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["dom.mozBrowserFramesEnabled", true]
|
||||
]
|
||||
}, function() {
|
||||
SimpleTest.waitForFocus(runTest);
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
Загрузка…
Ссылка в новой задаче