From 16fcbf66eecf79f55d286415fc45bff7ee0ab25f Mon Sep 17 00:00:00 2001 From: sjorsdonkers <72333389+sjorsdonkers@users.noreply.github.com> Date: Wed, 16 Jul 2025 10:56:54 +0200 Subject: [PATCH] http_proxy_before ?? comment --- src/cdp/cdp.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cdp/cdp.zig b/src/cdp/cdp.zig index 2472481a..9ddcd22a 100644 --- a/src/cdp/cdp.zig +++ b/src/cdp/cdp.zig @@ -322,6 +322,10 @@ pub fn BrowserContext(comptime CDP_T: type) type { inspector: Inspector, isolated_world: ?IsolatedWorld, + + // Used to restore the proxy after the CDP session ends. If CDP never over-wrote it, it won't restore it (the first null). + // If the CDP is restoring it, but the original value was null, that's the 2nd null. + // If you only have 1 null it would be ambiguous, does null mean it shouldn't be restored, or should it be restored to null? http_proxy_before: ??std.Uri = null, const Self = @This();