mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Auto merge of #15187 - montrivo:webidl-exposed, r=jdm
Partial - Expose interfaces only where they should be. #12415 <!-- Please describe your changes on the following line: --> Reviewed webidl interfaces: Location.webidl MediaError.webidl MimeTypeArray.webidl MimeType.webidl PageTransitionEvent.webidl PluginArray.webidl Plugin.webidl PopStateEvent.webidl --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #12415 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15187) <!-- Reviewable:end -->
This commit is contained in:
commit
efff0a9418
6 changed files with 5 additions and 10 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#mediaerror
|
// https://html.spec.whatwg.org/multipage/#mediaerror
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=Window]
|
||||||
interface MediaError {
|
interface MediaError {
|
||||||
const unsigned short MEDIA_ERR_ABORTED = 1;
|
const unsigned short MEDIA_ERR_ABORTED = 1;
|
||||||
const unsigned short MEDIA_ERR_NETWORK = 2;
|
const unsigned short MEDIA_ERR_NETWORK = 2;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#mimetype
|
// https://html.spec.whatwg.org/multipage/#mimetype
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=Window]
|
||||||
interface MimeType {
|
interface MimeType {
|
||||||
readonly attribute DOMString type;
|
readonly attribute DOMString type;
|
||||||
readonly attribute DOMString description;
|
readonly attribute DOMString description;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#mimetypearray
|
// https://html.spec.whatwg.org/multipage/#mimetypearray
|
||||||
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
|
[LegacyUnenumerableNamedProperties, Exposed=Window]
|
||||||
interface MimeTypeArray {
|
interface MimeTypeArray {
|
||||||
readonly attribute unsigned long length;
|
readonly attribute unsigned long length;
|
||||||
getter MimeType? item(unsigned long index);
|
getter MimeType? item(unsigned long index);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-plugin
|
// https://html.spec.whatwg.org/multipage/#dom-plugin
|
||||||
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
|
[LegacyUnenumerableNamedProperties, Exposed=Window]
|
||||||
interface Plugin {
|
interface Plugin {
|
||||||
readonly attribute DOMString name;
|
readonly attribute DOMString name;
|
||||||
readonly attribute DOMString description;
|
readonly attribute DOMString description;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#pluginarray
|
// https://html.spec.whatwg.org/multipage/#pluginarray
|
||||||
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
|
[LegacyUnenumerableNamedProperties, Exposed=Window]
|
||||||
interface PluginArray {
|
interface PluginArray {
|
||||||
void refresh(optional boolean reload = false);
|
void refresh(optional boolean reload = false);
|
||||||
readonly attribute unsigned long length;
|
readonly attribute unsigned long length;
|
||||||
|
|
|
@ -32,14 +32,9 @@ test_interfaces([
|
||||||
"Headers",
|
"Headers",
|
||||||
"History",
|
"History",
|
||||||
"ImageData",
|
"ImageData",
|
||||||
"MediaError",
|
|
||||||
"MessageEvent",
|
"MessageEvent",
|
||||||
"MimeType",
|
|
||||||
"MimeTypeArray",
|
|
||||||
"Performance",
|
"Performance",
|
||||||
"PerformanceTiming",
|
"PerformanceTiming",
|
||||||
"Plugin",
|
|
||||||
"PluginArray",
|
|
||||||
"ProgressEvent",
|
"ProgressEvent",
|
||||||
"Request",
|
"Request",
|
||||||
"Response",
|
"Response",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue