mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
queue event instead of immediately fire
created checks to see if parser is in use before event dispatch changed tests to expect crash and added async style test
This commit is contained in:
parent
462409ada5
commit
79d896d474
9 changed files with 72 additions and 3 deletions
|
@ -1885,6 +1885,13 @@ impl Document {
|
|||
self.current_parser.get()
|
||||
}
|
||||
|
||||
pub fn can_invoke_script(&self) -> bool {
|
||||
match self.get_current_parser() {
|
||||
Some(parser) => parser.parser_is_not_active(),
|
||||
None => true,
|
||||
}
|
||||
}
|
||||
|
||||
/// Iterate over all iframes in the document.
|
||||
pub fn iter_iframes(&self) -> impl Iterator<Item=DomRoot<HTMLIFrameElement>> {
|
||||
self.upcast::<Node>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue