mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #11255 - s-baldrick:11158, r=ConnorGBrewster
11158 - add event handlers Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [X] These changes fix #11158 (github issue number if applicable). Either: - [x] There are tests for these changes OR - [ ] These changes do not require tests because ____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11255) <!-- Reviewable:end -->
This commit is contained in:
commit
5fc511a40e
21 changed files with 373 additions and 861 deletions
67
components/script/dom/beforeunloadevent.rs
Normal file
67
components/script/dom/beforeunloadevent.rs
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* 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::cell::DOMRefCell;
|
||||||
|
use dom::bindings::codegen::Bindings::BeforeUnloadEventBinding;
|
||||||
|
use dom::bindings::codegen::Bindings::BeforeUnloadEventBinding::BeforeUnloadEventMethods;
|
||||||
|
use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
||||||
|
use dom::bindings::global::GlobalRef;
|
||||||
|
use dom::bindings::inheritance::Castable;
|
||||||
|
use dom::bindings::js::Root;
|
||||||
|
use dom::bindings::reflector::reflect_dom_object;
|
||||||
|
use dom::event::{Event, EventBubbles, EventCancelable};
|
||||||
|
use string_cache::Atom;
|
||||||
|
use util::str::DOMString;
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#beforeunloadevent
|
||||||
|
#[dom_struct]
|
||||||
|
pub struct BeforeUnloadEvent {
|
||||||
|
event: Event,
|
||||||
|
return_value: DOMRefCell<DOMString>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl BeforeUnloadEvent {
|
||||||
|
fn new_inherited() -> BeforeUnloadEvent {
|
||||||
|
BeforeUnloadEvent {
|
||||||
|
event: Event::new_inherited(),
|
||||||
|
return_value: DOMRefCell::new(DOMString::new()),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn new_uninitialized(global: GlobalRef) -> Root<BeforeUnloadEvent> {
|
||||||
|
reflect_dom_object(box BeforeUnloadEvent::new_inherited(),
|
||||||
|
global,
|
||||||
|
BeforeUnloadEventBinding::Wrap)
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn new(global: GlobalRef,
|
||||||
|
type_: Atom,
|
||||||
|
bubbles: EventBubbles,
|
||||||
|
cancelable: EventCancelable) -> Root<BeforeUnloadEvent> {
|
||||||
|
let ev = BeforeUnloadEvent::new_uninitialized(global);
|
||||||
|
{
|
||||||
|
let event = ev.upcast::<Event>();
|
||||||
|
event.init_event(type_, bool::from(bubbles),
|
||||||
|
bool::from(cancelable));
|
||||||
|
}
|
||||||
|
ev
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl BeforeUnloadEventMethods for BeforeUnloadEvent {
|
||||||
|
// https://html.spec.whatwg.org/multipage/#dom-beforeunloadevent-returnvalue
|
||||||
|
fn ReturnValue(&self) -> DOMString {
|
||||||
|
self.return_value.borrow().clone()
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#dom-beforeunloadevent-returnvalue
|
||||||
|
fn SetReturnValue(&self, value: DOMString) {
|
||||||
|
*self.return_value.borrow_mut() = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://dom.spec.whatwg.org/#dom-event-istrusted
|
||||||
|
fn IsTrusted(&self) -> bool {
|
||||||
|
self.event.IsTrusted()
|
||||||
|
}
|
||||||
|
}
|
|
@ -2795,6 +2795,9 @@ impl DocumentMethods for Document {
|
||||||
// Step 5
|
// Step 5
|
||||||
elements
|
elements
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#documentandelementeventhandlers
|
||||||
|
document_and_element_event_handlers!();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_with_current_time_ms(marker: &Cell<u64>) {
|
fn update_with_current_time_ms(marker: &Cell<u64>) {
|
||||||
|
|
|
@ -2,11 +2,14 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
use dom::beforeunloadevent::BeforeUnloadEvent;
|
||||||
use dom::bindings::callback::{CallbackContainer, ExceptionHandling, CallbackFunction};
|
use dom::bindings::callback::{CallbackContainer, ExceptionHandling, CallbackFunction};
|
||||||
use dom::bindings::cell::DOMRefCell;
|
use dom::bindings::cell::DOMRefCell;
|
||||||
|
use dom::bindings::codegen::Bindings::BeforeUnloadEventBinding::BeforeUnloadEventMethods;
|
||||||
use dom::bindings::codegen::Bindings::ErrorEventBinding::ErrorEventMethods;
|
use dom::bindings::codegen::Bindings::ErrorEventBinding::ErrorEventMethods;
|
||||||
use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
||||||
use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
||||||
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::OnBeforeUnloadEventHandlerNonNull;
|
||||||
use dom::bindings::codegen::Bindings::EventHandlerBinding::OnErrorEventHandlerNonNull;
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::OnErrorEventHandlerNonNull;
|
||||||
use dom::bindings::codegen::Bindings::EventListenerBinding::EventListener;
|
use dom::bindings::codegen::Bindings::EventListenerBinding::EventListener;
|
||||||
use dom::bindings::codegen::Bindings::EventTargetBinding::EventTargetMethods;
|
use dom::bindings::codegen::Bindings::EventTargetBinding::EventTargetMethods;
|
||||||
|
@ -45,6 +48,7 @@ use util::str::DOMString;
|
||||||
pub enum CommonEventHandler {
|
pub enum CommonEventHandler {
|
||||||
EventHandler(Rc<EventHandlerNonNull>),
|
EventHandler(Rc<EventHandlerNonNull>),
|
||||||
ErrorEventHandler(Rc<OnErrorEventHandlerNonNull>),
|
ErrorEventHandler(Rc<OnErrorEventHandlerNonNull>),
|
||||||
|
BeforeUnloadEventHandler(Rc<OnBeforeUnloadEventHandlerNonNull>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CommonEventHandler {
|
impl CommonEventHandler {
|
||||||
|
@ -52,6 +56,7 @@ impl CommonEventHandler {
|
||||||
match *self {
|
match *self {
|
||||||
CommonEventHandler::EventHandler(ref handler) => &handler.parent,
|
CommonEventHandler::EventHandler(ref handler) => &handler.parent,
|
||||||
CommonEventHandler::ErrorEventHandler(ref handler) => &handler.parent,
|
CommonEventHandler::ErrorEventHandler(ref handler) => &handler.parent,
|
||||||
|
CommonEventHandler::BeforeUnloadEventHandler(ref handler) => &handler.parent,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -173,6 +178,27 @@ impl CompiledEventListener {
|
||||||
None, None, None, None, exception_handle);
|
None, None, None, None, exception_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CommonEventHandler::BeforeUnloadEventHandler(ref handler) => {
|
||||||
|
if let Some(event) = event.downcast::<BeforeUnloadEvent>() {
|
||||||
|
let rv = event.ReturnValue();
|
||||||
|
|
||||||
|
if let Ok(value) = handler.Call_(object,
|
||||||
|
event.upcast::<Event>(),
|
||||||
|
exception_handle) {
|
||||||
|
match value {
|
||||||
|
Some(value) => {
|
||||||
|
if rv.is_empty() {
|
||||||
|
event.SetReturnValue(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
None => {
|
||||||
|
event.upcast::<Event>().PreventDefault();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CommonEventHandler::EventHandler(ref handler) => {
|
CommonEventHandler::EventHandler(ref handler) => {
|
||||||
if let Ok(value) = handler.Call_(object, event, exception_handle) {
|
if let Ok(value) = handler.Call_(object, event, exception_handle) {
|
||||||
let global = object.global();
|
let global = object.global();
|
||||||
|
@ -183,7 +209,6 @@ impl CompiledEventListener {
|
||||||
//Step 4
|
//Step 4
|
||||||
let should_cancel = match event.type_() {
|
let should_cancel = match event.type_() {
|
||||||
atom!("mouseover") => value.is_boolean() && value.to_boolean() == true,
|
atom!("mouseover") => value.is_boolean() && value.to_boolean() == true,
|
||||||
atom!("beforeunload") => value.is_null(),
|
|
||||||
_ => value.is_boolean() && value.to_boolean() == false
|
_ => value.is_boolean() && value.to_boolean() == false
|
||||||
};
|
};
|
||||||
if should_cancel {
|
if should_cancel {
|
||||||
|
@ -411,10 +436,15 @@ impl EventTarget {
|
||||||
// Step 1.14
|
// Step 1.14
|
||||||
if is_error {
|
if is_error {
|
||||||
Some(CommonEventHandler::ErrorEventHandler(OnErrorEventHandlerNonNull::new(funobj)))
|
Some(CommonEventHandler::ErrorEventHandler(OnErrorEventHandlerNonNull::new(funobj)))
|
||||||
|
} else {
|
||||||
|
if ty == &atom!("beforeunload") {
|
||||||
|
Some(CommonEventHandler::BeforeUnloadEventHandler(
|
||||||
|
OnBeforeUnloadEventHandlerNonNull::new(funobj)))
|
||||||
} else {
|
} else {
|
||||||
Some(CommonEventHandler::EventHandler(EventHandlerNonNull::new(funobj)))
|
Some(CommonEventHandler::EventHandler(EventHandlerNonNull::new(funobj)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn set_event_handler_common<T: CallbackContainer>(
|
pub fn set_event_handler_common<T: CallbackContainer>(
|
||||||
&self, ty: &str, listener: Option<Rc<T>>)
|
&self, ty: &str, listener: Option<Rc<T>>)
|
||||||
|
@ -436,6 +466,16 @@ impl EventTarget {
|
||||||
self.set_inline_event_listener(Atom::from(ty), event_listener);
|
self.set_inline_event_listener(Atom::from(ty), event_listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn set_beforeunload_event_handler<T: CallbackContainer>(&self, ty: &str,
|
||||||
|
listener: Option<Rc<T>>) {
|
||||||
|
let event_listener = listener.map(|listener|
|
||||||
|
InlineEventListener::Compiled(
|
||||||
|
CommonEventHandler::BeforeUnloadEventHandler(
|
||||||
|
OnBeforeUnloadEventHandlerNonNull::new(listener.callback())))
|
||||||
|
);
|
||||||
|
self.set_inline_event_listener(Atom::from(ty), event_listener);
|
||||||
|
}
|
||||||
|
|
||||||
pub fn get_event_handler_common<T: CallbackContainer>(&self, ty: &str) -> Option<Rc<T>> {
|
pub fn get_event_handler_common<T: CallbackContainer>(&self, ty: &str) -> Option<Rc<T>> {
|
||||||
let listener = self.get_inline_event_listener(&Atom::from(ty));
|
let listener = self.get_inline_event_listener(&Atom::from(ty));
|
||||||
listener.map(|listener| CallbackContainer::new(listener.parent().callback()))
|
listener.map(|listener| CallbackContainer::new(listener.parent().callback()))
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
use cssparser::RGBA;
|
use cssparser::RGBA;
|
||||||
use dom::attr::{Attr, AttrValue};
|
use dom::attr::{Attr, AttrValue};
|
||||||
use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::{EventHandlerNonNull, OnBeforeUnloadEventHandlerNonNull};
|
||||||
use dom::bindings::codegen::Bindings::HTMLBodyElementBinding::{self, HTMLBodyElementMethods};
|
use dom::bindings::codegen::Bindings::HTMLBodyElementBinding::{self, HTMLBodyElementMethods};
|
||||||
use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
||||||
use dom::bindings::inheritance::Castable;
|
use dom::bindings::inheritance::Castable;
|
||||||
|
@ -16,7 +16,6 @@ use dom::htmlelement::HTMLElement;
|
||||||
use dom::node::{Node, document_from_node, window_from_node};
|
use dom::node::{Node, document_from_node, window_from_node};
|
||||||
use dom::virtualmethods::VirtualMethods;
|
use dom::virtualmethods::VirtualMethods;
|
||||||
use script_traits::ScriptMsg as ConstellationMsg;
|
use script_traits::ScriptMsg as ConstellationMsg;
|
||||||
use std::rc::Rc;
|
|
||||||
use string_cache::Atom;
|
use string_cache::Atom;
|
||||||
use time;
|
use time;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
@ -70,31 +69,14 @@ impl HTMLBodyElementMethods for HTMLBodyElement {
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-body-text
|
// https://html.spec.whatwg.org/multipage/#dom-body-text
|
||||||
make_legacy_color_setter!(SetText, "text");
|
make_legacy_color_setter!(SetText, "text");
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#the-body-element
|
|
||||||
fn GetOnunload(&self) -> Option<Rc<EventHandlerNonNull>> {
|
|
||||||
window_from_node(self).GetOnunload()
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#the-body-element
|
|
||||||
fn SetOnunload(&self, listener: Option<Rc<EventHandlerNonNull>>) {
|
|
||||||
window_from_node(self).SetOnunload(listener)
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#the-body-element
|
|
||||||
fn GetOnstorage(&self) -> Option<Rc<EventHandlerNonNull>> {
|
|
||||||
window_from_node(self).GetOnstorage()
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#the-body-element
|
|
||||||
fn SetOnstorage(&self, listener: Option<Rc<EventHandlerNonNull>>) {
|
|
||||||
window_from_node(self).SetOnstorage(listener)
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-body-background
|
// https://html.spec.whatwg.org/multipage/#dom-body-background
|
||||||
make_getter!(Background, "background");
|
make_getter!(Background, "background");
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-body-background
|
// https://html.spec.whatwg.org/multipage/#dom-body-background
|
||||||
make_url_setter!(SetBackground, "background");
|
make_url_setter!(SetBackground, "background");
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
||||||
|
window_event_handlers!(ForwardToWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait HTMLBodyElementLayoutHelpers {
|
pub trait HTMLBodyElementLayoutHelpers {
|
||||||
|
|
|
@ -137,6 +137,9 @@ impl HTMLElementMethods for HTMLElement {
|
||||||
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
||||||
global_event_handlers!(NoOnload);
|
global_event_handlers!(NoOnload);
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#documentandelementeventhandlers
|
||||||
|
document_and_element_event_handlers!();
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-dataset
|
// https://html.spec.whatwg.org/multipage/#dom-dataset
|
||||||
fn Dataset(&self) -> Root<DOMStringMap> {
|
fn Dataset(&self) -> Root<DOMStringMap> {
|
||||||
self.dataset.or_init(|| DOMStringMap::new(self))
|
self.dataset.or_init(|| DOMStringMap::new(self))
|
||||||
|
@ -196,6 +199,42 @@ impl HTMLElementMethods for HTMLElement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#handler-onfocus
|
||||||
|
fn GetOnfocus(&self) -> Option<Rc<EventHandlerNonNull>> {
|
||||||
|
if self.is_body_or_frameset() {
|
||||||
|
window_from_node(self).GetOnfocus()
|
||||||
|
} else {
|
||||||
|
self.upcast::<EventTarget>().get_event_handler_common("focus")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#handler-onfocus
|
||||||
|
fn SetOnfocus(&self, listener: Option<Rc<EventHandlerNonNull>>) {
|
||||||
|
if self.is_body_or_frameset() {
|
||||||
|
window_from_node(self).SetOnfocus(listener)
|
||||||
|
} else {
|
||||||
|
self.upcast::<EventTarget>().set_event_handler_common("focus", listener)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#handler-onscroll
|
||||||
|
fn GetOnscroll(&self) -> Option<Rc<EventHandlerNonNull>> {
|
||||||
|
if self.is_body_or_frameset() {
|
||||||
|
window_from_node(self).GetOnscroll()
|
||||||
|
} else {
|
||||||
|
self.upcast::<EventTarget>().get_event_handler_common("scroll")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#handler-onscroll
|
||||||
|
fn SetOnscroll(&self, listener: Option<Rc<EventHandlerNonNull>>) {
|
||||||
|
if self.is_body_or_frameset() {
|
||||||
|
window_from_node(self).SetOnscroll(listener)
|
||||||
|
} else {
|
||||||
|
self.upcast::<EventTarget>().set_event_handler_common("scroll", listener)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-click
|
// https://html.spec.whatwg.org/multipage/#dom-click
|
||||||
fn Click(&self) {
|
fn Click(&self) {
|
||||||
if !self.upcast::<Element>().disabled_state() {
|
if !self.upcast::<Element>().disabled_state() {
|
||||||
|
|
|
@ -2,11 +2,14 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::{EventHandlerNonNull, OnBeforeUnloadEventHandlerNonNull};
|
||||||
use dom::bindings::codegen::Bindings::HTMLFrameSetElementBinding;
|
use dom::bindings::codegen::Bindings::HTMLFrameSetElementBinding;
|
||||||
|
use dom::bindings::codegen::Bindings::HTMLFrameSetElementBinding::HTMLFrameSetElementMethods;
|
||||||
|
use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
||||||
use dom::bindings::js::Root;
|
use dom::bindings::js::Root;
|
||||||
use dom::document::Document;
|
use dom::document::Document;
|
||||||
use dom::htmlelement::HTMLElement;
|
use dom::htmlelement::HTMLElement;
|
||||||
use dom::node::Node;
|
use dom::node::{Node, window_from_node};
|
||||||
use string_cache::Atom;
|
use string_cache::Atom;
|
||||||
use util::str::DOMString;
|
use util::str::DOMString;
|
||||||
|
|
||||||
|
@ -33,3 +36,8 @@ impl HTMLFrameSetElement {
|
||||||
Node::reflect_node(box element, document, HTMLFrameSetElementBinding::Wrap)
|
Node::reflect_node(box element, document, HTMLFrameSetElementBinding::Wrap)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl HTMLFrameSetElementMethods for HTMLFrameSetElement {
|
||||||
|
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
||||||
|
window_event_handlers!(ForwardToWindow);
|
||||||
|
}
|
||||||
|
|
|
@ -321,6 +321,18 @@ macro_rules! define_event_handler(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
macro_rules! define_window_owned_event_handler(
|
||||||
|
($handler: ident, $event_type: ident, $getter: ident, $setter: ident) => (
|
||||||
|
fn $getter(&self) -> Option<::std::rc::Rc<$handler>> {
|
||||||
|
window_from_node(self).$getter()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn $setter(&self, listener: Option<::std::rc::Rc<$handler>>) {
|
||||||
|
window_from_node(self).$setter(listener)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
macro_rules! event_handler(
|
macro_rules! event_handler(
|
||||||
($event_type: ident, $getter: ident, $setter: ident) => (
|
($event_type: ident, $getter: ident, $setter: ident) => (
|
||||||
define_event_handler!(EventHandlerNonNull, $event_type, $getter, $setter,
|
define_event_handler!(EventHandlerNonNull, $event_type, $getter, $setter,
|
||||||
|
@ -335,42 +347,158 @@ macro_rules! error_event_handler(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
macro_rules! beforeunload_event_handler(
|
||||||
|
($event_type: ident, $getter: ident, $setter: ident) => (
|
||||||
|
define_event_handler!(OnBeforeUnloadEventHandlerNonNull, $event_type,
|
||||||
|
$getter, $setter, set_beforeunload_event_handler);
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
macro_rules! window_owned_event_handler(
|
||||||
|
($event_type: ident, $getter: ident, $setter: ident) => (
|
||||||
|
define_window_owned_event_handler!(EventHandlerNonNull,
|
||||||
|
$event_type, $getter, $setter);
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
macro_rules! window_owned_beforeunload_event_handler(
|
||||||
|
($event_type: ident, $getter: ident, $setter: ident) => (
|
||||||
|
define_window_owned_event_handler!(OnBeforeUnloadEventHandlerNonNull,
|
||||||
|
$event_type, $getter, $setter);
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
||||||
// see webidls/EventHandler.webidl
|
// see webidls/EventHandler.webidl
|
||||||
// As more methods get added, just update them here.
|
// As more methods get added, just update them here.
|
||||||
macro_rules! global_event_handlers(
|
macro_rules! global_event_handlers(
|
||||||
() => (
|
() => (
|
||||||
event_handler!(blur, GetOnblur, SetOnblur);
|
event_handler!(blur, GetOnblur, SetOnblur);
|
||||||
|
event_handler!(focus, GetOnfocus, SetOnfocus);
|
||||||
event_handler!(load, GetOnload, SetOnload);
|
event_handler!(load, GetOnload, SetOnload);
|
||||||
event_handler!(resize, GetOnresize, SetOnresize);
|
event_handler!(resize, GetOnresize, SetOnresize);
|
||||||
|
event_handler!(scroll, GetOnscroll, SetOnscroll);
|
||||||
global_event_handlers!(NoOnload);
|
global_event_handlers!(NoOnload);
|
||||||
|
|
||||||
);
|
);
|
||||||
(NoOnload) => (
|
(NoOnload) => (
|
||||||
event_handler!(abort, GetOnabort, SetOnabort);
|
event_handler!(abort, GetOnabort, SetOnabort);
|
||||||
|
event_handler!(cancel, GetOncancel, SetOncancel);
|
||||||
event_handler!(canplay, GetOncanplay, SetOncanplay);
|
event_handler!(canplay, GetOncanplay, SetOncanplay);
|
||||||
event_handler!(canplaythrough, GetOncanplaythrough, SetOncanplaythrough);
|
event_handler!(canplaythrough, GetOncanplaythrough, SetOncanplaythrough);
|
||||||
event_handler!(change, GetOnchange, SetOnchange);
|
event_handler!(change, GetOnchange, SetOnchange);
|
||||||
event_handler!(click, GetOnclick, SetOnclick);
|
event_handler!(click, GetOnclick, SetOnclick);
|
||||||
|
event_handler!(close, GetOnclose, SetOnclose);
|
||||||
|
event_handler!(contextmenu, GetOncontextmenu, SetOncontextmenu);
|
||||||
|
event_handler!(cuechange, GetOncuechange, SetOncuechange);
|
||||||
event_handler!(dblclick, GetOndblclick, SetOndblclick);
|
event_handler!(dblclick, GetOndblclick, SetOndblclick);
|
||||||
|
event_handler!(drag, GetOndrag, SetOndrag);
|
||||||
|
event_handler!(dragend, GetOndragend, SetOndragend);
|
||||||
|
event_handler!(dragenter, GetOndragenter, SetOndragenter);
|
||||||
|
event_handler!(dragexit, GetOndragexit, SetOndragexit);
|
||||||
|
event_handler!(dragleave, GetOndragleave, SetOndragleave);
|
||||||
|
event_handler!(dragover, GetOndragover, SetOndragover);
|
||||||
|
event_handler!(dragstart, GetOndragstart, SetOndragstart);
|
||||||
|
event_handler!(drop, GetOndrop, SetOndrop);
|
||||||
|
event_handler!(durationchange, GetOndurationchange, SetOndurationchange);
|
||||||
event_handler!(emptied, GetOnemptied, SetOnemptied);
|
event_handler!(emptied, GetOnemptied, SetOnemptied);
|
||||||
|
event_handler!(ended, GetOnended, SetOnended);
|
||||||
error_event_handler!(error, GetOnerror, SetOnerror);
|
error_event_handler!(error, GetOnerror, SetOnerror);
|
||||||
event_handler!(input, GetOninput, SetOninput);
|
event_handler!(input, GetOninput, SetOninput);
|
||||||
|
event_handler!(invalid, GetOninvalid, SetOninvalid);
|
||||||
event_handler!(keydown, GetOnkeydown, SetOnkeydown);
|
event_handler!(keydown, GetOnkeydown, SetOnkeydown);
|
||||||
event_handler!(keypress, GetOnkeypress, SetOnkeypress);
|
event_handler!(keypress, GetOnkeypress, SetOnkeypress);
|
||||||
event_handler!(keyup, GetOnkeyup, SetOnkeyup);
|
event_handler!(keyup, GetOnkeyup, SetOnkeyup);
|
||||||
event_handler!(loadeddata, GetOnloadeddata, SetOnloadeddata);
|
event_handler!(loadeddata, GetOnloadeddata, SetOnloadeddata);
|
||||||
event_handler!(loadedmetata, GetOnloadedmetadata, SetOnloadedmetadata);
|
event_handler!(loadedmetata, GetOnloadedmetadata, SetOnloadedmetadata);
|
||||||
|
event_handler!(loadstart, GetOnloadstart, SetOnloadstart);
|
||||||
|
event_handler!(mousedown, GetOnmousedown, SetOnmousedown);
|
||||||
|
event_handler!(mouseenter, GetOnmouseenter, SetOnmouseenter);
|
||||||
|
event_handler!(mouseleave, GetOnmouseleave, SetOnmouseleave);
|
||||||
|
event_handler!(mousemove, GetOnmousemove, SetOnmousemove);
|
||||||
|
event_handler!(mouseout, GetOnmouseout, SetOnmouseout);
|
||||||
event_handler!(mouseover, GetOnmouseover, SetOnmouseover);
|
event_handler!(mouseover, GetOnmouseover, SetOnmouseover);
|
||||||
|
event_handler!(mouseup, GetOnmouseup, SetOnmouseup);
|
||||||
|
event_handler!(wheel, GetOnwheel, SetOnwheel);
|
||||||
event_handler!(pause, GetOnpause, SetOnpause);
|
event_handler!(pause, GetOnpause, SetOnpause);
|
||||||
event_handler!(play, GetOnplay, SetOnplay);
|
event_handler!(play, GetOnplay, SetOnplay);
|
||||||
event_handler!(playing, GetOnplaying, SetOnplaying);
|
event_handler!(playing, GetOnplaying, SetOnplaying);
|
||||||
event_handler!(progress, GetOnprogress, SetOnprogress);
|
event_handler!(progress, GetOnprogress, SetOnprogress);
|
||||||
|
event_handler!(ratechange, GetOnratechange, SetOnratechange);
|
||||||
event_handler!(reset, GetOnreset, SetOnreset);
|
event_handler!(reset, GetOnreset, SetOnreset);
|
||||||
|
event_handler!(seeked, GetOnseeked, SetOnseeked);
|
||||||
|
event_handler!(seeking, GetOnseeking, SetOnseeking);
|
||||||
|
event_handler!(select, GetOnselect, SetOnselect);
|
||||||
|
event_handler!(show, GetOnshow, SetOnshow);
|
||||||
|
event_handler!(stalled, GetOnstalled, SetOnstalled);
|
||||||
event_handler!(submit, GetOnsubmit, SetOnsubmit);
|
event_handler!(submit, GetOnsubmit, SetOnsubmit);
|
||||||
event_handler!(suspend, GetOnsuspend, SetOnsuspend);
|
event_handler!(suspend, GetOnsuspend, SetOnsuspend);
|
||||||
event_handler!(timeupdate, GetOntimeupdate, SetOntimeupdate);
|
event_handler!(timeupdate, GetOntimeupdate, SetOntimeupdate);
|
||||||
event_handler!(toggle, GetOntoggle, SetOntoggle);
|
event_handler!(toggle, GetOntoggle, SetOntoggle);
|
||||||
|
event_handler!(volumechange, GetOnvolumechange, SetOnvolumechange);
|
||||||
event_handler!(waiting, GetOnwaiting, SetOnwaiting);
|
event_handler!(waiting, GetOnwaiting, SetOnwaiting);
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
||||||
|
// see webidls/EventHandler.webidl
|
||||||
|
// As more methods get added, just update them here.
|
||||||
|
macro_rules! window_event_handlers(
|
||||||
|
() => (
|
||||||
|
event_handler!(afterprint, GetOnafterprint, SetOnafterprint);
|
||||||
|
event_handler!(beforeprint, GetOnbeforeprint, SetOnbeforeprint);
|
||||||
|
beforeunload_event_handler!(beforeunload, GetOnbeforeunload,
|
||||||
|
SetOnbeforeunload);
|
||||||
|
event_handler!(hashchange, GetOnhashchange, SetOnhashchange);
|
||||||
|
event_handler!(languagechange, GetOnlanguagechange,
|
||||||
|
SetOnlanguagechange);
|
||||||
|
event_handler!(message, GetOnmessage, SetOnmessage);
|
||||||
|
event_handler!(offline, GetOnoffline, SetOnoffline);
|
||||||
|
event_handler!(online, GetOnonline, SetOnonline);
|
||||||
|
event_handler!(pagehide, GetOnpagehide, SetOnpagehide);
|
||||||
|
event_handler!(pageshow, GetOnpageshow, SetOnpageshow);
|
||||||
|
event_handler!(popstate, GetOnpopstate, SetOnpopstate);
|
||||||
|
event_handler!(rejectionhandled, GetOnrejectionhandled,
|
||||||
|
SetOnrejectionhandled);
|
||||||
|
event_handler!(storage, GetOnstorage, SetOnstorage);
|
||||||
|
event_handler!(unhandledrejection, GetOnunhandledrejection,
|
||||||
|
SetOnunhandledrejection);
|
||||||
|
event_handler!(unload, GetOnunload, SetOnunload);
|
||||||
|
);
|
||||||
|
(ForwardToWindow) => (
|
||||||
|
window_owned_event_handler!(afterprint, GetOnafterprint,
|
||||||
|
SetOnafterprint);
|
||||||
|
window_owned_event_handler!(beforeprint, GetOnbeforeprint,
|
||||||
|
SetOnbeforeprint);
|
||||||
|
window_owned_beforeunload_event_handler!(beforeunload,
|
||||||
|
GetOnbeforeunload,
|
||||||
|
SetOnbeforeunload);
|
||||||
|
window_owned_event_handler!(hashchange, GetOnhashchange,
|
||||||
|
SetOnhashchange);
|
||||||
|
window_owned_event_handler!(languagechange, GetOnlanguagechange,
|
||||||
|
SetOnlanguagechange);
|
||||||
|
window_owned_event_handler!(message, GetOnmessage, SetOnmessage);
|
||||||
|
window_owned_event_handler!(offline, GetOnoffline, SetOnoffline);
|
||||||
|
window_owned_event_handler!(online, GetOnonline, SetOnonline);
|
||||||
|
window_owned_event_handler!(pagehide, GetOnpagehide, SetOnpagehide);
|
||||||
|
window_owned_event_handler!(pageshow, GetOnpageshow, SetOnpageshow);
|
||||||
|
window_owned_event_handler!(popstate, GetOnpopstate, SetOnpopstate);
|
||||||
|
window_owned_event_handler!(rejectionhandled, GetOnrejectionhandled,
|
||||||
|
SetOnrejectionhandled);
|
||||||
|
window_owned_event_handler!(storage, GetOnstorage, SetOnstorage);
|
||||||
|
window_owned_event_handler!(unhandledrejection, GetOnunhandledrejection,
|
||||||
|
SetOnunhandledrejection);
|
||||||
|
window_owned_event_handler!(unload, GetOnunload, SetOnunload);
|
||||||
|
);
|
||||||
|
);
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#documentandelementeventhandlers
|
||||||
|
// see webidls/EventHandler.webidl
|
||||||
|
// As more methods get added, just update them here.
|
||||||
|
macro_rules! document_and_element_event_handlers(
|
||||||
|
() => (
|
||||||
|
event_handler!(cut, GetOncut, SetOncut);
|
||||||
|
event_handler!(copy, GetOncopy, SetOncopy);
|
||||||
|
event_handler!(paste, GetOnpaste, SetOnpaste);
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
|
@ -211,6 +211,7 @@ pub mod types {
|
||||||
|
|
||||||
pub mod activation;
|
pub mod activation;
|
||||||
pub mod attr;
|
pub mod attr;
|
||||||
|
pub mod beforeunloadevent;
|
||||||
mod create;
|
mod create;
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
#[deny(missing_docs, non_snake_case)]
|
#[deny(missing_docs, non_snake_case)]
|
||||||
|
|
11
components/script/dom/webidls/BeforeUnloadEvent.webidl
Normal file
11
components/script/dom/webidls/BeforeUnloadEvent.webidl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* 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/. */
|
||||||
|
/*
|
||||||
|
* For more information on this interface please see
|
||||||
|
* https://html.spec.whatwg.org/multipage/#beforeunloadevent
|
||||||
|
*/
|
||||||
|
|
||||||
|
interface BeforeUnloadEvent : Event {
|
||||||
|
attribute DOMString returnValue;
|
||||||
|
};
|
|
@ -138,6 +138,7 @@ partial /*sealed*/ interface Document {
|
||||||
// also has obsolete members
|
// also has obsolete members
|
||||||
};
|
};
|
||||||
Document implements GlobalEventHandlers;
|
Document implements GlobalEventHandlers;
|
||||||
|
Document implements DocumentAndElementEventHandlers;
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#Document-partial
|
// https://html.spec.whatwg.org/multipage/#Document-partial
|
||||||
partial interface Document {
|
partial interface Document {
|
||||||
|
|
|
@ -20,42 +20,99 @@ callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional
|
||||||
optional any error);
|
optional any error);
|
||||||
typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
|
typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
|
||||||
|
|
||||||
|
[TreatNonObjectAsNull]
|
||||||
|
callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
|
||||||
|
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
||||||
[NoInterfaceObject]
|
[NoInterfaceObject]
|
||||||
interface GlobalEventHandlers {
|
interface GlobalEventHandlers {
|
||||||
attribute EventHandler onabort;
|
attribute EventHandler onabort;
|
||||||
attribute EventHandler onblur;
|
attribute EventHandler onblur;
|
||||||
|
attribute EventHandler oncancel;
|
||||||
attribute EventHandler oncanplay;
|
attribute EventHandler oncanplay;
|
||||||
attribute EventHandler oncanplaythrough;
|
attribute EventHandler oncanplaythrough;
|
||||||
attribute EventHandler onchange;
|
attribute EventHandler onchange;
|
||||||
attribute EventHandler onclick;
|
attribute EventHandler onclick;
|
||||||
|
attribute EventHandler onclose;
|
||||||
|
attribute EventHandler oncontextmenu;
|
||||||
|
attribute EventHandler oncuechange;
|
||||||
attribute EventHandler ondblclick;
|
attribute EventHandler ondblclick;
|
||||||
|
attribute EventHandler ondrag;
|
||||||
|
attribute EventHandler ondragend;
|
||||||
|
attribute EventHandler ondragenter;
|
||||||
|
attribute EventHandler ondragexit;
|
||||||
|
attribute EventHandler ondragleave;
|
||||||
|
attribute EventHandler ondragover;
|
||||||
|
attribute EventHandler ondragstart;
|
||||||
|
attribute EventHandler ondrop;
|
||||||
|
attribute EventHandler ondurationchange;
|
||||||
attribute EventHandler onemptied;
|
attribute EventHandler onemptied;
|
||||||
|
attribute EventHandler onended;
|
||||||
attribute OnErrorEventHandler onerror;
|
attribute OnErrorEventHandler onerror;
|
||||||
|
attribute EventHandler onfocus;
|
||||||
attribute EventHandler oninput;
|
attribute EventHandler oninput;
|
||||||
|
attribute EventHandler oninvalid;
|
||||||
attribute EventHandler onkeydown;
|
attribute EventHandler onkeydown;
|
||||||
attribute EventHandler onkeypress;
|
attribute EventHandler onkeypress;
|
||||||
attribute EventHandler onkeyup;
|
attribute EventHandler onkeyup;
|
||||||
attribute EventHandler onload;
|
attribute EventHandler onload;
|
||||||
attribute EventHandler onloadeddata;
|
attribute EventHandler onloadeddata;
|
||||||
attribute EventHandler onloadedmetadata;
|
attribute EventHandler onloadedmetadata;
|
||||||
|
attribute EventHandler onloadstart;
|
||||||
|
attribute EventHandler onmousedown;
|
||||||
|
[LenientThis] attribute EventHandler onmouseenter;
|
||||||
|
[LenientThis] attribute EventHandler onmouseleave;
|
||||||
|
attribute EventHandler onmousemove;
|
||||||
|
attribute EventHandler onmouseout;
|
||||||
attribute EventHandler onmouseover;
|
attribute EventHandler onmouseover;
|
||||||
|
attribute EventHandler onmouseup;
|
||||||
|
attribute EventHandler onwheel;
|
||||||
attribute EventHandler onpause;
|
attribute EventHandler onpause;
|
||||||
attribute EventHandler onplay;
|
attribute EventHandler onplay;
|
||||||
attribute EventHandler onplaying;
|
attribute EventHandler onplaying;
|
||||||
attribute EventHandler onprogress;
|
attribute EventHandler onprogress;
|
||||||
|
attribute EventHandler onratechange;
|
||||||
attribute EventHandler onreset;
|
attribute EventHandler onreset;
|
||||||
attribute EventHandler onresize;
|
attribute EventHandler onresize;
|
||||||
|
attribute EventHandler onscroll;
|
||||||
|
attribute EventHandler onseeked;
|
||||||
|
attribute EventHandler onseeking;
|
||||||
|
attribute EventHandler onselect;
|
||||||
|
attribute EventHandler onshow;
|
||||||
|
attribute EventHandler onstalled;
|
||||||
attribute EventHandler onsubmit;
|
attribute EventHandler onsubmit;
|
||||||
attribute EventHandler onsuspend;
|
attribute EventHandler onsuspend;
|
||||||
attribute EventHandler ontimeupdate;
|
attribute EventHandler ontimeupdate;
|
||||||
attribute EventHandler ontoggle;
|
attribute EventHandler ontoggle;
|
||||||
|
attribute EventHandler onvolumechange;
|
||||||
attribute EventHandler onwaiting;
|
attribute EventHandler onwaiting;
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
||||||
[NoInterfaceObject]
|
[NoInterfaceObject]
|
||||||
interface WindowEventHandlers {
|
interface WindowEventHandlers {
|
||||||
attribute EventHandler onunload;
|
attribute EventHandler onafterprint;
|
||||||
|
attribute EventHandler onbeforeprint;
|
||||||
|
attribute OnBeforeUnloadEventHandler onbeforeunload;
|
||||||
|
attribute EventHandler onhashchange;
|
||||||
|
attribute EventHandler onlanguagechange;
|
||||||
|
attribute EventHandler onmessage;
|
||||||
|
attribute EventHandler onoffline;
|
||||||
|
attribute EventHandler ononline;
|
||||||
|
attribute EventHandler onpagehide;
|
||||||
|
attribute EventHandler onpageshow;
|
||||||
|
attribute EventHandler onpopstate;
|
||||||
|
attribute EventHandler onrejectionhandled;
|
||||||
attribute EventHandler onstorage;
|
attribute EventHandler onstorage;
|
||||||
|
attribute EventHandler onunhandledrejection;
|
||||||
|
attribute EventHandler onunload;
|
||||||
|
};
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/#documentandelementeventhandlers
|
||||||
|
[NoInterfaceObject]
|
||||||
|
interface DocumentAndElementEventHandlers {
|
||||||
|
attribute EventHandler oncopy;
|
||||||
|
attribute EventHandler oncut;
|
||||||
|
attribute EventHandler onpaste;
|
||||||
};
|
};
|
||||||
|
|
|
@ -54,5 +54,6 @@ partial interface HTMLElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
HTMLElement implements GlobalEventHandlers;
|
HTMLElement implements GlobalEventHandlers;
|
||||||
|
HTMLElement implements DocumentAndElementEventHandlers;
|
||||||
HTMLElement implements ElementContentEditable;
|
HTMLElement implements ElementContentEditable;
|
||||||
HTMLElement implements ElementCSSInlineStyle;
|
HTMLElement implements ElementCSSInlineStyle;
|
||||||
|
|
|
@ -7,4 +7,5 @@ interface HTMLFrameSetElement : HTMLElement {
|
||||||
// attribute DOMString cols;
|
// attribute DOMString cols;
|
||||||
// attribute DOMString rows;
|
// attribute DOMString rows;
|
||||||
};
|
};
|
||||||
//HTMLFrameSetElement implements WindowEventHandlers;
|
|
||||||
|
HTMLFrameSetElement implements WindowEventHandlers;
|
||||||
|
|
|
@ -7,7 +7,9 @@ use devtools_traits::{ScriptToDevtoolsControlMsg, TimelineMarker, TimelineMarker
|
||||||
use dom::bindings::callback::ExceptionHandling;
|
use dom::bindings::callback::ExceptionHandling;
|
||||||
use dom::bindings::cell::DOMRefCell;
|
use dom::bindings::cell::DOMRefCell;
|
||||||
use dom::bindings::codegen::Bindings::DocumentBinding::{DocumentMethods, DocumentReadyState};
|
use dom::bindings::codegen::Bindings::DocumentBinding::{DocumentMethods, DocumentReadyState};
|
||||||
use dom::bindings::codegen::Bindings::EventHandlerBinding::{EventHandlerNonNull, OnErrorEventHandlerNonNull};
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
||||||
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::OnBeforeUnloadEventHandlerNonNull;
|
||||||
|
use dom::bindings::codegen::Bindings::EventHandlerBinding::OnErrorEventHandlerNonNull;
|
||||||
use dom::bindings::codegen::Bindings::FunctionBinding::Function;
|
use dom::bindings::codegen::Bindings::FunctionBinding::Function;
|
||||||
use dom::bindings::codegen::Bindings::WindowBinding::{ScrollBehavior, ScrollToOptions};
|
use dom::bindings::codegen::Bindings::WindowBinding::{ScrollBehavior, ScrollToOptions};
|
||||||
use dom::bindings::codegen::Bindings::WindowBinding::{self, FrameRequestCallback, WindowMethods};
|
use dom::bindings::codegen::Bindings::WindowBinding::{self, FrameRequestCallback, WindowMethods};
|
||||||
|
@ -585,11 +587,8 @@ impl WindowMethods for Window {
|
||||||
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
||||||
global_event_handlers!();
|
global_event_handlers!();
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#handler-window-onunload
|
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
||||||
event_handler!(unload, GetOnunload, SetOnunload);
|
window_event_handlers!();
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#handler-window-onstorage
|
|
||||||
event_handler!(storage, GetOnstorage, SetOnstorage);
|
|
||||||
|
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/API/Window/screen
|
// https://developer.mozilla.org/en-US/docs/Web/API/Window/screen
|
||||||
fn Screen(&self) -> Root<Screen> {
|
fn Screen(&self) -> Root<Screen> {
|
||||||
|
|
|
@ -72,105 +72,12 @@
|
||||||
[Document interface: attribute onautocompleteerror]
|
[Document interface: attribute onautocompleteerror]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: attribute oncancel]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onclose]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute oncontextmenu]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute oncuechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondrag]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondragend]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondragenter]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondragexit]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondragleave]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondragover]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondragstart]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondrop]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute ondurationchange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onended]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onfocus]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute oninvalid]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onloadstart]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onmousedown]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onmouseenter]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onmouseleave]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onmousemove]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onmouseout]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onmouseup]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onmousewheel]
|
[Document interface: attribute onmousewheel]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: attribute onratechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onscroll]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onseeked]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onseeking]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onselect]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onshow]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onsort]
|
[Document interface: attribute onsort]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: attribute onstalled]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onvolumechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Stringification of iframe.contentDocument]
|
[Stringification of iframe.contentDocument]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1089,156 +996,12 @@
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onblur" with the proper type (96)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onblur" with the proper type (96)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oncancel" with the proper type (97)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oncanplay" with the proper type (98)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oncanplaythrough" with the proper type (99)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onclose" with the proper type (102)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oncontextmenu" with the proper type (103)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oncuechange" with the proper type (104)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondblclick" with the proper type (105)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondrag" with the proper type (106)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragend" with the proper type (107)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragenter" with the proper type (108)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragexit" with the proper type (109)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragleave" with the proper type (110)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragover" with the proper type (111)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragstart" with the proper type (112)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondrop" with the proper type (113)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondurationchange" with the proper type (114)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onemptied" with the proper type (115)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onended" with the proper type (116)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onerror" with the proper type (117)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onfocus" with the proper type (118)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oninvalid" with the proper type (120)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onloadeddata" with the proper type (125)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onloadedmetadata" with the proper type (126)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onloadstart" with the proper type (127)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousedown" with the proper type (128)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseenter" with the proper type (129)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseleave" with the proper type (130)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousemove" with the proper type (131)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseout" with the proper type (132)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseover" with the proper type (133)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseup" with the proper type (134)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousewheel" with the proper type (135)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousewheel" with the proper type (135)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onpause" with the proper type (136)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onplay" with the proper type (137)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onplaying" with the proper type (138)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onprogress" with the proper type (139)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onratechange" with the proper type (140)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onreset" with the proper type (141)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onresize" with the proper type (142)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onscroll" with the proper type (143)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onseeked" with the proper type (144)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onseeking" with the proper type (145)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onselect" with the proper type (146)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onshow" with the proper type (147)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onsort" with the proper type (148)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onsort" with the proper type (148)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onstalled" with the proper type (149)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onsuspend" with the proper type (151)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ontimeupdate" with the proper type (152)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ontoggle" with the proper type (153)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onvolumechange" with the proper type (154)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onwaiting" with the proper type (155)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onwaiting" with the proper type (155)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1560,105 +1323,12 @@
|
||||||
[HTMLElement interface: attribute onautocompleteerror]
|
[HTMLElement interface: attribute onautocompleteerror]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLElement interface: attribute oncancel]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onclose]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute oncontextmenu]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute oncuechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondrag]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondragend]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondragenter]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondragexit]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondragleave]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondragover]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondragstart]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondrop]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute ondurationchange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onended]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onfocus]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute oninvalid]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onloadstart]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onmousedown]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onmouseenter]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onmouseleave]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onmousemove]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onmouseout]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onmouseup]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onmousewheel]
|
[HTMLElement interface: attribute onmousewheel]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLElement interface: attribute onratechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onscroll]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onseeked]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onseeking]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onselect]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onshow]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onsort]
|
[HTMLElement interface: attribute onsort]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLElement interface: attribute onstalled]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onvolumechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "translate" with the proper type (2)]
|
[HTMLElement interface: document.createElement("noscript") must inherit property "translate" with the proper type (2)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1740,105 +1410,12 @@
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onautocompleteerror" with the proper type (34)]
|
[HTMLElement interface: document.createElement("noscript") must inherit property "onautocompleteerror" with the proper type (34)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "oncancel" with the proper type (36)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onclose" with the proper type (41)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "oncontextmenu" with the proper type (42)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "oncuechange" with the proper type (43)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondrag" with the proper type (45)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondragend" with the proper type (46)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondragenter" with the proper type (47)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondragexit" with the proper type (48)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondragleave" with the proper type (49)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondragover" with the proper type (50)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondragstart" with the proper type (51)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondrop" with the proper type (52)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "ondurationchange" with the proper type (53)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onended" with the proper type (55)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onfocus" with the proper type (57)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type (59)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onloadstart" with the proper type (66)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onmousedown" with the proper type (67)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onmouseenter" with the proper type (68)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onmouseleave" with the proper type (69)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onmousemove" with the proper type (70)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onmouseout" with the proper type (71)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onmouseup" with the proper type (73)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onmousewheel" with the proper type (74)]
|
[HTMLElement interface: document.createElement("noscript") must inherit property "onmousewheel" with the proper type (74)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onratechange" with the proper type (79)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onscroll" with the proper type (82)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onseeked" with the proper type (83)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onseeking" with the proper type (84)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onselect" with the proper type (85)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onshow" with the proper type (86)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onsort" with the proper type (87)]
|
[HTMLElement interface: document.createElement("noscript") must inherit property "onsort" with the proper type (87)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onstalled" with the proper type (88)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onvolumechange" with the proper type (93)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: document.createElement("noscript") must inherit property "query" with the proper type (34)]
|
[Element interface: document.createElement("noscript") must inherit property "query" with the proper type (34)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1920,39 +1497,6 @@
|
||||||
[HTMLBodyElement interface: attribute aLink]
|
[HTMLBodyElement interface: attribute aLink]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onafterprint]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onbeforeprint]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onbeforeunload]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onhashchange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onlanguagechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onmessage]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onoffline]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute ononline]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onpagehide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onpageshow]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: attribute onpopstate]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "link" with the proper type (1)]
|
[HTMLBodyElement interface: document.createElement("body") must inherit property "link" with the proper type (1)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1962,39 +1506,6 @@
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "aLink" with the proper type (3)]
|
[HTMLBodyElement interface: document.createElement("body") must inherit property "aLink" with the proper type (3)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onafterprint" with the proper type (6)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onbeforeprint" with the proper type (7)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onbeforeunload" with the proper type (8)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onhashchange" with the proper type (9)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onlanguagechange" with the proper type (10)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onmessage" with the proper type (11)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onoffline" with the proper type (12)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "ononline" with the proper type (13)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onpagehide" with the proper type (14)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onpageshow" with the proper type (15)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLBodyElement interface: document.createElement("body") must inherit property "onpopstate" with the proper type (16)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLHeadingElement interface: attribute align]
|
[HTMLHeadingElement interface: attribute align]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -6207,21 +5718,6 @@
|
||||||
[Location interface: calling replace(DOMString) on window.location with too few arguments must throw TypeError]
|
[Location interface: calling replace(DOMString) on window.location with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[BeforeUnloadEvent interface: existence and properties of interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[BeforeUnloadEvent interface object length]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[BeforeUnloadEvent interface: existence and properties of interface prototype object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[BeforeUnloadEvent interface: existence and properties of interface prototype object's "constructor" property]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[BeforeUnloadEvent interface: attribute returnValue]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[ApplicationCache interface: existence and properties of interface object]
|
[ApplicationCache interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -6873,90 +6369,12 @@
|
||||||
[HTMLFrameSetElement interface: attribute rows]
|
[HTMLFrameSetElement interface: attribute rows]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onafterprint]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onbeforeprint]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onbeforeunload]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onhashchange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onlanguagechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onmessage]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onoffline]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute ononline]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onpagehide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onpageshow]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onpopstate]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onstorage]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: attribute onunload]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "cols" with the proper type (0)]
|
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "cols" with the proper type (0)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "rows" with the proper type (1)]
|
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "rows" with the proper type (1)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onafterprint" with the proper type (2)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onbeforeprint" with the proper type (3)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onbeforeunload" with the proper type (4)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onhashchange" with the proper type (5)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onlanguagechange" with the proper type (6)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onmessage" with the proper type (7)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onoffline" with the proper type (8)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "ononline" with the proper type (9)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onpagehide" with the proper type (10)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onpageshow" with the proper type (11)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onpopstate" with the proper type (12)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onstorage" with the proper type (13)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onunload" with the proper type (14)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLFrameElement interface: attribute name]
|
[HTMLFrameElement interface: attribute name]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -7674,105 +7092,12 @@
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onautocompleteerror" with the proper type (96)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onautocompleteerror" with the proper type (96)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oncancel" with the proper type (98)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onclose" with the proper type (103)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oncontextmenu" with the proper type (104)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oncuechange" with the proper type (105)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondrag" with the proper type (107)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragend" with the proper type (108)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragenter" with the proper type (109)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragexit" with the proper type (110)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragleave" with the proper type (111)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragover" with the proper type (112)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondragstart" with the proper type (113)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondrop" with the proper type (114)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "ondurationchange" with the proper type (115)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onended" with the proper type (117)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onfocus" with the proper type (119)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oninvalid" with the proper type (121)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onloadstart" with the proper type (128)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousedown" with the proper type (129)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseenter" with the proper type (130)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseleave" with the proper type (131)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousemove" with the proper type (132)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseout" with the proper type (133)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmouseup" with the proper type (135)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousewheel" with the proper type (136)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousewheel" with the proper type (136)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onratechange" with the proper type (141)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onscroll" with the proper type (144)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onseeked" with the proper type (145)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onseeking" with the proper type (146)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onselect" with the proper type (147)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onshow" with the proper type (148)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onsort" with the proper type (149)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onsort" with the proper type (149)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onstalled" with the proper type (150)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onvolumechange" with the proper type (155)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLAnchorElement interface: attribute origin]
|
[HTMLAnchorElement interface: attribute origin]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -7953,9 +7278,6 @@
|
||||||
[History interface object name]
|
[History interface object name]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[BeforeUnloadEvent interface object name]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[ApplicationCache interface object name]
|
[ApplicationCache interface object name]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -8172,105 +7494,12 @@
|
||||||
[Document interface: new Document() must inherit property "onautocompleteerror" with the proper type (96)]
|
[Document interface: new Document() must inherit property "onautocompleteerror" with the proper type (96)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "oncancel" with the proper type (98)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onclose" with the proper type (103)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "oncontextmenu" with the proper type (104)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "oncuechange" with the proper type (105)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondrag" with the proper type (107)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondragend" with the proper type (108)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondragenter" with the proper type (109)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondragexit" with the proper type (110)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondragleave" with the proper type (111)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondragover" with the proper type (112)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondragstart" with the proper type (113)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondrop" with the proper type (114)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "ondurationchange" with the proper type (115)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onended" with the proper type (117)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onfocus" with the proper type (119)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "oninvalid" with the proper type (121)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onloadstart" with the proper type (128)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onmousedown" with the proper type (129)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onmouseenter" with the proper type (130)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onmouseleave" with the proper type (131)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onmousemove" with the proper type (132)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onmouseout" with the proper type (133)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onmouseup" with the proper type (135)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onmousewheel" with the proper type (136)]
|
[Document interface: new Document() must inherit property "onmousewheel" with the proper type (136)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onratechange" with the proper type (141)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onscroll" with the proper type (144)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onseeked" with the proper type (145)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onseeking" with the proper type (146)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onselect" with the proper type (147)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onshow" with the proper type (148)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onsort" with the proper type (149)]
|
[Document interface: new Document() must inherit property "onsort" with the proper type (149)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onstalled" with the proper type (150)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "onvolumechange" with the proper type (155)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLTableCellElement interface: attribute scope]
|
[HTMLTableCellElement interface: attribute scope]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
[load-events-networkState.html]
|
[load-events-networkState.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
[NETWORK_IDLE]
|
|
||||||
expected: TIMEOUT
|
|
||||||
|
|
||||||
[NETWORK_LOADING]
|
|
||||||
expected: TIMEOUT
|
|
||||||
|
|
||||||
[NETWORK_NO_SOURCE]
|
[NETWORK_NO_SOURCE]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
[video error event]
|
[video error event]
|
||||||
expected: TIMEOUT
|
expected: FAIL
|
||||||
|
|
||||||
[source error event]
|
[source error event]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[resource-selection-invoke-set-src-not-in-document.html]
|
|
||||||
type: testharness
|
|
||||||
[invoking load by setting src on video not in a document]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[resource-selection-invoke-set-src.html]
|
|
||||||
type: testharness
|
|
||||||
[invoking load by setting src]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -2,43 +2,3 @@
|
||||||
type: testharness
|
type: testharness
|
||||||
[error]
|
[error]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[focus]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[scroll]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[afterprint]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[beforeprint]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[beforeunload]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[hashchange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[languagechange]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[message]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[offline]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[online]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[pagehide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[pageshow]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[popstate]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ var ecmaGlobals = [
|
||||||
// IMPORTANT: Do not change the list below without review from a DOM peer!
|
// IMPORTANT: Do not change the list below without review from a DOM peer!
|
||||||
var interfaceNamesInGlobalScope = [
|
var interfaceNamesInGlobalScope = [
|
||||||
"Attr",
|
"Attr",
|
||||||
|
"BeforeUnloadEvent",
|
||||||
"Blob",
|
"Blob",
|
||||||
"CanvasGradient",
|
"CanvasGradient",
|
||||||
"CanvasRenderingContext2D",
|
"CanvasRenderingContext2D",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue