зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1268749 part 1 - Add pref to disable unprefixed fullscreen api. r=smaug
MozReview-Commit-ID: 4NjbHgDfvBM --HG-- extra : rebase_source : b2da0b2063a5e2a2af3bdda5dbe26e3fb6aa1935
This commit is contained in:
Родитель
6345f1e3e3
Коммит
80715b9c70
|
@ -27,7 +27,10 @@ SimpleTest.requestFlakyTimeout(
|
|||
"Need to wait for potential fullscreen transition");
|
||||
addLoadEvent(function () {
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [["full-screen-api.allow-trusted-requests-only", false]]
|
||||
"set": [
|
||||
["full-screen-api.unprefix.enabled", true],
|
||||
["full-screen-api.allow-trusted-requests-only", false]
|
||||
]
|
||||
}, next);
|
||||
});
|
||||
|
||||
|
|
|
@ -91,6 +91,7 @@ addLoadEvent(function() {
|
|||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["full-screen-api.enabled", true],
|
||||
["full-screen-api.unprefix.enabled", true],
|
||||
["full-screen-api.allow-trusted-requests-only", false],
|
||||
["full-screen-api.transition-duration.enter", "0 0"],
|
||||
["full-screen-api.transition-duration.leave", "0 0"]
|
||||
|
|
|
@ -30,6 +30,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=633602
|
|||
|
||||
SpecialPowers.pushPrefEnv({"set": [
|
||||
["full-screen-api.enabled", true],
|
||||
["full-screen-api.unprefix.enabled", true],
|
||||
["full-screen-api.allow-trusted-requests-only", false],
|
||||
["full-screen-api.transition-duration.enter", "0 0"],
|
||||
["full-screen-api.transition-duration.leave", "0 0"]
|
||||
|
|
|
@ -4570,6 +4570,11 @@ pref("alerts.showFavicons", false);
|
|||
|
||||
// DOM full-screen API.
|
||||
pref("full-screen-api.enabled", false);
|
||||
#ifdef RELEASE_BUILD
|
||||
pref("full-screen-api.unprefix.enabled", false);
|
||||
#else
|
||||
pref("full-screen-api.unprefix.enabled", true);
|
||||
#endif
|
||||
pref("full-screen-api.allow-trusted-requests-only", true);
|
||||
pref("full-screen-api.pointer-lock.enabled", true);
|
||||
// transition duration of fade-to-black and fade-from-black, unit: ms
|
||||
|
|
Загрузка…
Ссылка в новой задаче