mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Expose interfaces only where they should be. #12415 - Partial
This commit is contained in:
parent
cd0a6b98f4
commit
d5c6c24d2a
7 changed files with 8 additions and 10 deletions
|
@ -25,7 +25,7 @@ callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
|
|||
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#globaleventhandlers
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
[NoInterfaceObject, Exposed=Window]
|
||||
interface GlobalEventHandlers {
|
||||
attribute EventHandler onabort;
|
||||
attribute EventHandler onblur;
|
||||
|
@ -95,7 +95,7 @@ partial interface GlobalEventHandlers {
|
|||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#windoweventhandlers
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
[NoInterfaceObject, Exposed=Window]
|
||||
interface WindowEventHandlers {
|
||||
attribute EventHandler onafterprint;
|
||||
attribute EventHandler onbeforeprint;
|
||||
|
@ -115,7 +115,7 @@ interface WindowEventHandlers {
|
|||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#documentandelementeventhandlers
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
[NoInterfaceObject, Exposed=Window]
|
||||
interface DocumentAndElementEventHandlers {
|
||||
attribute EventHandler oncopy;
|
||||
attribute EventHandler oncut;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue