[GTK] After upgrading glib and glib-networking, resources with zero bytes are always...
authorcsaavedra@igalia.com <csaavedra@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 May 2017 12:58:44 +0000 (12:58 +0000)
committercsaavedra@igalia.com <csaavedra@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 May 2017 12:58:44 +0000 (12:58 +0000)
commit5281fb8debe1a31dfaff885a3efe38c00046aefe
tree14d45a434bf1309f98ca5a0f7d55f403d61a15c3
parente461d62668ad607d8f6acceb177a4ee45de52144
[GTK] After upgrading glib and glib-networking, resources with zero bytes are always identified as text/plain
https://bugs.webkit.org/show_bug.cgi?id=171058

Reviewed by Carlos Garcia Campos.

GLib-based ports have issues detecting the mimetypes of empty
files, as they are all considered to be text/plain by
glib. Replace these resources with a minimal valid file for its
type (that is, 1x1 PNG files and 1 whitespace for text files).

* fast/preloader/resources/base-image1.png:
* fast/preloader/resources/base-image2.png:
* fast/preloader/resources/base-image3.png:
* fast/preloader/resources/image1.png:
* fast/preloader/resources/link1.css:
* fast/preloader/resources/noscript-image1.png:
* fast/preloader/resources/noscript-image2.png:
* fast/preloader/resources/script1.js:
* fast/preloader/resources/style1.css:
* tables/mozilla/core/col_widths_fix_autoFixPer.html:

* platform/gtk/TestExpectations: Unskip the now passing tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/preloader/resources/base-image1.png
LayoutTests/fast/preloader/resources/base-image2.png
LayoutTests/fast/preloader/resources/base-image3.png
LayoutTests/fast/preloader/resources/image1.png
LayoutTests/fast/preloader/resources/link1.css
LayoutTests/fast/preloader/resources/noscript-image1.png
LayoutTests/fast/preloader/resources/noscript-image2.png
LayoutTests/fast/preloader/resources/script1.js
LayoutTests/fast/preloader/resources/style1.css
LayoutTests/platform/gtk/TestExpectations
LayoutTests/tables/mozilla/core/col_widths_fix_autoFixPer.html