1) Search for PDF
2) Click on PDF
3) If PDF did not open, click on it in the list
4) Click on close button
Nextcloud version: 12rc1
Uncaught ReferenceError: webpackJsonp is not defined
at 0.editor.js:1
(anonymous) @ 0.editor.js:1
Error: Loading chunk 0 failed.
at HTMLScriptElement.n (editor.js?v=f77ee4e…-45:1)
Problem by the pdfviewer:
Warning: Deprecated API usage: PDFJS.openExternalLinksInNewWindow, please use "PDFJS.externalLinkTarget = PDFJS.LinkTarget.BLANK" instead. pdf.js:368:5
#Close is undefined. l10n.js:829:7
#Close is undefined. l10n.js:901:7
#close_label is undefined. l10n.js:829:7
#close_label is undefined. l10n.js:901:7
Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf self blockiert ("script-src 'nonce-UlZ6cjh2dGY4eUhmbHdFQ2s5dXc4R09XVTRkaUVsZEw2cm1zWlYzQ1c0QT06SHhLZXNZc1VoeE9KMlhoSC9KakN2QTNzQk1FMUtoc2ZwOENIVjJ1QkUrdz0='"). Source: call to eval() or related function blocked by CSP. (unbekannt)
PDF 588ee6e86a6f2bc3dd2844e4e88ca442 [1.5 IT Department Eurowings / pdfTeX-1.10b, LaTeX with hyperref] (PDF.js: 1.4.20) viewer.js:6879:7
cc @LukasReschke since its content security stuff
Problem persists in 12RC4...
nc v12.0.0 finish init, and login first,open nextcloud.mp4,can't close it.i use chrome
Bugger, I run NC12.0.0 on a staging server for two weeks and did not notice this one. Move to production and … 😢 😢
Oh, well. That's life. 😜
@9662
That's why i always wait for the next update befor upgrading my production :)
When this bug is fixed i will update from 11.03 to 12.02
fixed in current 12.0.1 RCx
Still not fixed when following the steps detailed in the OP.
This might be of interest for the root cause analysis (tested with NC 12.0.3 and FF 55.0.3):
Opening and closing a pdf file is working, if
Opening and closing a pdf file doesn't work, if
Awesome job @j-ed
A possible fix for this issue is in https://github.com/nextcloud/files_pdfviewer/pull/49
Fixed and will be available in 12.0.5 and 13.
Most helpful comment
This might be of interest for the root cause analysis (tested with NC 12.0.3 and FF 55.0.3):
Opening and closing a pdf file is working, if
Opening and closing a pdf file doesn't work, if