call AttributeChangedCallback on upgrade

This commit is contained in:
Karl Seguin
2025-11-28 13:04:42 +08:00
parent 94bcb30f11
commit 833a33678c
8 changed files with 76 additions and 17 deletions

View File

@@ -29,6 +29,7 @@ const Request = @import("Request.zig");
const Response = @import("Response.zig");
const Allocator = std.mem.Allocator;
const IS_DEBUG = @import("builtin").mode == .Debug;
const Fetch = @This();
@@ -54,6 +55,10 @@ pub fn init(input: Input, page: *Page) !js.Promise {
const http_client = page._session.browser.http_client;
const headers = try http_client.newHeaders();
if (comptime IS_DEBUG) {
log.debug(.http, "fetch", .{ .url = request._url });
}
try http_client.request(.{
.ctx = fetch,
.url = request._url,