LibWeb: Consider resource: URLs to be trustworthy and non-opaque

This makes icons once again load in the directory listings
This commit is contained in:
circl 2024-06-10 12:33:52 +02:00 committed by Andrew Kaster
commit d14888f31a
Notes: sideshowbarker 2024-07-17 01:00:06 +09:00
2 changed files with 4 additions and 2 deletions

View file

@ -54,7 +54,8 @@ Trustworthiness is_origin_potentially_trustworthy(HTML::Origin const& origin)
}
// 6. If origins scheme is "file", return "Potentially Trustworthy".
if (origin.scheme() == "file"sv)
// AD-HOC: Our resource:// is basically an alias to file://
if (origin.scheme() == "file"sv || origin.scheme() == "resource"sv)
return Trustworthiness::PotentiallyTrustworthy;
// 7. If origins scheme component is one which the user agent considers to be authenticated, return "Potentially Trustworthy".