Expose interfaces only where they should be. #12415

This commit is contained in:
tim 2017-01-24 23:31:23 +01:00 committed by montrivo
parent 39b4f19ebb
commit 5f31c178b6
6 changed files with 5 additions and 10 deletions

View file

@ -4,7 +4,7 @@
// https://html.spec.whatwg.org/multipage/#mediaerror
[Exposed=(Window,Worker)]
[Exposed=Window]
interface MediaError {
const unsigned short MEDIA_ERR_ABORTED = 1;
const unsigned short MEDIA_ERR_NETWORK = 2;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#mimetype
[Exposed=(Window,Worker)]
[Exposed=Window]
interface MimeType {
readonly attribute DOMString type;
readonly attribute DOMString description;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#mimetypearray
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
[LegacyUnenumerableNamedProperties, Exposed=Window]
interface MimeTypeArray {
readonly attribute unsigned long length;
getter MimeType? item(unsigned long index);

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#dom-plugin
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
[LegacyUnenumerableNamedProperties, Exposed=Window]
interface Plugin {
readonly attribute DOMString name;
readonly attribute DOMString description;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#pluginarray
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
[LegacyUnenumerableNamedProperties, Exposed=Window]
interface PluginArray {
void refresh(optional boolean reload = false);
readonly attribute unsigned long length;

View file

@ -32,14 +32,9 @@ test_interfaces([
"Headers",
"History",
"ImageData",
"MediaError",
"MessageEvent",
"MimeType",
"MimeTypeArray",
"Performance",
"PerformanceTiming",
"Plugin",
"PluginArray",
"ProgressEvent",
"Request",
"Response",