-
Notifications
You must be signed in to change notification settings - Fork 442
Update Navigator type #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sandersn
merged 17 commits into
microsoft:master
from
jeffryang24:fix-mimetypearray-interface
Jun 20, 2019
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
121241a
chore: add system state and capabilities whatwg spec
jeffryang24 8fecd20
feat(idl): add generated widl and commentmap file
jeffryang24 cddf826
chore(baselines): add generated type
jeffryang24 479c74c
chore: update baseline
jeffryang24 9189f78
refactor(baseline): add removed ms-interfaces
jeffryang24 a3b0d1e
refactor(idlSources): sort idlsource
jeffryang24 569dd99
refactor(addedTypes): add missing interfaces and MS-specific interfaces
jeffryang24 5c8e19e
refactor(overridingTypes): override navigator interface
jeffryang24 21c1c0e
refactor(overridingTypes): add missing ms-specific properties in Navi…
jeffryang24 e61b35f
chore: update baselines
jeffryang24 25ece2b
refactor(addedTypes): remove redundant interfaces
jeffryang24 cfcded8
chore: update baselines #2
jeffryang24 d0bf8e6
refactor(addedTypes): remove MSLaunchUriCallback interface
jeffryang24 87875b3
refactor(knownTypes): add MSLaunchUriCallback inside Window field
jeffryang24 09e00f1
chore: update baselines #3 (with node 12)
jeffryang24 ca26d7a
refactor(overridingTypes): restore NavigatorBeacon, activeVRDisplays,…
jeffryang24 6384071
chore: update baselines #4
jeffryang24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
inputfiles/idl/HTML - System state and capabilities.commentmap.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"navigator": "Returns the string \"Mozilla\".", | ||
"plugin-name": "Returns the plugin's name.", | ||
"plugin-description": "Returns the plugin's description.", | ||
"plugin-filename": "Returns the plugin library's filename, if applicable on the current platform.", | ||
"plugin-length": "Returns the number of MIME types, represented by MimeType objects, supported by the plugin.", | ||
"plugin-item": "Returns the specified MimeType object.", | ||
"mimetype-type": "Returns the MIME type.", | ||
"mimetype-description": "Returns the MIME type's description.", | ||
"mimetype-suffixes": "Returns the MIME type's typical file extensions, in a comma-separated list.", | ||
"mimetype-enabledplugin": "Returns the Plugin object that implements this MIME type." | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[Exposed=Window] | ||
interface Navigator { | ||
// objects implementing this interface also implement the interfaces given below | ||
}; | ||
Navigator includes NavigatorID; | ||
Navigator includes NavigatorLanguage; | ||
Navigator includes NavigatorOnLine; | ||
Navigator includes NavigatorContentUtils; | ||
Navigator includes NavigatorCookies; | ||
Navigator includes NavigatorPlugins; | ||
Navigator includes NavigatorConcurrentHardware; | ||
|
||
interface mixin NavigatorID { | ||
readonly attribute DOMString appCodeName; // constant "Mozilla" | ||
readonly attribute DOMString appName; // constant "Netscape" | ||
readonly attribute DOMString appVersion; | ||
readonly attribute DOMString platform; | ||
readonly attribute DOMString product; // constant "Gecko" | ||
[Exposed=Window] readonly attribute DOMString productSub; | ||
readonly attribute DOMString userAgent; | ||
[Exposed=Window] readonly attribute DOMString vendor; | ||
[Exposed=Window] readonly attribute DOMString vendorSub; // constant "" | ||
}; | ||
|
||
partial interface mixin NavigatorID { | ||
[Exposed=Window] boolean taintEnabled(); // constant false | ||
[Exposed=Window] readonly attribute DOMString oscpu; | ||
}; | ||
|
||
interface mixin NavigatorLanguage { | ||
readonly attribute DOMString language; | ||
readonly attribute FrozenArray<DOMString> languages; | ||
}; | ||
|
||
interface mixin NavigatorContentUtils { | ||
void registerProtocolHandler(DOMString scheme, USVString url, DOMString title); | ||
void unregisterProtocolHandler(DOMString scheme, USVString url); | ||
}; | ||
|
||
interface mixin NavigatorCookies { | ||
readonly attribute boolean cookieEnabled; | ||
}; | ||
|
||
interface mixin NavigatorPlugins { | ||
[SameObject] readonly attribute PluginArray plugins; | ||
[SameObject] readonly attribute MimeTypeArray mimeTypes; | ||
boolean javaEnabled(); | ||
}; | ||
|
||
[Exposed=Window, | ||
LegacyUnenumerableNamedProperties] | ||
interface PluginArray { | ||
void refresh(optional boolean reload = false); | ||
readonly attribute unsigned long length; | ||
getter Plugin? item(unsigned long index); | ||
getter Plugin? namedItem(DOMString name); | ||
}; | ||
|
||
[Exposed=Window, | ||
LegacyUnenumerableNamedProperties] | ||
interface MimeTypeArray { | ||
readonly attribute unsigned long length; | ||
getter MimeType? item(unsigned long index); | ||
getter MimeType? namedItem(DOMString name); | ||
}; | ||
|
||
[Exposed=Window, | ||
LegacyUnenumerableNamedProperties] | ||
interface Plugin { | ||
readonly attribute DOMString name; | ||
readonly attribute DOMString description; | ||
readonly attribute DOMString filename; | ||
readonly attribute unsigned long length; | ||
getter MimeType? item(unsigned long index); | ||
getter MimeType? namedItem(DOMString name); | ||
}; | ||
|
||
[Exposed=Window] | ||
interface MimeType { | ||
readonly attribute DOMString type; | ||
readonly attribute DOMString description; | ||
readonly attribute DOMString suffixes; // comma-separated | ||
readonly attribute Plugin enabledPlugin; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should restore
activeVRDisplays
/getVRDisplays()
andNavigatorBeacon
. Looks good otherwise.