mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Check that an iframe is in a document with a browsing context before processing src.
This commit is contained in:
parent
dafc57e8ab
commit
1803a585e5
2 changed files with 24 additions and 4 deletions
|
@ -771,6 +771,10 @@ impl Node {
|
|||
self.owner_doc().is_html_document()
|
||||
}
|
||||
|
||||
pub fn is_in_doc_with_browsing_context(&self) -> bool {
|
||||
self.is_in_doc() && self.owner_doc().browsing_context().is_some()
|
||||
}
|
||||
|
||||
pub fn children(&self) -> NodeSiblingIterator {
|
||||
NodeSiblingIterator {
|
||||
current: self.GetFirstChild(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue