css: Remove crashy resource:// optimization
authorBenjamin Otte <otte@redhat.com>
Fri, 12 May 2023 17:20:58 +0000 (19:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 16 May 2023 16:53:27 +0000 (18:53 +0200)
commitee6ef41e715d3ea373c32e2bcd4d05e36d2534e8
tree149d5bdb643428dc5539400e79fe7721570b33ea
parentfde3d2cd50585ec2abef1313fbf4cd189c88a2a1
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]