B2G/gecko/docshell/test/navigation/browser_bug343515.js
// Helper function to check if a window is active
Helper function to check if a window is active
Helper function to check if a window is active
function isActive(aWindow) {
  var docshell = aWindow.QueryInterface(Ci.nsIInterfaceRequestor)
                        .getInterface(Ci.nsIWebNavigation)
                        .QueryInterface(Ci.nsIDocShell);
  return docshell.isActive;
}
function isActive ( aWindow ) { var docshell = aWindow . QueryInterface ( Ci . nsIInterfaceRequestor ) . getInterface ( Ci . nsIWebNavigation ) . QueryInterface ( Ci . nsIDocShell ) ; return docshell . isActive ; }
Helper function to check if a window is active
Helper function to check if a window is active