Bug 1224892 - Caching `oscpu' and `buildID' like other attributes related to User Agent. r=smaug
☠☠ backed out by 6db8fd96938e ☠ ☠
authorAidin Gharibnavaz <aidin@aidinhut.com>
Tue, 15 Dec 2015 21:05:05 +0330
changeset 316130 9b7df7c7adc159676b893127d14ab9bc256a6a85
parent 316129 257051f3218b135671c7a21708d6af85b36515f7
child 316131 24c79f3927989882518f2c218f9d8e3a43d4466f
push id8516
push userjlund@mozilla.com
push dateFri, 18 Dec 2015 00:52:34 +0000
reviewerssmaug
bugs1224892
milestone46.0a1
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();