Firefox OS 1.2 for developers

Firefox OS 1.2 は現在プレスリリース段階です。その Gecko コンポーネントは Firefox 26 ベース(Firefox 19 と Firefox 26 の間のGeckoの全ての追加を含みます; 最新の 開発者向けFirefox 26 リリースノートを見て下さい。) このページは Firefox OS 1.2 で新たに実装された開発機能を詳解します。.



General Gecko:


General Gecko:


General Gecko:

EcmaScript 6 (Harmony) implementation continues!

  • New mathematical methods have been implemented on Math: Math.fround() (バグ 900125).
  • The method Array.of() is now implemented on Array (バグ 866849).
  • The methods Number.parseInt() and Number.parseFloat() have been implemented (バグ 886949)
  • The methods Map.prototype.forEach() and Set.prototype.forEach() are now implemented (バグ 866847)
  • New mathematical methods have been implemented on Math: Math.log10(), Math.log2(), Math.log1p(), Math.expm1(), Math.cosh(), Math.sinh(), Math.tanh(), Math.acosh(), Math.asinh(), Math.atanh(), Math.trunc(), Math.sign() and Math.cbrt() (バグ 717379).
  • Support for binary and octal integer literals has been added: 0b10101010, 0B1010, 0o777, 0O237 are now valid (バグ 894026).
  • The machine epsilon constant, that is the smallest representible number that added to 1 will not be 1, is now available as Number.EPSILON (バグ 885798).
  • Arrow functions are no longer automatically in strict mode unless explicitly requested with "use strict" (バグ 852762)).
  • The String.prototype.repeat JS method has been implemented (バグ 815431).
  • The Object.defineProperty method can now be used to redefine the length property of an Array object.
  • The option to disable JavaScript, including the options to allow moving windows/replace context menu, have been removed. You may still disable JavaScript by double clicking the "javascript.enabled" option in about:config.
  • Asm.js optimizations are enabled, making it possible to compile C/C++ applications to a subset of Javascript for better performance.
  • ES6 Arrow Function syntax has been implemented (バグ 846406).
  • The new function has been added (バグ 839979).
  • E4X, an ancient JavaScript extension, has been removed. Implemented only in Gecko, it never got significant traction (バグ 788293).
  • parseInt no longer treats strings with leading "0" as octal (バグ 786135).
  • Support for the Weakmap.prototype.clear() method, recently added to the Harmony (EcmaScript 6) draft proposal has been added (バグ 814562).
  • Support for the Math.imul() method, a C-style 32-bit multiplication function. Though proposed for Harmony (EcmaScript 6) it has not yet accepted and still is non-standard (バグ 808148).
  • Web apps using draggable text with Kinetic 3.x are working, even when using the Cairo canvas backend (バグ 835064).
  • The for each…in statement has been deprecated and should not be used. Consider using the new for…of statement (バグ 804834).
  • Support for the Map.prototype.keys, Map.prototype.values, and Map.prototype.entries has been added (バグ 817368).
  • Map and Set objects have changed from having a size() method to a size property (バグ 807001).
  • Map and Set objects also have a clear() method now. (バグ 805003).

通信関連の追加 (大半は API関連)

  • Fuzzy matcher API for phone numbers (バグ 883923)
  • CDMA
    • Registration info (バグ 882984)
      • (バグ 882984)
      • multiple new CDMA specific attributes in MozMobileCellInfo
      • dom/network/interfaces/nsIDOMMobileConnection.idl
    • Emergency callback mode support (バグ 887690)
      • new method exitEmergencyCbMode and new event emergencycbmodechange in MozMobileConnection
      • dom/network/interfaces/nsIDOMMozEmergencyCbModeEvent.idl
    • OTASP (バグ 882983)
      • new event otastatuschange in MozMobileConnection
      • dom/network/interfaces/nsIDOMMozOtaStatusEvent.idl
    • MDN/MIN (バグ 869778)
      • new interface MozGsmIccInfo & MozCdmaIccInfo
      • new attribute iccType in MozIccInfo
      • dom/icc/interfaces/nsIDOMIccInfo.idl
    • Preferred voice mode (バグ 869769)
      • new methods setVoicePrivacyMode and getVoicePrivacyMode in MozMobileConnection
      • dom/network/interfaces/nsIDOMMobileConnection.idl
    • Roaming preference (バグ 869768)
      • new methods setRoamingPreference and getRoamingPreference in MozMobileConnection
      • dom/network/interfaces/nsIDOMMobileConnection.idl
    • Call Waiting (バグ 822210)
      • new attribute secondNumber in TelephonyCall
      • dom/webidl/TelephonyCall.webidl
  • Support Change Call Barring Password (バグ 905479)
    • new method changeCallBarringPassword in MozMobileConnection
    • dom/network/interfaces/nsIDOMMobileConnection.idl
  • Move ICC functions out from MobileConnection (バグ 875721, バグ 874744, バグ 860585, バグ 859220)
    • MozIccInfo
      • navigator.mozIccManager.iccInfo
      • new interface
      • dom/icc/interfaces/nsIDOMIccInfo.idl
    • MozIccManager
      • navigator.mozIccManager
      • new attributes, methods, and events
      • dom/icc/interfaces/nsIDOMIccManager.idl
    • MozMobileConnection
      • navigator.mozMobileConnection
      • numerous attributes, methods and events removed
      • dom/network/interfaces/nsIDOMMobileConnection.idl
    • nsIDOMMozMobileICCInfo
      • navigator.mozMobileConnection.iccInfo
      • interface removed
  • ICC card lock improvements
    • Rename ICCCardLockErrorEvent to IccCardLockErrorEvent
      • dom/webidl/IccCardLockErrorEvent.webidl
    • Retry count (バグ 886239, バグ 875710)
      • attribute retryCount removed from MozMobileConnection
      • new method getCardLockRetryCount in MozIccManager
      • dom/network/interfaces/nsIDOMMobileConnection.idl
      • dom/icc/interfaces/nsIDOMIccManager.idl
  • Import/export SIM Contacts (バグ 847741, バグ 847820)
    • new methods readContacts, updateContact in MozIccManager
    • dom/icc/interfaces/nsIDOMIccManager.idl
  • ICC Secure Elements (バグ 840780)
    • new methods iccOpenChannel, iccExchangeAPDU, iccCloseChannel in MozIccManager
    • dom/icc/interfaces/nsIDOMIccManager.idl
  • STK improvements
    • 'duration' for Display Text, Setup Call commands (バグ 831630)
      • new attribute duration in both MozStkTextMessage and MozStkSetUpCall
      • dom/icc/interfaces/SimToolKit.idl
    • support "Language Selection Event" (バグ 831627)
      • new dictionary MozStkLanguageSelectionEvent
      • dom/icc/interfaces/SimToolKit.idl
    • support "Idle Screen Available Event" (バグ 831628)
      • new dictionary MozStkGeneralEvent
      • dom/icc/interfaces/SimToolKit.idl
  • MobileMessage
    • Turn getSegmentInfoForText into an async call (バグ 903403)
      • dom/mobilemessage/interfaces/nsIDOMMobileMessageManager.idl
    • Remove navigator.mozSms (バグ 891235)
  • Telephony
    • support "Conference Call" (certified only) (バグ 772765)
      • navigator.mozTelephony.conferenceGroup
      • new interface


Firefox OS-specific:

  • Device Storage API: When getting a cursor callback from navigator.getDeviceStorage("sdcard").enumerate, this.done was undefined in Firefox <1.2 (see バグ 902565). This is now fixed. The referenced bug discusses possible compatibility checks/workarounds for this issue.
  • The RTCPeerConnection Interface from WebRTC is implemented, but currently disabled by default in B2G, as it is not yet functional on Firefox OS devices (see バグ 942343.)
  • Web notifications are supported in Firefox 1.2, therefore the Notification object should be used in preference to the old deprecated mozNotification object (see バグ 899574 .)
  • mozInputMethod has been added to allow for people to write 3rd party keyboards. See the test application in gaia/test_apps for a reference implementation.
  • The Media Recording API has been implemented (see バグ 803414, バグ 889720)
  • KeyboardEvent.repeat now supported (バグ 600117)
  • 3rd party keyboards now supported (バグ 816869)
New WebGL 1 extensions supported in Firefox OS 1.2:
Note: availability of these extensions depends on device capabilities; not all extensions will be available on all devices.

General Gecko:


General Gecko:


General Gecko:

  • The dir attribute for controlling directionality of formulas on e.g. <math> or <mrow> elements is now equivalent to using the direction CSS property.
  • The equal sign ("=") is now stretchable.
  • The "updiagonalarrow" value for the notation attribute on <menclose> elements has been added.
  • Negative widths for the <mspace> element has been implemented (バグ 717546).
  • The <semantics> element now determines the visible child as described in the MathML3 specification.
  • To help MathML authors debugging "invalid-markup" errors in their documents, MathML parsing errors (such as having too many / too few child elements) and warnings about deprecated attributes or wrong attribute values are now reported to the Error Console.
  • The scriptminsize attribute now accepts unitless values and percent values. They are interpreted as multiples of the default value ("8pt").
  • Unitless values are now also allowed for the mathsize and fontsize attributes; they multiply the default value.


General Gecko:

  • We continue to update our CSP implementation to match the CSP 1.0 spec, which reached Candidate Recommendation:
    • Support for the spec-compliant Content-Security-Policy HTTP header (in addition to the experimental X-Content-Security-Policy) has been added (バグ 783049). Note: the patch for this new header landed in Firefox 21, it is disabled on builds (バグ 842657).


General Gecko:


General Gecko:

  • Mixed content blocking. Firefox will no longer load non-secure (http) resources on secure (https) pages (バグ 834836).
  • The standard syntax of CSP 1.0 policies are now implemented and enforced by default.


General Gecko:

Support for XForms has been removed in Firefox 19.




Share this article: