mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Explicitly expose everything everywhere.
This commit is contained in:
parent
7e7b97e869
commit
ed743bb50c
201 changed files with 243 additions and 140 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#window
|
||||
[PrimaryGlobal]
|
||||
[PrimaryGlobal, Exposed=(Window,Worker)]
|
||||
/*sealed*/ interface Window : EventTarget {
|
||||
// the current browsing context
|
||||
[Unforgeable] readonly attribute WindowProxy window;
|
||||
|
@ -60,11 +60,11 @@
|
|||
Window implements GlobalEventHandlers;
|
||||
Window implements WindowEventHandlers;
|
||||
|
||||
[NoInterfaceObject]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface WindowProxy {};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#timers
|
||||
[NoInterfaceObject/*, Exposed=Window,Worker*/]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface WindowTimers {
|
||||
long setTimeout(Function handler, optional long timeout = 0, any... arguments);
|
||||
long setTimeout(DOMString handler, optional long timeout = 0, any... arguments);
|
||||
|
@ -76,7 +76,7 @@ interface WindowTimers {
|
|||
Window implements WindowTimers;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#atob
|
||||
[NoInterfaceObject/*, Exposed=Window,Worker*/]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface WindowBase64 {
|
||||
[Throws]
|
||||
DOMString btoa(DOMString btoa);
|
||||
|
@ -175,14 +175,14 @@ partial interface Window {
|
|||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-sessionstorage
|
||||
[NoInterfaceObject]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface WindowSessionStorage {
|
||||
readonly attribute Storage sessionStorage;
|
||||
};
|
||||
Window implements WindowSessionStorage;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-localstorage
|
||||
[NoInterfaceObject]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface WindowLocalStorage {
|
||||
readonly attribute Storage localStorage;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue