Bug 1742823, handle pdf in this test when improvements pref is either on or off, r=mtigley

Differential Revision: https://phabricator.services.mozilla.com/D132044
This commit is contained in:
Neil Deakin 2021-11-24 20:13:20 +00:00
Родитель abeedf3bbd
Коммит cc92684988
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -63,7 +63,7 @@ async function checkDownloadWithExtensionState(
// PDF should load using the internal viewer without downloading it.
let waitForLoad;
if (type == "application/pdf") {
if (!shouldExpectDialog && type == "application/pdf") {
waitForLoad = BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
}
@ -101,7 +101,7 @@ async function checkDownloadWithExtensionState(
dialog.acceptDialog();
}
if (type == "application/pdf") {
if (!shouldExpectDialog && type == "application/pdf") {
is(
gURLBar.inputField.value,
"data:application/pdf,hello",