crabbly / Print.js

A tiny javascript library to help printing from the web.
MIT License
4.28k stars 672 forks source link

avoid blank page on safari and firefox #682

Open acapellacci opened 1 year ago

acapellacci commented 1 year ago

Blank page issue still occurs with Firefox v114 and Safari. For this reason I propose to add a delay for both browsers and all versions.

fs-nathan commented 1 year ago

Hi @crabbly Could you please take a look on this PR? It resolves the issue mentioned here: #528

Thanks @crabbly @acapellacci

amoilanen commented 1 year ago

@acapellacci The most recent version of Print.js has not yet been published, unfortunately, so the chances are that the master branch actually works with Firefox v114?

Do you have the issue with Firefox v114 using print-js-updated https://github.com/crabbly/Print.js/issues/665#issuecomment-1597107088 ?

amoilanen commented 1 year ago

@acapellacci

At least it was proven in the past that Firefox 110.0 does not work with the added timeout, so this PR might inadvertently reintroduce https://github.com/crabbly/Print.js/issues/665 for Firefox 110.0 ?

If the timeout is needed for more recent versions of Firefox (114) and for some earlier versions (110.0) it should be removed, the condition should probably be still kept and needs to be more specific about the Firefox version?

acapellacci commented 1 year ago

@acapellacci

At least it was proven in the past that Firefox 110.0 does not work with the added timeout, so this PR might inadvertently reintroduce #665 for Firefox 110.0 ?

If the timeout is needed for more recent versions of Firefox (114) and for some earlier versions (110.0) it should be removed, the condition should probably be still kept and needs to be more specific about the Firefox version?

The issue occures in Safari 16.6 and Firefox 115