Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Print event detection

  • No replies
  • 0 have this problem
  • 15 views
more options

Hi,

I'm working on a Firefox extension where I need to detect print event. I've tried the following approaches:

  • beforeprint – Fires immediately when the print dialog opens (works correctly in Chrome).
  • afterprint – Fires immediately when the dialog closes (works correctly in Chrome).
  • window.focus and visibilitychange – Work inconsistently with noticeable delay, depending on how Firefox handles focus/visibility updates after closing the dialog.

Questions: 1. Is there a reliable way in Firefox to detect print event? 2. Are there any known workarounds or events that could be used for this purpose?

Thanks.

Hi, I'm working on a Firefox extension where I need to detect print event. I've tried the following approaches: * beforeprint – Fires immediately when the print dialog opens (works correctly in Chrome). * afterprint – Fires immediately when the dialog closes (works correctly in Chrome). * window.focus and visibilitychange – Work inconsistently with noticeable delay, depending on how Firefox handles focus/visibility updates after closing the dialog. Questions: 1. Is there a reliable way in Firefox to detect print event? 2. Are there any known workarounds or events that could be used for this purpose? Thanks.

Modified by Arvind Malge

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.