Update src/browser/Frame.zig

Co-authored-by: Pierre Tachoire <pierre@lightpanda.io>
This commit is contained in:
Karl Seguin
2026-05-22 08:39:06 +08:00
committed by GitHub
parent ca0eaa5f1e
commit 0f11736d3a

View File

@@ -1393,7 +1393,7 @@ pub fn iframeAddedCallback(self: *Frame, iframe: *IFrame) !void {
.referer = parent_url,
.initiator_url = parent_url,
}) catch |err| {
// extra defensive..maybe navigate added a new fame, and the index it
// extra defensive..maybe navigate added a new frame, and the index it
// was added at was removed. Or maybe this frame was removed somehow
// (which I don't think is possible)
if (std.mem.indexOfScalar(*Frame, self.child_frames.items, new_frame)) |idx| {