Bug 837282 - Page title "[object Object]" when reloading after network error r=daleharvey
authorFabrice Desré <fabrice@mozilla.com>
Thu, 07 Feb 2013 13:43:57 -0800
changeset 131096 5e3ea3993b6813b17215123617a6d753d9853ae9
parent 131095 8ededceee28fcdb091ed6338df04d800100b2f8e
child 131097 171c0078dc87b8692c299c0d19fd29b5e0829ab3
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdaleharvey
bugs837282
milestone21.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 837282 - Page title "[object Object]" when reloading after network error r=daleharvey
dom/browser-element/BrowserElementParent.jsm
--- a/dom/browser-element/BrowserElementParent.jsm
+++ b/dom/browser-element/BrowserElementParent.jsm
@@ -316,17 +316,17 @@ BrowserElementParent.prototype = {
    * |data|.
    */
   _fireEventFromMsg: function(data) {
     let detail = data.json;
     let name = detail.msg_name;
 
     // For events that send a "_payload_" property, we just want to transmit
     // this in the event.
-    if (detail._payload_) {
+    if ("_payload_" in detail) {
       detail = detail._payload_;
     }
 
     debug('fireEventFromMsg: ' + name + ', ' + JSON.stringify(detail));
     let evt = this._createEvent(name, detail,
                                 /* cancelable = */ false);
     this._frameElement.dispatchEvent(evt);
   },