[chrome-gnome-shell/release/v8.2.1: 1/4] compatibility: updated to Firefox 52



commit afa5ac527df109dc290ac1bfa3c2dbf1e0c18571
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, 4 insertions(+), 29 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..32e3f0c 100644
--- a/extension/options.js
+++ b/extension/options.js
@@ -118,11 +118,6 @@ function restore_options()
        {
                $('#show_network_errors_yes').parents('dl:first').hide();
        }
-
-       if(!COMPAT.ON_INSTALLED)
-       {
-               $('#show_release_notes_yes').parents('dl:first').hide();
-       }
 }
 
 function retrieveUpdateTimes()


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