Add a directory listing feature for file URLs (#32580)

Signed-off-by: Bobulous <Bobulous@users.noreply.github.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Bobulous <Bobulous@users.noreply.github.com>
This commit is contained in:
Martin Robinson 2024-06-26 10:02:50 +02:00 committed by GitHub
parent b3d99a607f
commit 7ea894774f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 291 additions and 11 deletions

View file

@ -37,6 +37,12 @@ pub enum Origin {
Origin(ImmutableOrigin),
}
impl Origin {
pub fn is_opaque(&self) -> bool {
matches!(self, Origin::Origin(ImmutableOrigin::Opaque(_)))
}
}
/// A [referer](https://fetch.spec.whatwg.org/#concept-request-referrer)
#[derive(Clone, Debug, Deserialize, MallocSizeOf, PartialEq, Serialize)]
pub enum Referrer {