mirror of
https://github.com/lexmount/moli.git
synced 2026-11-13 08:08:10 +00:00
Keep method-independent site limits and redirect diagnostic history apart from the current HTTP method. Compute SameSite outcomes and both diagnostic tracks when read, with one canonical method input. Method overrides no longer reverse-repair cached SameSite results or duplicated metadata. Preserve explicit CrossSite restrictions, scope rebinding, partition keys, and historical downgrade diagnostics. Keep cache key material unchanged while moving consumers to the computed context API. Cover method round trips without history mutation and retain distinct diagnostics when different histories end with the same CrossSite result.
56 lines
2.4 KiB
Rust
56 lines
2.4 KiB
Rust
mod core_conversion;
|
|
mod network_context;
|
|
mod query_report;
|
|
mod set_report;
|
|
mod site_data;
|
|
mod stored_cookie;
|
|
|
|
pub use network_context::NetworkStorageAccessStatus;
|
|
pub use network_context::{
|
|
BrowserCookieFacadeContext, BrowserCookieFacadeContextOverrides, BrowserCookieFacadeOverrides,
|
|
BrowserCookieStorageAccessStatus, CookieSource, NetworkCookieRequestContext,
|
|
NetworkSameSiteContext, NetworkSiteContextMetadata, NetworkSiteContextTrackMetadata,
|
|
advance_cookie_request_context, core_browser_site_context_from_facade,
|
|
core_same_site_context_metadata_from_stored, redirect_types_for_request,
|
|
site_context_downgrade_type,
|
|
};
|
|
pub use query_report::{
|
|
StoredCookieAccess, StoredCookieAccessSemantics, StoredCookieBrowserContextValueSource,
|
|
StoredCookieEffectiveSameSite, StoredCookieExclusionReason, StoredCookieFacadeStatus,
|
|
StoredCookieQueryReport, StoredCookieRequestSameSiteContext,
|
|
StoredCookieSameSiteContextDowngradeType, StoredCookieSameSiteHttpMethod,
|
|
StoredCookieSameSiteRedirectType, StoredCookieScopeSemantics, StoredCookieSiteContextBasis,
|
|
StoredCookieStorageAccessStatus, StoredCookieWarningReason,
|
|
};
|
|
pub use set_report::{
|
|
StoredCookieSetRejectionReason, StoredCookieSetReport, StoredCookieSetStatus,
|
|
StoredCookieSetWarningReason,
|
|
};
|
|
pub use site_data::{
|
|
CookieSiteDataChange, CookieSiteDataClearReport, CookieSiteDataClearScope, CookieSiteDataScope,
|
|
CookieSiteDataSummary, CookieStorageClearReport, CookieStorageClearTarget,
|
|
CookieStorageStateDiff, CookieStorageStateSnapshot,
|
|
};
|
|
#[cfg(any(test, feature = "test-support"))]
|
|
pub use site_data::{
|
|
CookieSiteDataClearPreviewReport, CookieSiteDataOperation,
|
|
CookieSiteDataOperationPreviewReport, CookieSiteDataOperationReport,
|
|
CookieStorageClearPreviewReport,
|
|
};
|
|
pub use stored_cookie::{
|
|
StoredCookie, StoredCookieDomainMatch, StoredCookiePartitionFilter, StoredCookiePartitionKey,
|
|
StoredCookieSameSite, StoredCookieSourceScheme,
|
|
};
|
|
|
|
#[cfg(any(test, feature = "test-support"))]
|
|
pub use network_context::{
|
|
NetworkSameSiteContextDowngradeType, NetworkSameSiteRedirectType, NetworkSiteContext,
|
|
};
|
|
|
|
pub(crate) use core_conversion::{
|
|
core_partition_key_from_stored, stored_cookie_from_core, stored_partition_key_from_core,
|
|
stored_query_report_from_core, stored_set_report_from_core,
|
|
};
|
|
pub(crate) use network_context::core_cookie_partition_key_for_url;
|
|
pub(super) use stored_cookie::{core_source_scheme_from_stored, has_invalid_cookie_octets};
|