mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make Event's isTrusted attribute unforgeable
This commit is contained in:
parent
e493a0655e
commit
f244a7075c
13 changed files with 63 additions and 8 deletions
|
@ -2,6 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
||||
use dom::bindings::codegen::Bindings::WebGLContextEventBinding;
|
||||
use dom::bindings::codegen::Bindings::WebGLContextEventBinding::WebGLContextEventInit;
|
||||
use dom::bindings::codegen::Bindings::WebGLContextEventBinding::WebGLContextEventMethods;
|
||||
|
@ -25,6 +26,11 @@ impl WebGLContextEventMethods for WebGLContextEvent {
|
|||
fn StatusMessage(&self) -> DOMString {
|
||||
self.status_message.clone()
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-event-istrusted
|
||||
fn IsTrusted(&self) -> bool {
|
||||
self.event.IsTrusted()
|
||||
}
|
||||
}
|
||||
|
||||
impl WebGLContextEvent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue