~ubuntu-branches/debian/stretch/downthemall/stretch

« back to all changes in this revision

Viewing changes to modules/manager/globalprogress.jsm

  • Committer: Package Import Robot
  • Author(s): Michael Meskes
  • Date: 2013-04-02 12:42:44 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130402124244-2icfbeqdw4a8vuc8
Tags: 2.0.16-1
* Imported Upstream version 2.0.16
* Removed obsoleted DM-Upload-Allowed field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
const Cc = Components.classes;
6
6
const Ci = Components.interfaces;
7
7
const Cu = Components.utils;
8
 
const module = Cu.import;
9
8
const Exception = Components.Exception;
10
9
 
11
 
module("resource://dta/utils.jsm");
 
10
Cu.import("resource://dta/utils.jsm");
12
11
 
13
12
function GlobalProgress(window) {
14
13
        this.init(window);
38
37
try {
39
38
        // Windows7, mozilla 1.9.2
40
39
        const wtb = Cc["@mozilla.org/windows-taskbar;1"]
41
 
         .getService(Ci.nsIWinTaskbar);
 
40
                                 .getService(Ci.nsIWinTaskbar);
42
41
        
43
42
        if (!wtb.available) {
44
43
                // Service is present but not supported
53
52
                _state: NO_PROGRESS,
54
53
                init: function(window) {
55
54
                        let docShell = window.QueryInterface(Ci.nsIInterfaceRequestor).
56
 
                            getInterface(Ci.nsIWebNavigation).
57
 
                            QueryInterface(Ci.nsIDocShellTreeItem).treeOwner.
58
 
                            QueryInterface(Ci.nsIInterfaceRequestor).
59
 
                            getInterface(Ci.nsIXULWindow).docShell;
 
55
                                        getInterface(Ci.nsIWebNavigation).
 
56
                                        QueryInterface(Ci.nsIDocShellTreeItem).treeOwner.
 
57
                                        QueryInterface(Ci.nsIInterfaceRequestor).
 
58
                                        getInterface(Ci.nsIXULWindow).docShell;
60
59
                        this._progress = wtb.getTaskbarProgress(docShell);
61
60
                },
62
61
                exit: function() {