Why does the generated database not contain a listing for .pkg?
The server-provided MIME type is unknown. If the .pkg extensions is added to the database, will the extension recognize it or does the server-supplied MIME take precedence? If so, perhaps we should change the labeling heuristic to not label data as XML even if the server-supplied MIME contains +xml when the file extension maps to a non-XML type.
Someone provided a test case where the Open in Browser dialog mistakenly shows "XML" instead of "XAR archive".
Test case:
The database does contain an entry https://github.com/Rob--W/open-in-browser/blob/a4a6e6c1e8a10f4a8f63d520f3026d018501e632/shared-mime-info/freedesktop.org.xml
However the generated database does not: https://github.com/Rob--W/open-in-browser/blob/a4a6e6c1e8a10f4a8f63d520f3026d018501e632/extension/mime-metadata.js
Two things to check:
.pkg
?.pkg
extensions is added to the database, will the extension recognize it or does the server-supplied MIME take precedence? If so, perhaps we should change the labeling heuristic to not label data as XML even if the server-supplied MIME contains+xml
when the file extension maps to a non-XML type.