css: Remove crashy resource:// optimization
authorBenjamin Otte <otte@redhat.com>
Fri, 12 May 2023 17:20:58 +0000 (19:20 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Jun 2023 11:52:05 +0000 (07:52 -0400)
commit41696b0c575c9331bbf8ae6c622df1e4c7c9e5c9
tree779d0ce70a82a18a444e61f150b8cc3c51a58c13
parent49d06736a5f0c56bcf242cf8e25b9b8f808f4701
css: Remove crashy resource:// optimization

Using gdk_texture_new_from_resource() is not valid here because we are
not sure if the given resource is valid.

Plus, the previous optimization is no longer relevant, because we are
not using gdk_pixbuf_new_from_resource() anymore - which was what this
optimization was about before it was ported to GdkTexture.

Test attached.
gtk/gtkcssimageurl.c
testsuite/css/parser/meson.build
testsuite/css/parser/resource-url.css [new file with mode: 0644]
testsuite/css/parser/resource-url.ref.css [new file with mode: 0644]