mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement Navigator.appVersion(#5409)
This commit is contained in:
parent
1bd8e18d92
commit
c0e691b08d
7 changed files with 14 additions and 16 deletions
|
@ -54,5 +54,9 @@ impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
|
|||
fn UserAgent(self) -> DOMString {
|
||||
navigatorinfo::UserAgent()
|
||||
}
|
||||
|
||||
fn AppVersion(self) -> DOMString {
|
||||
navigatorinfo::AppVersion()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,3 +33,7 @@ pub fn UserAgent() -> DOMString {
|
|||
None => "".to_owned(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn AppVersion() -> DOMString {
|
||||
"4.0".to_owned()
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ Navigator implements NavigatorID;
|
|||
interface NavigatorID {
|
||||
readonly attribute DOMString appCodeName; // constant "Mozilla"
|
||||
readonly attribute DOMString appName;
|
||||
//readonly attribute DOMString appVersion;
|
||||
readonly attribute DOMString appVersion;
|
||||
readonly attribute DOMString platform;
|
||||
readonly attribute DOMString product; // constant "Gecko"
|
||||
boolean taintEnabled(); // constant false
|
||||
|
|
|
@ -55,5 +55,9 @@ impl<'a> WorkerNavigatorMethods for JSRef<'a, WorkerNavigator> {
|
|||
fn UserAgent(self) -> DOMString {
|
||||
navigatorinfo::UserAgent()
|
||||
}
|
||||
|
||||
fn AppVersion(self) -> DOMString {
|
||||
navigatorinfo::AppVersion()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue