Bug 1771822 - Do not explicitly set apz.allow_zooming in mochitests. r=tnikkel

We can't do likewise for reftests and web platform tests because
those test suites disable apz.allow_zooming by default on android.

Differential Revision: https://phabricator.services.mozilla.com/D151576
This commit is contained in:
Botond Ballo 2022-07-12 06:49:11 +00:00
Родитель 245d56e9c5
Коммит fea611dcac
10 изменённых файлов: 6 добавлений и 31 удалений

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

@ -2,7 +2,6 @@ function scaleRatio(scale) {
return {
set: [
["layout.css.devPixelsPerPx", "" + scale],
["apz.allow_zooming", true],
["dom.meta-viewport.enabled", true],
],
};

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

@ -10,7 +10,6 @@
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv({
"set": [
["apz.allow_zooming", true],
["dom.meta-viewport.enabled", true],
]
}, () => {

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

@ -1,6 +1,4 @@
[DEFAULT]
prefs =
apz.allow_zooming=true
support-files =
apz_test_native_event_utils.js
apz_test_utils.js

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

@ -27,7 +27,6 @@
var zoom_and_pan_prefs = [
...prefs,
...getPrefs("TOUCH_EVENTS:PAN"),
["apz.allow_zooming", true],
];
var no_multiplier_prefs = [

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

@ -21,9 +21,6 @@ const prefs = [
// test takes too long the displayport can expire before we read the value
// out of the test. So we disable displayport expiry for these tests.
["apz.displayport_expiry_ms", 0],
// Explicitly enable pinch-zooming, so this test can run on desktop
// even though zooming isn't enabled by default on desktop yet.
["apz.allow_zooming", true],
// Similarly, explicitly enable support for meta viewport tags (which the
// test cases use) so they're processed even on desktop.
["dom.meta-viewport.enabled", true],

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

@ -15,20 +15,13 @@ var subtests = [
// clicking on element with :active::after CSS property
{"file": "helper_bug1473108.html"},
// Resetting isFirstPaint shouldn't clobber the visual viewport
{"file": "helper_bug1509575.html", "prefs": [
["apz.allow_zooming", true],
...getPrefs("TOUCH_EVENTS:PAN")
]},
{"file": "helper_bug1509575.html", "prefs": getPrefs("TOUCH_EVENTS:PAN")},
// Exercise one of the main-thread touch-action determination codepaths.
{"file": "helper_bug1506497_touch_action_fixed_on_fixed.html", "prefs": touch_action_prefs},
{"file": "helper_bug1637113_main_thread_hit_test.html",
"prefs": [["apz.allow_zooming", true]]},
{"file": "helper_bug1638458_contextmenu.html",
"prefs": [["apz.allow_zooming", true]]},
{"file": "helper_bug1638441_fixed_pos_hit_test.html",
"prefs": [["apz.allow_zooming", true]]},
{"file": "helper_bug1637135_narrow_viewport.html", "prefs": [["apz.allow_zooming", true],
["dom.meta-viewport.enabled", true]]},
{"file": "helper_bug1637113_main_thread_hit_test.html"},
{"file": "helper_bug1638458_contextmenu.html"},
{"file": "helper_bug1638441_fixed_pos_hit_test.html"},
{"file": "helper_bug1637135_narrow_viewport.html", "prefs": [["dom.meta-viewport.enabled", true]]},
{"file": "helper_bug1714934_mouseevent_buttons.html"},
// Add new subtests here. If this starts timing out because it's taking too

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

@ -24,9 +24,6 @@ var prefs = [
// test takes too long the displayport can expire before we read the value
// out of the test. So we disable displayport expiry for these tests.
["apz.displayport_expiry_ms", 0],
// Explicitly enable pinch-zooming, so this test can run on desktop
// even though zooming isn't enabled by default on desktop yet.
["apz.allow_zooming", true],
// Increase the content response timeout because some tests do preventDefault
// and we want to make sure APZ actually waits for them.
["apz.content_response_timeout", 60000],

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

@ -23,9 +23,6 @@ var prefs = [
// test takes too long the displayport can expire before we read the value
// out of the test. So we disable displayport expiry for these tests.
["apz.displayport_expiry_ms", 0],
// Explicitly enable pinch-zooming, so this test can run on desktop
// even though zooming isn't enabled by default on desktop yet.
["apz.allow_zooming", true],
// Increase the content response timeout because some tests do preventDefault
// and we want to make sure APZ actually waits for them.
["apz.content_response_timeout", 60000],

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

@ -10,10 +10,7 @@ add_task(async () => {
}
await SpecialPowers.pushPrefEnv({
set: [
["apz.allow_zooming", true],
["dom.meta-viewport.enabled", true],
],
set: [["dom.meta-viewport.enabled", true]],
});
const fissionWindow = await BrowserTestUtils.openNewBrowserWindow({

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

@ -10,7 +10,6 @@ SpecialPowers.pushPrefEnv(
{
set: [
["dom.meta-viewport.enabled", true],
["apz.allow_zooming", true],
],
},
function() {