Bug 1672238 - Fix test_nullCharFile.xhtml on fission x-origin. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D94784
This commit is contained in:
Marco Bonardo 2020-10-27 10:36:47 +00:00
Родитель 4afbc20031
Коммит fc2ec63b44
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -27,7 +27,7 @@ add_task(async function() {
});
const a = document.createElement('a');
// Pass an unknown mimetype so we don't "correct" the extension:
a.href = URL.createObjectURL(new Blob(["test"], {type: "application/x-gobbledygook-firefox-unknown"}));
a.href = "data:application/baconizer;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==";
a.download = name;
a.dispatchEvent(new MouseEvent('click'));
is((await promiseName), expected, "got the expected sanitized name");