mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +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,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue