[Pkg-mozext-commits] [wot] 03/09: Fixed broken redirects issue; Version is updated to 20150605

David Prévot taffit at moszumanska.debian.org
Sat Jul 11 22:49:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository wot.

commit c644d7e8c7e943617aa9f118377c39c06df22249
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Sun Jul 5 18:18:05 2015 +0300

    Fixed broken redirects issue; Version is updated to 20150605
---
 content/config.js |  2 +-
 content/core.js   | 22 +++++++++-------------
 content/stats.js  | 32 ++++++++++++++++----------------
 3 files changed, 26 insertions(+), 30 deletions(-)

diff --git a/content/config.js b/content/config.js
index 5d1ec54..66fe1a4 100644
--- a/content/config.js
+++ b/content/config.js
@@ -21,7 +21,7 @@
 "use strict";
 
 const WOT_PLATFORM = "firefox";
-const WOT_VERSION  = "20150420";
+const WOT_VERSION  = "20150605";
 
 /*
  * Constants
diff --git a/content/core.js b/content/core.js
index 0355223..0a68ae0 100755
--- a/content/core.js
+++ b/content/core.js
@@ -58,7 +58,7 @@ wot_listener.prototype =
 		return this;
 	},
 
-	onLocationChange: function(browser, progress, request, location)
+	onLocationChange: function(browser, progress, request, location, flags)
 	{
 		try {
 			if (progress.DOMWindow != browser.contentWindow) {
@@ -79,10 +79,12 @@ wot_listener.prototype =
 
 				wot_stats.loc(tabUrl, ref);
 			}
-		} catch(e) { }
+		} catch(e) {
+			dump("wot_core.onLocationChange.init: failed with " + e + "\n");
+		}
 	},
 
-	onProgressChange: function(progress, request, curSelfProgress,
+	onProgressChange: function(browser, progress, request, curSelfProgress,
 		maxSelfProgress, curTotalProgress, maxTotalProgress)
 	{
 	},
@@ -94,10 +96,12 @@ wot_listener.prototype =
 				return;
 			}
 
-			if (flags & this.loading && flags & this.isdocument && request) {
+			if ((flags & this.loading) && (flags & this.isdocument) && request) {
 				wot_core.block(this, request, request.name);
 			}
-		} catch(e) { }
+		} catch(e) {
+			dump("wot_core.onStateChange: failed with " + e + "\n");
+		}
 	},
 
 	onStatusChange: function(browser, webProgress, request, status, message)
@@ -106,14 +110,6 @@ wot_listener.prototype =
 
 	onSecurityChange: function(browser, progress, request, state)
 	{
-	},
-
-	onRefreshAttempted: function(browser, webProgress, refrushURI, millis, sameUri)
-	{
-	},
-
-	onLinkIconAvailable: function(browser)
-	{
 	}
 };
 
diff --git a/content/stats.js b/content/stats.js
index f1e60af..c2b2409 100755
--- a/content/stats.js
+++ b/content/stats.js
@@ -1,21 +1,21 @@
 var wot_stats =
 {
-	utils: {
-		serialize: function(obj)
-		{
-			var str = [];
-			var length = 0;
-			for(var p in obj) {
-				if (obj.hasOwnProperty(p)) {
-					length++;
-					str.push(p + "=" + obj[p]);
-				}
-			}
-			return {
-				data: str.join("&"),
-				length:length
-			};
-		},
+    utils: {
+        serialize: function(obj)
+        {
+            var str = [];
+            var length = 0;
+            for(var p in obj) {
+                if (obj.hasOwnProperty(p)) {
+                    length++;
+                    str.push(p + "=" + obj[p]);
+                }
+            }
+            return {
+                data: str.join("&"),
+                length:length
+            };
+        },
 
 		postRequest: function(url, data, length, callback)
 		{

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/wot.git



More information about the Pkg-mozext-commits mailing list