We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

viewer.js showing blank pages since update to 90

more options

We have an internal review screen in our company to review data using pdf.js and viewer.js that we customized with a few extra menu items. It has been working great for years. Now, Firefox updates to version 90.0 and it displays blank pages for pdf files. This did not happen in any version up to 89.0.2. It is happening on multiple computers. We can still load this screen in Chrome and Edge with no issue. On one affected computer, I uninstalled Firefox, downloaded and installed version 89.0.2 and it worked again. (I had to turn off automatic updates.)

We have an internal review screen in our company to review data using pdf.js and viewer.js that we customized with a few extra menu items. It has been working great for years. Now, Firefox updates to version 90.0 and it displays blank pages for pdf files. This did not happen in any version up to 89.0.2. It is happening on multiple computers. We can still load this screen in Chrome and Edge with no issue. On one affected computer, I uninstalled Firefox, downloaded and installed version 89.0.2 and it worked again. (I had to turn off automatic updates.)

所有回覆 (7)

more options

Hmm, I wonder what changed.

The pdf.js demo at https://mozilla.github.io/pdf.js/web/viewer.html seems to still be working, although it could be a different version from the one you're running. Looks like the latest release was May 30th: https://github.com/mozilla/pdf.js/releases

Any chance this is a Tracking Protection issue? The shield icon toward the left end of the address bar usually turns a bit purplish when content is blocked. Click the icon to learn more or make an exception. See: Enhanced Tracking Protection in Firefox for desktop.

more options

There wasn't a Tracking Protection issue for this. I checked and this was created with version 1.5.343.

more options

Hmm, maybe that release was from around 2016?

Does it make any difference if you test the page in Firefox's Troubleshoot Mode (formerly known as Safe Mode)? In that mode, Firefox temporarily deactivates extensions, hardware acceleration, any userChrome.css/userContent.css files, and some other advanced features to help you assess whether these are causing the problem.

If Firefox is running:

You can restart Firefox in Safe/Troubleshoot Mode using either:

  • "3-bar" menu button > Help > Troubleshoot Mode... (before Fx88: Restart with Add-ons Disabled)
  • (menu bar) Help menu > Troubleshoot Mode... (before Fx88: Restart with Add-ons Disabled)

and OK the restart. A small dialog should appear. Click the Open button (before Fx88: "Start in Safe Mode" button).

If Firefox is not running:

Hold down the Shift key when starting Firefox. (On Mac, hold down the option/alt key instead of the Shift key.) A small dialog should appear. Click the Open button (before Fx88: "Start in Safe Mode" button).

Note: Don't use the Refresh without first reviewing this article to understand what will be deleted: Refresh Firefox - reset add-ons and settings.

Any difference? If so, I would suspect the ongoing changes to graphics and rendering.

more options

No difference in Troubleshoot mode.

more options

Unless there is a public-facing website with this problem, it's going to be difficult for any of the support volunteers to figure out what is going on.

more options

Ok. I copied all of this to one of our servers that has public access. You can access it at: http://www.gel-mobile.com/web/viewer.html?file=/web/raw.pdf

Thanks for looking at this!

more options

Strange. Firefox is extracting the text and generating the searchable/selectable trasparent text layer, but the canvas which should show the image conversion of the document is just white.

I don't see any relevant-looking script errors in the web console.

Someone with extra time could run the Mozregression tool to pinpoint the patch that caused the canvas to become invisible. https://mozilla.github.io/mozregression/

However, since it is an older version of the viewer, I don't know whether it would be a priority fix, unless other sites also are affected.