Keyboard shortcuts and some links not working in Edge (PWA)
Closed this issue · 9 comments
I want to run Miniflux as an Edge PWA app (I'm not allowed to install any software on this PC; Edge is the only browser installed), but keyboard shortcuts and some links (like marking all items read) don't work: nothing happens when I type that key or click on such link (not even the red confirmation question).
- Miniflux 2.2.1 (Git commit faa70f3)
- Microsoft Edge for Business Version 130.0.2849.56 (Official build) (64-bit)
- Windows 10 22H2 (OS Build 19045.4894)
I tested with Windows 11 23H2 / Microsoft Edge 130.0.2849.56 (Official build) (64-bit)
, and the keyboard shortcuts works fine for me.
I don't have access to any other Windows configuration. I don't know much about the business of version of Microsoft Edge, but I'm assuming IT administrators can disable some features for security reasons.
Does the keyboard shortcuts works without the PWA installed?
Does the keyboard shortcuts works without the PWA installed?
I think they didn't, but don't have access to the machine with the problematic behavior today.
Shortcuts & links work fine on my MacBook Pro, both in Safari and as a PWA.
Did try it on another PC (with the regular Edge) though and same issue: keys/links not working.
- Microsoft Edge Version 130.0.2849.56 (Official build) (64-bit)
- Windows 10 22H2 (OS Build 19045.5073)
Does the keyboard shortcuts works without the PWA installed?
No, they don't work then either.
Which other information do you need?
Do you see any Javascript error in the browser console?
Just to be sure, the keyboard shortcuts option is the user settings is enabled?
Yes, the keyboard shortcuts option is enabled.
There are indeed errors in the JavaScript console:
For settings:1782
:
Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-<REDACTED>'), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
and for rocket-loader.min.js:1
:
This document requires 'TrustedScript' assignment.
and (also) for rocket-loader.min.js:1
:
Uncaught TypeError: Failed to set the 'textContent' property on 'Node': This document requires 'TrustedScript' assignment.
I wonder why this is not a problem in Safari. Hope to check its console later today.
Same/similar errors in Safari on macOS, but keyboard and shortcut links work.
(So not related?)
You need to disable the Rocket Loader feature in your Cloudflare settings.
https://developers.cloudflare.com/speed/optimization/content/rocket-loader/
When this feature is enabled, Cloudflare injects its own Javascript in the page, and obviously it breaks everything.
You need to disable the Rocket Loader feature in your Cloudflare settings.
That indeed fixed both keyboard shortcuts and links!
Thank you for pointing this out (I had done this for other self-hosted services, but forgot to check this for Miniflux).