mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
window: frame is obsolete, ignore them from frames list
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user