Closed Bug 624315 Opened 14 years ago Closed 13 years ago

Identity display (for EV certs) is wrong when first load.

Categories

(Core :: Security: PSM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 624514
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: alice0775, Unassigned)

References

()

Details

(Keywords: regression, Whiteboard: [softblocker])

Attachments

(1 file)

Build Identifier:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b9pre) Gecko/20110109
Firefox/4.0b9pre ID:20110109030350

Identity display (for EV certs) is wrong when first load.
Duplication of the page helps to indicate correct Identity.
Reloading of the page does not help.

Reproducible: Always

Steps to Reproduce:
1. Start Minefield
2. Clear cache (Ctril+Shilf+Del)
3. Restart Browser
4. Open URL
5. See Identity

6. Duplicate the tab (Middle click Reload Button)
7. See Identity

Actual Results:
 Blue Identity on the first load
 Green Identity on the second load

Expected Results:
 Green Identity on the first load
Attached image screenshot
Regression window(cached hourly):
Works:
http://hg.mozilla.org/mozilla-central/rev/6f18c950b3b6
Mozilla/5.0 (X11; Linux i686; rv:2.0b9pre) Gecko/20110105 Firefox/4.0b9pre ID:20110105155325
Fails:
http://hg.mozilla.org/mozilla-central/rev/d2856d5970b6
Mozilla/5.0 (X11; Linux i686; rv:2.0b9pre) Gecko/20110105 Firefox/4.0b9pre ID:20110105163600
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=6f18c950b3b6&tochange=d2856d5970b6

Regressed by:
d2856d5970b6	Dan Witte — Bug 580790 - Connection::initialize can access preferences off of the main thread. r=sdwilsh, sr=bsmedberg, a=betaN+
Blocks: 580790
blocking2.0: --- → ?
Keywords: regression
Sorry wrong Build Identifier in comment #0

Build Identifier:
Mozilla/5.0 (X11; Linux i686; rv:2.0b9pre) Gecko/20110109 Firefox/4.0b9pre ID:20110109030350

*This happens on ubuntu 10.04 and 8.04.
*This does not happen on Wndows 7 and XP.
This also happens on https://addons.mozilla.org/

Error shows in Error console:
Invalid use of the preferences on a background thread!
Bug 619487 landed with the wrong commit message...
Blocks: 619487
No longer blocks: 580790
Sounds like a PSM bug? :(
Component: Security → Security: PSM
Product: Firefox → Core
QA Contact: firefox → psm
blocking2.0: ? → betaN+
(In reply to comment #6)
> Sounds like a PSM bug? :(

Yes - chances are good that it'll go away once bug 585706 is fixed.

Currently, nsNSSCertificateDB::GetIsOcspOn can return somewhat "random" results (see bug 585706 comment 28), and EV status is only shown if PSM determines that OCSP is enabled (see http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/src/nsIdentityChecking.cpp#1019, in particular).
We found PSM bug 624411, with stack. May be the same as this one.
(In reply to comment #8)
> We found PSM bug 624411, with stack. May be the same as this one.

Yes, very likely. Currently, you'll get the "Invalid use of the preferences on a background thread!" message whenever you connect to a new SSL site for the first time in a session - the AuthCertificateCallback calls  nsNSSCertificate::GetIsExtendedValidation for every cert (http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/src/nsNSSCallbacks.cpp#1014 - afterwards the EV info is cached).
No longer blocks: 619487
Depends on: 619487
Blocks: 619487
No longer depends on: 619487
I wouldn't pull the release off the wire for this bug, marking soft blocking, but if comment 7 is right about this being fixed by bug 585706, which is currently marked checkin-needed, can we... um... do that?
Whiteboard: [softblocker]
The patch that caused this regression was backed out before B9. I am working on a patch that fixes all the instances of PSM accessing nsIPrefService off the main thread in 624514.
According to comment 9 and comment 11, shouldn't this bug be closed?
Yes. Resolving as duplicate of 624514.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: