Bug 1672238 - Fix test_nullCharFile.xhtml on fission x-origin. r=Gijs
authorMarco Bonardo <mbonardo@mozilla.com>
Tue, 27 Oct 2020 10:36:47 +0000
changeset 554718 e301b90c2b0e7da0b43d27f4625780c927c20fe4
parent 554717 3ffe88edf31e1635195dc31a846a1d7fa4681491
child 554719 0687a7e0e00005df10fb8a10af9bcb34a362a57b
push id37898
push userabutkovits@mozilla.com
push dateWed, 28 Oct 2020 09:24:21 +0000
treeherdermozilla-central@83bf4fd3b1fb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1672238
milestone84.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1672238 - Fix test_nullCharFile.xhtml on fission x-origin. r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D94784
uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml
--- a/uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml
+++ b/uriloader/exthandler/tests/mochitest/test_nullCharFile.xhtml
@@ -22,17 +22,17 @@ add_task(async function() {
       chromeScript.addMessageListener("suggestedFileName",
                                       function listener(data) {
         chromeScript.removeMessageListener("suggestedFileName", listener);
         resolve(data);
       });
     });
     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");
   }
 
   let promise = new Promise(function(resolve) {
     chromeScript.addMessageListener("unregistered", function listener() {
       chromeScript.removeMessageListener("unregistered", listener);