mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString)
This commit is contained in:
parent
ca876edc05
commit
5fe3a3e54f
16 changed files with 126 additions and 55 deletions
|
@ -23,7 +23,7 @@ use dom::element::ElementTypeId;
|
|||
use dom::htmlelement::{HTMLElement, HTMLElementTypeId};
|
||||
use dom::node::{Node, NodeHelpers, NodeTypeId, window_from_node, CloneChildrenFlag};
|
||||
use dom::virtualmethods::VirtualMethods;
|
||||
use dom::window::WindowHelpers;
|
||||
use dom::window::ScriptHelpers;
|
||||
|
||||
use encoding::all::UTF_8;
|
||||
use encoding::types::{Encoding, DecoderTrap};
|
||||
|
@ -209,7 +209,7 @@ impl<'a> HTMLScriptElementHelpers for JSRef<'a, HTMLScriptElement> {
|
|||
None => (text, base_url)
|
||||
};
|
||||
|
||||
window.evaluate_script_with_result(source.as_slice(), url.serialize().as_slice());
|
||||
window.evaluate_script_on_global_with_result(source.as_slice(), url.serialize().as_slice());
|
||||
|
||||
let event = Event::new(GlobalRef::Window(window),
|
||||
"load".into_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue