зеркало из https://github.com/mozilla/gecko-dev.git
Bug 698174 - Set full-screen-api.approval-required to false before checking fullscreen context menu items. r=cpearce
This commit is contained in:
Родитель
41a2d6261a
Коммит
e0a23d424e
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче