[chrome-gnome-shell] compatibility: updated to Firefox 52



commit 2f4007ab3c5fc7bba1e92dcb014540d3fc2a04f5
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Mar 5 00:18:59 2017 +0400

    compatibility: updated to Firefox 52

 extension/include/compat-common.js |   18 ------------------
 extension/include/notifications.js |    8 +++-----
 extension/manifest.firefox.json    |    2 +-
 extension/options.js               |    5 +----
 4 files changed, 5 insertions(+), 28 deletions(-)
---
diff --git a/extension/include/compat-common.js b/extension/include/compat-common.js
index ead71dd..e8117cb 100644
--- a/extension/include/compat-common.js
+++ b/extension/include/compat-common.js
@@ -10,28 +10,10 @@
 
 /* global chrome, COMPAT */
 
-COMPAT.ON_INSTALLED                            = true;
-COMPAT.ON_STARTUP                              = true;
 COMPAT.PERMISSIONS_CONTAINS            = true;
 COMPAT.SYNC_STORAGE                            = (!COMPAT.IS_OPERA || false);
 COMPAT.NOTIFICATIONS_BUTTONS   = (!COMPAT.IS_OPERA && !COMPAT.IS_FIREFOX || false);
 
-if (typeof (chrome.runtime.onStartup) === 'undefined')
-{
-       chrome.runtime.onStartup = {
-               addListener: function() { }
-       };
-       COMPAT.ON_STARTUP = false;
-}
-
-if(typeof(chrome.runtime.onInstalled) === 'undefined')
-{
-       chrome.runtime.onInstalled = {
-               addListener: function() { }
-       };
-       COMPAT.ON_INSTALLED = false;
-}
-
 if(typeof(chrome.runtime.onMessageExternal) === 'undefined')
 {
        chrome.runtime.onMessageExternal = {
diff --git a/extension/include/notifications.js b/extension/include/notifications.js
index 0e70999..bc46aad 100644
--- a/extension/include/notifications.js
+++ b/extension/include/notifications.js
@@ -52,11 +52,9 @@ GSC.notifications = (function($) {
         */
        var browser = (function() {
                function init() {
-                       if(COMPAT.ON_STARTUP) {
-                               chrome.runtime.onStartup.addListener(function() {
-                                       // Do nothing. We just need this callback to restore notifications
-                               });
-                       }
+                       chrome.runtime.onStartup.addListener(function() {
+                               // Do nothing. We just need this callback to restore notifications
+                       });
 
                        chrome.notifications.onClosed.addListener(function (notificationId, byUser) {
                                if (!byUser)
diff --git a/extension/manifest.firefox.json b/extension/manifest.firefox.json
index 94f816d..8111644 100644
--- a/extension/manifest.firefox.json
+++ b/extension/manifest.firefox.json
@@ -2,7 +2,7 @@
   "applications": {
     "gecko": {
       "id": "chrome-gnome-shell gnome org",
-      "strict_min_version": "50.0"
+      "strict_min_version": "52.0"
     }
   },
   "permissions": [
diff --git a/extension/options.js b/extension/options.js
index 4bb1572..601bf51 100644
--- a/extension/options.js
+++ b/extension/options.js
@@ -119,10 +119,7 @@ function restore_options()
                $('#show_network_errors_yes').parents('dl:first').hide();
        }
 
-       if(!COMPAT.ON_INSTALLED)
-       {
-               $('#show_release_notes_yes').parents('dl:first').hide();
-       }
+       $('#show_release_notes_yes').parents('dl:first').hide();
 }
 
 function retrieveUpdateTimes()


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