Fenix: [Bug] Download digital certificate pdf COVID19

Created on 6 Apr 2020  ·  10Comments  ·  Source: mozilla-mobile/fenix

Hello

Screenshot_20200406-112833_Firefox Preview

I can't download the pdf of the digital certificate COVID19 on Firefox Preview. It works on Firefox Windows.

URL : https://media.interieur.gouv.fr/deplacement-covid-19/

Download engverified 🐞 bug

All 10 comments

The PDF is generated on the fly. I think that GeckoView can't handle that properly right now, whereas Gecko can.

Does not seem to be the blob: issue. Attached are the headers that desktop sees.

Screenshot_2020-04-06-issue-9735

On the contrary, I think it is the blob issue:
image

https://github.com/webcompat/web-bugs/issues/51214#issuecomment-609957604

From https://media.interieur.gouv.fr/certificate.js

$('#form-profile').addEventListener('submit', async event => {
  event.preventDefault()

  saveProfile()
  const reasons = getAndSaveReasons()
  const pdfBlob = await generatePdf(getProfile(), reasons)
  downloadBlob(pdfBlob, 'attestation.pdf')

  snackbar.classList.remove('d-none')
  setTimeout(() => snackbar.classList.add('show'), 100)

  setTimeout(function () {
    snackbar.classList.remove('show')
    setTimeout(() => snackbar.classList.add('d-none'), 500)
  }, 6000)
})
function downloadBlob (blob, fileName) {
  const link = document.createElement('a')
  var url = URL.createObjectURL(blob)
  link.href = url
  link.download = fileName
  document.body.appendChild(link)
  link.click()
}

@kbrosnan is there a link to the blob issue?

Closing as a dupe of mozilla-mobile/android-components/issues/1159

Now we have support for blob URLs. QA please help us to verify if this website is working as expected.

Hi all,
I tested today and confirm it works now 😃

Hi, verified as fixed on the latest Nightly Build #200518 from 5/18 using the following devices:
• Google Pixel 3a (Android 10)
• Huawei Mate 20 Lite (Android 9)
• OnePlus A3 (Android 6.0.1)

► Video
20200518-093609

It is correcty fixed in the nightly build, but generate a browser crash with the release version :

crash_firefox_covid

it will be fixed when the release build gets the new AC version.

Was this page helpful?
0 / 5 - 0 ratings