Closed Bug 1696619 Opened 5 years ago Closed 5 years ago

Canvas contents becomes to blank on the Print Preview (and the printed result also)

Categories

(Core :: Print Preview, defect)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox88 --- affected

People

(Reporter: yuki, Unassigned)

Details

Attachments

(1 file)

Firefox looks to fail printing some webpages containing HTML canvas, if the printing is triggered from Firefox's UI instead of scripts in the webpage.

Steps to reproduce

  1. Start Firefox.
  2. Go to https://map.yahoo.co.jp/
  3. Wait until the map is rendered.
  4. Click the printer icon placed at the right edge of the page.
  5. Then a printing version page is shown.
  6. Choose app menu => "Print..." or hit Ctrl-P to show print preview.
  7. The print preview appears.
  8. Choose any printer (you can choose "Save to PDF" also) and click the "Print" (or "Save" for "Save to PDF") button.

Expected result

Both print preview (step 7) and printed result (step 8) contain a map rendered in a canvas.

Actual result

Both print preview and printed result contain a blank area without rendered map.
And curiously, I can get the expected result with different steps:

  1. Start Firefox.
  2. Go to https://map.yahoo.co.jp/
  3. Wait until the map is rendered.
  4. Click the printer icon placed at the right edge of the page.
  5. Then a printing version page is shown.
  6. Click the blue "印刷" (means "print" in Japanese) button in the webpage.
  7. The print preview appears with rendered map.
  8. Choose any printer and click the "Print" (or "Save" for "Save to PDF") button, then the printed result contains a rendered map.

Environment

  • Firefox 86.0 (build ID: 20210222142601) on Windows 10
  • Nightly 88.0a1 (build ID: 20210304215542) on Windows 10
  • Firefox 86.0 (build ID: 20210222142601) on Ubuntu 20.04LTS

I've realized that there is a FAQ including workaround: https://support.yahoo-net.jp/PccMap/s/article/H000007713
It says that I need to turn on the checkbox "Print backgrounds" to print the canvas contents in the page. On old Firefox it was impossible on some environments because GNOME's print settings dialog doesn't provide the checkbox. But the latest Firefox (Firefox 86) provides its own print settings, so this is not a critical problem anymore.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: