зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1240909 - Use pushPermissions to be e10s compatible. r=mccr8
--HG-- extra : transplant_source : %23%84%0C%18C%DA%5DM%88%1D%0F%96%A2%FD%F4%25%5EaV%B6
This commit is contained in:
Родитель
7f62418e45
Коммит
913607397c
|
@ -74,7 +74,7 @@ skip-if = e10s || buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'androi
|
|||
[test_pointerPreserves3D.html]
|
||||
[test_framedhistoryframes.html]
|
||||
[test_idleapi_permissions.html]
|
||||
skip-if = e10s || buildapp == 'b2g' || buildapp == 'mulet'
|
||||
skip-if = buildapp == 'b2g' || buildapp == 'mulet'
|
||||
[test_img_mutations.html]
|
||||
[test_interfaces.html]
|
||||
skip-if = ((buildapp == 'mulet' || buildapp == 'b2g') && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage
|
||||
|
|
|
@ -35,13 +35,12 @@ function run_test() {
|
|||
|
||||
var added = doAddIdleObserver(this.idleObserver, false);
|
||||
ok(!added, "Should not be able to add idle observer without permission");
|
||||
|
||||
SpecialPowers.addPermission("idle", true, document);
|
||||
|
||||
added = doAddIdleObserver(this.idleObserver, true);
|
||||
ok(added, "Should be able to add idle observer with permission.");
|
||||
|
||||
SimpleTest.finish();
|
||||
SpecialPowers.pushPermissions([{type: "idle", allow: true, context: document}], () => {
|
||||
added = doAddIdleObserver(this.idleObserver, true);
|
||||
ok(added, "Should be able to add idle observer with permission.");
|
||||
SimpleTest.finish();
|
||||
});
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
|
Загрузка…
Ссылка в новой задаче