[gnome-shell] portalHelper: Use the correct enum values



commit a0c31478c0d43363f89db45db12208d51fc69c2e
Author: Catalin Iacob <iacobcatalin gmail com>
Date:   Thu Mar 23 18:27:40 2017 +0100

    portalHelper: Use the correct enum values
    
    Without this the tests never succeeded because they were comparing
    loadEvent to undefined resulting in the icon not changing as it
    should.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780606

 js/portalHelper/main.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js
index f64cae4..2928c76 100644
--- a/js/portalHelper/main.js
+++ b/js/portalHelper/main.js
@@ -188,9 +188,9 @@ const PortalWindow = new Lang.Class({
     },
 
     _onLoadChanged: function(view, loadEvent) {
-        if (loadEvent == WebKit.LOAD_STARTED) {
+        if (loadEvent == WebKit.LoadEvent.STARTED) {
             this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.NOT_YET_DETERMINED);
-        } else if (loadEvent == WebKit.LOAD_COMMITTED) {
+        } else if (loadEvent == WebKit.LoadEvent.COMMITTED) {
             let tlsInfo = this._webView.get_tls_info();
             let ret = tlsInfo[0];
             let flags = tlsInfo[2];


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