Make Event's isTrusted attribute unforgeable

This commit is contained in:
John DeSilva 2015-12-13 12:20:18 -05:00
parent e493a0655e
commit f244a7075c
13 changed files with 63 additions and 8 deletions

View file

@ -114,4 +114,9 @@ impl<'a> TouchEventMethods for &'a TouchEvent {
fn ChangedTouches(&self) -> Root<TouchList> {
self.changed_touches.get()
}
/// https://dom.spec.whatwg.org/#dom-event-istrusted
fn IsTrusted(&self) -> bool {
self.uievent.IsTrusted()
}
}