Bug 1216368 - Fix the panel views in Loop's ui-showcase - fake-Mozloop was missing a return statement. r=Standard8
authorDavid Critchley <david@priologic.com>
Wed, 21 Oct 2015 22:48:37 +0100
changeset 304030 a8b183936c658ebfdc28aa9751de8f131f014bf6
parent 304029 8917ec916bddbbd5aacde8ec47ed94ba2fcf8d4b
child 304031 08295428d1ce9259abfe2664093d61b33711296c
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs1216368
milestone44.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 1216368 - Fix the panel views in Loop's ui-showcase - fake-Mozloop was missing a return statement. r=Standard8
browser/components/loop/ui/fake-mozLoop.js
--- a/browser/components/loop/ui/fake-mozLoop.js
+++ b/browser/components/loop/ui/fake-mozLoop.js
@@ -112,17 +112,19 @@ var fakeRooms = [
    */
   navigator.mozLoop = {
     ensureRegistered: function() {},
     getAudioBlob: function(){},
     getLoopPref: function(pref) {
       switch(pref) {
         // Ensure we skip FTE completely.
         case "gettingStarted.seen":
+          return true;
       }
+      return null;
     },
     hasEncryptionKey: true,
     setLoopPref: function(){},
     releaseCallData: function() {},
     copyString: function() {},
     getUserAvatar: function(emailAddress) {
       var avatarUrl = "http://www.gravatar.com/avatar/0a996f0fe2727ef1668bdb11897e4459.jpg?default=blank&s=40";
       return Math.ceil(Math.random() * 3) === 2 ? avatarUrl : null;