Bug 698174 - Set full-screen-api.approval-required to false before checking fullscreen context menu items. r=cpearce

This commit is contained in:
Jared Wein 2013-06-18 19:28:39 -04:00
Родитель 41a2d6261a
Коммит e0a23d424e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -712,10 +712,10 @@ function runTest(testNum) {
var full_screen_element = subwindow.document.getElementById("test-dom-full-screen");
var openDomFullScreen = function() {
subwindow.removeEventListener("mozfullscreenchange", openDomFullScreen, false);
SpecialPowers.clearUserPref("full-screen-api.allow-trusted-requests-only");
openContextMenuFor(dom_full_screen, true); // Invoke context menu for next test.
}
subwindow.addEventListener("mozfullscreenchange", openDomFullScreen, false);
SpecialPowers.setBoolPref("full-screen-api.approval-required", false);
SpecialPowers.setBoolPref("full-screen-api.allow-trusted-requests-only", false);
full_screen_element.mozRequestFullScreen();
break;
@ -741,11 +741,11 @@ function runTest(testNum) {
var full_screen_element = subwindow.document.getElementById("test-dom-full-screen");
var openPagemenu = function() {
subwindow.removeEventListener("mozfullscreenchange", openPagemenu, false);
SpecialPowers.clearUserPref("full-screen-api.approval-required");
SpecialPowers.clearUserPref("full-screen-api.allow-trusted-requests-only");
openContextMenuFor(pagemenu, true); // Invoke context menu for next test.
}
subwindow.addEventListener("mozfullscreenchange", openPagemenu, false);
SpecialPowers.setBoolPref("full-screen-api.allow-trusted-requests-only", false);
subwindow.document.mozCancelFullScreen();
break;