Errors hiding PDF WebViewer in Chrome 65

Skip to first unread message

Matt Parizeau

Apr 25, 2018, 8:38:11 PM4/25/18
In Chrome 65 the behavior changed so that if a parent of the WebViewer element is set to "display: none" then the PNaCl worker will crash when attempting to render more pages or load a new document.

As a workaround you can set the element to "visibility: hidden" instead of "display: none" which won't trigger the bug. If you need to override a library's CSS that hides the element for you then something like the following will usually work:

.existing-hidden-class {
  display: block !important;
  visibility: hidden;

Note that this is only for PDF WebViewer on Chrome if you are hiding the viewer element and does not affect XOD or other browsers.

Update: Chrome has said that this is "intended behavior", and you can read the discussion here:
Reply all
Reply to author
0 new messages