Bugfix: New intermediate certs missing date added

chrome/content/overlay.js

- (CertWatch.doRootCertificateWasAccessed)
Store the Date() when a new intermediate certificate is first added.


Prior to this change the code block for handling new intermediate
certificates didn't define 'now', which ends up bound to
dateAddedToCertWatch. Another block in the function properly defined
'now' so I moved that definition to function scope.
Bugfix: New intermediate certs missing first use

chrome/content/overlay.js

- (CertWatch.doRootCertificateWasAccessed)
Store the Date() when a new intermediate certificate is first used.


Prior to this change there was no attempt to store the first time a new
intermediate certificate was used. To reproduce:

- Close all tabs and exit Firefox
- Rename cert8.db and CertWatchDB3.sqlite in the profile directory
- Start Firefox
- Tab 1: PayPal.com (New Verisign intermediate, access count 1)
- Tab 2: PayPal.com (Same Verisign intermediate, access count still 1)