Bug 1449187 - Whitelist extra autocomplete reflows that happen due to a default bookmark with a long URL on beta/release. r=mconley

MozReview-Commit-ID: 30RgB1BAtL1

--HG--
extra : rebase_source : 4718f331a00fd9621a8728db3c295043a3ff2302
This commit is contained in:
Mark Banner 2018-04-06 15:17:19 +01:00
Родитель e0305cfbb5
Коммит c51cb3dba8
1 изменённых файлов: 31 добавлений и 0 удалений

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

@ -83,6 +83,37 @@ const EXPECTED_REFLOWS_FIRST_OPEN = [
},
];
// These extra reflows happen on beta/release as one of the default bookmarks in
// bookmarks.html.in has a long URL.
if (AppConstants.RELEASE_OR_BETA) {
EXPECTED_REFLOWS_FIRST_OPEN.push({
stack: [
"_handleOverflow@chrome://global/content/bindings/autocomplete.xml",
"_onUnderflow@chrome://global/content/bindings/autocomplete.xml",
"onunderflow@chrome://browser/content/browser.xul",
],
maxCount: 6,
});
EXPECTED_REFLOWS_FIRST_OPEN.push({
stack: [
"_handleOverflow@chrome://global/content/bindings/autocomplete.xml",
"_onOverflow@chrome://global/content/bindings/autocomplete.xml",
"onoverflow@chrome://browser/content/browser.xul",
],
maxCount: 6,
});
EXPECTED_REFLOWS_FIRST_OPEN.push({
stack: [
"_handleOverflow@chrome://global/content/bindings/autocomplete.xml",
"_adjustAcItem@chrome://global/content/bindings/autocomplete.xml",
"_appendCurrentResult@chrome://global/content/bindings/autocomplete.xml",
"_invalidate@chrome://global/content/bindings/autocomplete.xml",
"invalidate@chrome://global/content/bindings/autocomplete.xml",
],
maxCount: 12,
});
}
/**
* Returns a Promise that resolves once the AwesomeBar popup for a particular
* window has appeared after having done a search for its input text.