function startCallbackTimer() {
    didDialog = false;

    // Delay before the callback twiddles the prompt.
    const dialogDelay = 10;

    // Use a timer to invoke a callback to twiddle the authentication dialog
    timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
    timer.init(observer, dialogDelay, Ci.nsITimer.TYPE_ONE_SHOT);
}
// keep in outer scope so it's not GC'd before firing
keep in outer scope so it's not GC'd before firing
keep in outer scope so it ' s not GC ' d before firing
function startCallbackTimer() {
    didDialog = false;
    const dialogDelay = 10;
    timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
    timer.init(observer, dialogDelay, Ci.nsITimer.TYPE_ONE_SHOT);
}
function startCallbackTimer ( ) { didDialog = false ; const dialogDelay = 10 ; timer = Cc [ "@mozilla.org/timer;1" ] . createInstance ( Ci . nsITimer ) ; timer . init ( observer , dialogDelay , Ci . nsITimer . TYPE_ONE_SHOT ) ; }
keep in outer scope so it's not GC'd before firing
keep in outer scope so it ' s not GC ' d before firing
// Delay before the callback twiddles the prompt. // Use a timer to invoke a callback to twiddle the authentication dialog