Closed
Bug 453855
Opened 16 years ago
Closed 16 years ago
Exception dialog slow to appear when prefetching
Categories
(Core Graveyard :: Security: UI, defect)
Core Graveyard
Security: UI
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: johnath, Assigned: johnath)
References
Details
Attachments
(1 file, 1 obsolete file)
1.51 KB,
patch
|
johnath
:
review+
|
Details | Diff | Splinter Review |
If the exception dialog is invoked with a location pre-populated and with args[0].prefetchCert == true, it will attempt to load the cert synchronously in the onload handler for the dialog. The effect of this is that the dialog will not be visible until the network call completes, which might be several seconds after invocation. This makes the application appear unresponsive.
Instead, the onload handler should schedule a timer to perform the fetch, and display immediately with the "Currently verifying certificate..." text. This allows the dialog to appear more immediately after requested, and has the additional advantage that, even in the case of prepopulated cert exceptions, the user has a few seconds to see the un-cluttered dialog before exception adding is enabled.
Should be a straightforward patch, I'll try to attach one shortly.
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #337097 -
Flags: review?(kaie)
Assignee | ||
Updated•16 years ago
|
OS: Mac OS X → All
Hardware: PC → All
Comment 2•16 years ago
|
||
Comment on attachment 337097 [details] [diff] [review]
2s timer, update text immediately
I don't mind this patch, but 2 seconds seem pretty long. Have you tested with other values? I would have expected that 100 ms should be sufficient to decouple it.
Updated•16 years ago
|
Attachment #337097 -
Flags: review?(kaie) → review+
Comment 3•16 years ago
|
||
Comment on attachment 337097 [details] [diff] [review]
2s timer, update text immediately
r=kaie
Please add a comment where you mention the motivation for the 2 seconds timeout (as you said it's not a technical motivation, but the desire to have the user take a look)
On the other hand the argument for prefetching was: people want to save time...
Assignee | ||
Comment 4•16 years ago
|
||
Carrying forward r+, commented as suggested.
Attachment #337097 -
Attachment is obsolete: true
Attachment #337949 -
Flags: review+
Assignee | ||
Comment 5•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•