window: frame is obsolete, ignore them from frames list

This commit is contained in:
Pierre Tachoire
2025-08-07 10:04:24 +02:00
parent 1b7abf9972
commit 28397bf9d0

View File

@@ -140,7 +140,7 @@ pub const Window = struct {
const frames = try domcss.querySelectorAll(
page.call_arena,
parser.documentHTMLToNode(self.document),
"frame,iframe",
"iframe",
);
if (index >= frames.nodes.items.len) {
@@ -159,7 +159,7 @@ pub const Window = struct {
const frames = try domcss.querySelectorAll(
page.call_arena,
parser.documentHTMLToNode(self.document),
"frame,iframe",
"iframe",
);
return frames.get_length();