Bug 1026727 - Part 1: The attributes of MozMobileNetworkInfo could be null, so the parameters of constructor should be nullable. r=hsinyi, r=smaug, a=2.0+
authorEdgar Chen <echen@mozilla.com>
Wed, 18 Jun 2014 15:54:01 +0800
changeset 207266 d4f56f62327c6b8bed5ba3ba61ceede71d80624a
parent 207265 f25a36294e5ccbfdb2f5f4f21d76e03121d3dd91
child 207267 7a4bbb56e146f341b19841853b4019c6f9d19ae2
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi, smaug, 2
bugs1026727
milestone32.0a2
Bug 1026727 - Part 1: The attributes of MozMobileNetworkInfo could be null, so the parameters of constructor should be nullable. r=hsinyi, r=smaug, a=2.0+
dom/webidl/MozMobileNetworkInfo.webidl
--- a/dom/webidl/MozMobileNetworkInfo.webidl
+++ b/dom/webidl/MozMobileNetworkInfo.webidl
@@ -1,17 +1,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 enum MobileNetworkState {"available", "connected", "forbidden"};
 
 [Pref="dom.mobileconnection.enabled",
- ChromeConstructor(DOMString shortName, DOMString longName, DOMString mcc,
-                   DOMString mnc, DOMString state)]
+ ChromeConstructor(DOMString? shortName, DOMString? longName, DOMString? mcc,
+                   DOMString? mnc, DOMString? state)]
 interface MozMobileNetworkInfo
 {
   /**
    * Short name of the network operator.
    */
   readonly attribute DOMString? shortName;
 
   /**