[Pkg-mozext-commits] [nosquint] 46/47: Conform to browser.addProgressListener() API changes

David Prévot taffit at moszumanska.debian.org
Tue Apr 28 01:41:21 UTC 2015


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

taffit pushed a commit to annotated tag 2.1.6
in repository nosquint.

commit 0e47ef89f256ca52fd564d56da4143558dbc4236
Author: Jason Tackaberry <tack at urandom.ca>
Date:   Fri Aug 10 17:47:52 2012 -0400

    Conform to browser.addProgressListener() API changes
    
    Fixes #38.
---
 src/content/browser.js    | 2 +-
 src/content/interfaces.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/content/browser.js b/src/content/browser.js
index 6abbad0..952d92c 100644
--- a/src/content/browser.js
+++ b/src/content/browser.js
@@ -414,7 +414,7 @@ NoSquint.browser = NoSquint.ns(function() { with (NoSquint) {
 
     this.attach = function(browser) {
         var listener = new NSQ.interfaces.ProgressListener(browser);
-        browser.addProgressListener(listener, CI.nsIWebProgress.NOTIFY_STATE_DOCUMENT);
+        browser.addProgressListener(listener);
         debug('attach(): attached browser URI=' + browser.docShell.document.URL);
 
         var userData = {
diff --git a/src/content/interfaces.js b/src/content/interfaces.js
index 6544c1a..fa70e2f 100644
--- a/src/content/interfaces.js
+++ b/src/content/interfaces.js
@@ -154,7 +154,7 @@ NoSquint.interfaces = NoSquint.ns(function() { with (NoSquint) {
                 var listener = this;
                 setTimeout(function() {
                     try {
-                        browser.addProgressListener(listener, CI.nsIWebProgress.NOTIFY_STATE_DOCUMENT);
+                        browser.addProgressListener(listener);
                     } catch (err) {
                         // Assume ProgressListener was already attached after all, so
                         // we don't need to do anything.

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



More information about the Pkg-mozext-commits mailing list