-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
liferea.css is no longer applied after update webkit2gtk-2.30.6 to 2.32.0 in archlinux #973
Comments
I can confirm on Fedora 33 the same. |
It used to be enought to declare the liferea custom scheme as local to access resources with file scheme, but for WebKit2Gtk >= 2.32 it looks like it is necessary to register the custom scheme with a handler. The handler doesn't do anything interesting for now as we just pass the content with webkit_web_view_load_bytes and use the file scheme to access resources, but it could be used to load Liferea resources in the future ...
Thanks @Leiaz it works well. |
@Leiaz |
Would this be why as of the latest updates on Arch, the content window is white when the rest adhere to dark theme? |
@LiamDawe Yes, that is due to the css file not loading. |
Register liferea custom scheme, fixes #973
@Leiaz just to confirm, your patch also works with older webkit2gtk versions, right? |
@paulgevers Yes, it should, I'm not using anything marked in the doc as requiring a particular version. |
@Leiaz thanks for confirming. One more request. I'm expecting the new webkit2gtk to also show up in Debian stable, which means that I also need to fix liferea 1.12.6. Your patch doesn't apply cleanly, can you double check that the patch looks good? I.e. I inserted it in the correct context? I have prepared the following commit for this review: |
@paulgevers Yes, that patch is good. |
@Leiaz awesome, thanks for confirming. |
Liferea 1.13.5 and also newest version from master (commit b3de8af).
With webkit2gtk-2.30.6 everything is fine, with webkit2gtk-2.32.0 liferea.css doesn't work - see screenshots with activated webkit2-inspector.
With webkit2gtk-2.32.0 I get the message: "User Agent Style Sheet cannot be modified." and as error-message: "Not allowed to load local resource: file:///home/harald/.cache/liferea/style.css?1617130761"
Perhaps of this?: The changelog (https://webkitgtk.org/2021/03/26/webkitgtk2.32.0-released.html) states: "New API to remove individual scripts/stylesheets using WebKitUserContentManager."
The only workaround for me is to downgrade to webkit2gtk-2.30.6.
Am I missing something?
Best regards
harald
The text was updated successfully, but these errors were encountered: