Bug 1137593 - Switch MozChromeNotification to use dir instead of bidi. r=gerard-majax
authorZibi Braniecki <gandalf@mozilla.com>
Fri, 15 May 2015 12:54:50 -0700
changeset 244125 b9b5979a0eab1452885621ba88ee0a3cdfbf38d6
parent 244124 7bf082f37038d851ff4ddf0c9afebf3857ab4bd4
child 244126 70743cf5fa4fb0c1da848be5fda5c301b7151f3c
push id59841
push userkwierso@gmail.com
push dateSat, 16 May 2015 00:32:11 +0000
treeherdermozilla-inbound@c96edd321122 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgerard-majax
bugs1137593
milestone41.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 1137593 - Switch MozChromeNotification to use dir instead of bidi. r=gerard-majax
b2g/components/AlertsHelper.jsm
--- a/b2g/components/AlertsHelper.jsm
+++ b/b2g/components/AlertsHelper.jsm
@@ -227,26 +227,26 @@ let AlertsHelper = {
     try {
       let data = Cu.cloneInto(dataObj, {});
     } catch(e) { dataObj = null; }
 
     return dataObj;
   },
 
   showNotification: function(imageURL, title, text, textClickable, cookie,
-                             uid, bidi, lang, dataObj, manifestURL, timestamp,
+                             uid, dir, lang, dataObj, manifestURL, timestamp,
                              behavior) {
     function send(appName, appIcon) {
       SystemAppProxy._sendCustomEvent(kMozChromeNotificationEvent, {
         type: kDesktopNotification,
         id: uid,
         icon: imageURL,
         title: title,
         text: text,
-        bidi: bidi,
+        dir: dir,
         lang: lang,
         appName: appName,
         appIcon: appIcon,
         manifestURL: manifestURL,
         timestamp: timestamp,
         data: dataObj,
         mozbehavior: behavior
       });
@@ -271,17 +271,17 @@ let AlertsHelper = {
     let currentListener = this._listeners[data.name];
     if (currentListener && currentListener.observer) {
       currentListener.observer.observe(null, kTopicAlertFinished, currentListener.cookie);
     }
 
     let dataObj = this.deserializeStructuredClone(data.dataStr);
     this.registerListener(data.name, data.cookie, data.alertListener);
     this.showNotification(data.imageURL, data.title, data.text,
-                          data.textClickable, data.cookie, data.name, data.bidi,
+                          data.textClickable, data.cookie, data.name, data.dir,
                           data.lang, dataObj, null, data.inPrivateBrowsing);
   },
 
   showAppNotification: function(aMessage) {
     let data = aMessage.data;
     let details = data.details;
     let dataObject = this.deserializeStructuredClone(details.data);
     let listener = {