Go to the source code of this file.
function _handleEvent |
( |
|
aEvent | ) |
|
XPCOMUtils defineLazyServiceGetter |
( |
this |
, |
|
|
"_focusManager" |
, |
|
|
"@mozilla.org/focus-manager;1" |
, |
|
|
"nsIFocusManager" |
|
|
) |
| |
Components utils import |
( |
"resource://gre/modules/XPCOMUtils.jsm" |
| ) |
|
function trackBrowserWindow |
( |
|
aWindow | ) |
|
let _lastFocusedWindow = null |
Initial value:= {
},
if (windowEntry.lastSelectedBrowser)
this.decreasePriority(windowEntry.lastSelectedBrowser);
windowEntry.lastSelectedBrowser =
aBrowser;
},
return aBrowser.webNavigation.QueryInterface(
Ci.nsIDocumentLoader)
.loadGroup.QueryInterface(
Ci.nsISupportsPriority);
},
},
}
}
_updateTextAndScrollDataForTab aBrowser
_dialogDatepicker onSelect
Definition at line 99 of file NetworkPrioritizer.jsm.
let EXPORTED_SYMBOLS = ["trackBrowserWindow"] |
const PRIORITY_DELTA = -10 |
const TAB_EVENTS = ["TabOpen", "TabSelect"] |
const WINDOW_EVENTS = ["activate", "unload"] |