mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 01:25:53 -04:00
Update src/browser/Frame.zig
Co-authored-by: Pierre Tachoire <pierre@lightpanda.io>
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user