ladybird/Libraries/LibHTTP/CMakeLists.txt
Luke Wilde 854d9c7da4 LibWeb+LibHTTP: Consult HSTS preload list before dynamic-store IPC
The preload list is static, immutable data compiled into LibHTTP.
ResourceLoader consults it in-process at the fetch layer before
falling back to the dynamic, per-profile store in the browser
process, so a preloaded host is upgraded without a synchronous IPC.
HSTSStore stays the dynamic store only; the preload list cannot be
unset by a max-age=0 response because it is consulted first, before
the store is ever queried.
2026-05-29 22:23:33 +02:00

22 lines
577 B
CMake

set(SOURCES
Cache/CacheEntry.cpp
Cache/CacheIndex.cpp
Cache/DiskCache.cpp
Cache/DiskCacheSettings.cpp
Cache/MemoryCache.cpp
Cache/Utilities.cpp
Cookie/Cookie.cpp
Cookie/ParsedCookie.cpp
HSTS/ParsedHSTSPolicy.cpp
Header.cpp
HeaderList.cpp
HTTP.cpp
HttpRequest.cpp
Method.cpp
)
include(hsts_preload)
list(APPEND SOURCES ${HSTS_PRELOAD_SOURCES})
ladybird_lib(LibHTTP http)
target_link_libraries(LibHTTP PRIVATE LibCompress LibCore LibCrypto LibDatabase LibFileSystem LibIPC LibRegex LibTextCodec LibTLS LibUnicode LibURL)