Explicitly expose everything everywhere.

This commit is contained in:
Ms2ger 2016-07-08 15:04:35 +02:00
parent 7e7b97e869
commit ed743bb50c
201 changed files with 243 additions and 140 deletions

View file

@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#navigator
[Exposed=(Window,Worker)]
interface Navigator {
// objects implementing this interface also implement the interfaces given below
};
@ -15,7 +16,7 @@ Navigator implements NavigatorLanguage;
Navigator implements NavigatorPlugins;
// https://html.spec.whatwg.org/multipage/#navigatorid
[NoInterfaceObject/*, Exposed=Window,Worker*/]
[NoInterfaceObject, Exposed=(Window,Worker)]
interface NavigatorID {
readonly attribute DOMString appCodeName; // constant "Mozilla"
readonly attribute DOMString appName;
@ -26,7 +27,7 @@ interface NavigatorID {
readonly attribute DOMString userAgent;
};
[NoInterfaceObject]
[NoInterfaceObject, Exposed=(Window,Worker)]
interface NavigatorBluetooth {
readonly attribute Bluetooth bluetooth;
};
@ -37,7 +38,7 @@ partial interface Navigator {
};
// https://html.spec.whatwg.org/multipage/#navigatorlanguage
[NoInterfaceObject/*, Exposed=Window,Worker*/]
[NoInterfaceObject, Exposed=(Window,Worker)]
interface NavigatorLanguage {
readonly attribute DOMString language;
// https://github.com/servo/servo/issues/10073
@ -45,7 +46,7 @@ interface NavigatorLanguage {
};
// https://html.spec.whatwg.org/multipage/#navigatorplugins
[NoInterfaceObject]
[NoInterfaceObject, Exposed=(Window,Worker)]
interface NavigatorPlugins {
[SameObject] readonly attribute PluginArray plugins;
[SameObject] readonly attribute MimeTypeArray mimeTypes;