Bug 1623476 - Disable zoom-to-focused-input behaviour in clipboard tests. r=kats

The tests don't have a reliable mechanism to wait for a potential zoom
animation to end, leading to flakiness due to a zoom animation form a previous
sub-case interfering with the current sub-case.

Differential Revision: https://phabricator.services.mozilla.com/D67522

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2020-03-23 22:24:40 +00:00
Родитель 3dfece9cbe
Коммит 7208849141
3 изменённых файлов: 8 добавлений и 0 удалений

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

@ -2475,6 +2475,10 @@ nsDOMWindowUtils::DisableApzForElement(Element* aElement) {
NS_IMETHODIMP
nsDOMWindowUtils::ZoomToFocusedInput() {
if (!Preferences::GetBool("apz.zoom-to-focused-input.enabled")) {
return NS_OK;
}
nsIWidget* widget = GetWidget();
if (!widget) {
return NS_OK;

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

@ -5,6 +5,8 @@ support-files =
file_iframe_check_user_activation.html
file_iframe_consume_user_activation.html
file_clipboard_common.js
prefs =
apz.zoom-to-focused-input.enabled=false
[test_useractivation_has_been_activated.html]
[test_useractivation_transient.html]

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

@ -586,6 +586,8 @@ pref("media.audiograph.single_thread.enabled", true);
pref("apz.overscroll.stop_velocity_threshold", "0.01");
pref("apz.overscroll.stretch_factor", "0.35");
pref("apz.zoom-to-focused-input.enabled", true);
#ifdef XP_MACOSX
// Whether to run in native HiDPI mode on machines with "Retina"/HiDPI
// display.