Name Description Size Coverage
backend.cpp Manages viaduct Request/Result pointers This class ensures that we properly manage the `ViaductRequest` and `ViaductResult` pointers, avoiding use-after-free bugs. It ensures that either `viaduct_necko_result_complete` or `viaduct_necko_result_complete_error` will be called exactly once and the pointers won't be used after that. This class is designed to be created outside of NS_DispatchToMainThread and moved into the closure. This way, even if the closure never runs, the destructor will still be called and we'll complete with an error. 24189 -
backend.h 2232 -
Cargo.toml 233 -
moz.build 482 -
src -
tests -