Bug 1026014 - Port Bug 1021969 r=Neil
authorPhilip Chee <philip.chee@gmail.com>
Tue, 17 Jun 2014 01:07:37 +0800
changeset 16344 445db1ef062daa66a3fc45bb27ca42588308e1a7
parent 16343 e59d2f3f43222197f03f6cd330cebd3a5ac30727
child 16345 852267c1a3571cf0f95c13e634bc3720da8deee1
push id10213
push userphilip.chee@gmail.com
push dateTue, 17 Jun 2014 13:40:33 +0000
treeherdercomm-central@445db1ef062d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil
bugs1026014, 1021969
Bug 1026014 - Port Bug 1021969 r=Neil
suite/common/nsContextMenu.js
--- a/suite/common/nsContextMenu.js
+++ b/suite/common/nsContextMenu.js
@@ -377,18 +377,17 @@ nsContextMenu.prototype = {
                   onMedia && !this.target.paused && !this.target.ended);
     this.showItem("context-media-mute", onMedia && !this.target.muted);
     this.showItem("context-media-unmute", onMedia && this.target.muted);
     this.showItem("context-media-playbackrate", onMedia);
     this.showItem("context-media-showcontrols", onMedia && !this.target.controls);
     this.showItem("context-media-hidecontrols", onMedia && this.target.controls);
     this.showItem("context-video-fullscreen", this.onVideo);
 
-    var statsShowing = this.onVideo &&
-                       this.target.wrappedJSObject.mozMediaStatisticsShowing;
+    var statsShowing = this.onVideo && this.target.mozMediaStatisticsShowing;
     this.showItem("context-video-showstats",
                   this.onVideo && this.target.controls && !statsShowing);
     this.showItem("context-video-hidestats",
                   this.onVideo && this.target.controls && statsShowing);
 
     // Disable them when there isn't a valid media source loaded.
     if (onMedia) {
       this.setItemAttr("context-media-playbackrate-050", "checked", this.target.playbackRate == 0.5);