Auto merge of #8963 - Aesthetikx:unforgeable-istrusted, r=jdm

Make Event's isTrusted attribute unforgeable

Three failure expectations were able to be removed from `tests/wpt/web-platform-tests/dom/interfaces.html`. This is my first commit to servo and my first time with rust, hopefully I didn't overlook anything.

Fixes #8956.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8963)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-12-14 17:43:15 +05:30
commit 6032f8225b
13 changed files with 63 additions and 8 deletions

View file

@ -1,17 +1,9 @@
[interfaces.html]
type: testharness
[Event interface: document.createEvent("Event") must have own property "isTrusted"]
expected: FAIL
[Event interface: new Event("foo") must have own property "isTrusted"]
expected: FAIL
[CustomEvent interface: existence and properties of interface object]
expected: FAIL
[Event interface: new CustomEvent("foo") must have own property "isTrusted"]
expected: FAIL
[MutationObserver interface: existence and properties of interface object]
expected: FAIL