mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +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(
|
const frames = try domcss.querySelectorAll(
|
||||||
page.call_arena,
|
page.call_arena,
|
||||||
parser.documentHTMLToNode(self.document),
|
parser.documentHTMLToNode(self.document),
|
||||||
"frame,iframe",
|
"iframe",
|
||||||
);
|
);
|
||||||
|
|
||||||
if (index >= frames.nodes.items.len) {
|
if (index >= frames.nodes.items.len) {
|
||||||
@@ -159,7 +159,7 @@ pub const Window = struct {
|
|||||||
const frames = try domcss.querySelectorAll(
|
const frames = try domcss.querySelectorAll(
|
||||||
page.call_arena,
|
page.call_arena,
|
||||||
parser.documentHTMLToNode(self.document),
|
parser.documentHTMLToNode(self.document),
|
||||||
"frame,iframe",
|
"iframe",
|
||||||
);
|
);
|
||||||
|
|
||||||
return frames.get_length();
|
return frames.get_length();
|
||||||
|
|||||||
Reference in New Issue
Block a user