Bug 1224892 - Caching `oscpu' and `buildID' like other attributes related to User Agent. r=smaug
authorAidin Gharibnavaz <aidin@aidinhut.com>
Tue, 15 Dec 2015 21:05:05 +0330
changeset 284179 135731b4852af7146d9086f4afd5a1c2d4a165c5
parent 284178 e3d820af15b52a74b615f084de97c3345031801d
child 284180 2cacb0f32a4ceed9d63fedc517e15ef2d3025511
push id29998
push userphilringnalda@gmail.com
push dateSun, 14 Feb 2016 03:19:08 +0000
treeherdermozilla-central@e355cacefc88 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1224892
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1224892 - Caching `oscpu' and `buildID' like other attributes related to User Agent. r=smaug
dom/webidl/Navigator.webidl
--- a/dom/webidl/Navigator.webidl
+++ b/dom/webidl/Navigator.webidl
@@ -185,27 +185,27 @@ interface NavigatorMobileId {
     [NewObject, Func="Navigator::HasMobileIdSupport"]
     Promise<any> getMobileIdAssertion(optional MobileIdOptions options);
 };
 Navigator implements NavigatorMobileId;
 #endif // MOZ_B2G
 
 // nsIDOMNavigator
 partial interface Navigator {
-  [Throws]
+  [Throws, Constant, Cached]
   readonly attribute DOMString oscpu;
   // WebKit/Blink support this; Trident/Presto do not.
   readonly attribute DOMString vendor;
   // WebKit/Blink supports this (hardcoded ""); Trident/Presto do not.
   readonly attribute DOMString vendorSub;
   // WebKit/Blink supports this (hardcoded "20030107"); Trident/Presto don't
   readonly attribute DOMString productSub;
   // WebKit/Blink/Trident/Presto support this.
   readonly attribute boolean cookieEnabled;
-  [Throws]
+  [Throws, Constant, Cached]
   readonly attribute DOMString buildID;
   [Throws, CheckAnyPermissions="power", UnsafeInPrerendering]
   readonly attribute MozPowerManager mozPower;
 
   // WebKit/Blink/Trident/Presto support this.
   [Throws]
   boolean javaEnabled();