Rocco Corsi
9281baffd8
LibCore: Recognize filenames .shellrc and CMakeLists.txt as text
...
There was a missing comma in the array, so these two entries were
concatenated accidentally.
2025-05-26 14:23:43 -06:00
Shannon Booth
d62cf0a807
Everywhere: Remove some use of the URL constructors
...
These make it too easy to construct an invalid URL, which makes it
difficult to remove the valid state of URL - which this API relies
on.
2025-02-19 08:01:35 -05:00
Aliaksandr Kalenik
71eded0471
LibCore: Recognize .xht as XHTML in MIME parser for file names
...
Fixes a bug when https://wpt.live/css/CSS2/positioning/abspos-001.xht
saved as file fails because we incorrectly recognized its MIME type
as HTML, leading to incorrect self-closing tag handling and thus
incorrect rendering.
2024-11-15 18:50:38 +01:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00
AnotherTest
8066a623d9
LibCore: Make `guess_mime_type_based_on_filename()' recognise CSV files
2020-11-24 21:38:13 +01:00
Andreas Kling
5043c4a3e5
LibCore+WebServer+LibWeb: Make MIME type guesser take a StringView
...
This reverts my previous commit in WebServer and fixes the whole issue
in a much better way. Instead of having the MIME type guesser take a
URL (which we don't actually have in the WebServer at that point),
just take a path as a StringView.
Also, make use of the case-insensitive StringView::ends_with() :^)
2020-10-21 21:16:20 +02:00
Simon Danner
05be6481b7
LibWeb: make it possible to directly load .svg files
...
Make LibWeb load svg files by guessing the svg mime type from the file
extension and parsing it with the HTML parser.
2020-09-08 13:57:18 +02:00
Andreas Kling
78518d230c
LibCore+LibWeb: Move guess-mimetype-based-on-filename logic to LibCore
...
This could be useful in more places.
2020-07-27 19:57:20 +02:00
Andreas Kling
3cba9c3c25
LibCore: Add Core::MimeData class
...
This object contains zero or more { mime_type, data } entries and will
be used for clipboard data as well as drag & drop.
2020-02-14 13:17:26 +01:00