[gnome-shell] location: Initialize permissions



commit fa82af251f31d14502fe7a3096c03af707b3bc20
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Feb 15 11:47:45 2017 +0100

    location: Initialize permissions
    
    The permissions hash is initialized after consulting the permission
    store, however the lookup is skipped for requests that cannot be
    resolved to an application, resulting in an error when accessing
    the uninitialized hash for saving. Just make sure that the property
    is always initialized to avoid that error.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778661

 js/ui/status/location.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/status/location.js b/js/ui/status/location.js
index b1e97c7..668f93c 100644
--- a/js/ui/status/location.js
+++ b/js/ui/status/location.js
@@ -284,6 +284,7 @@ const AppAuthorizer = new Lang.Class({
         this.reqAccuracyLevel = reqAccuracyLevel;
         this._permStoreProxy = permStoreProxy;
         this._maxAccuracyLevel = maxAccuracyLevel;
+        this._permissions = {};
 
         this._accuracyLevel = GeoclueAccuracyLevel.NONE;
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]