Closed Bug 453855 Opened 16 years ago Closed 16 years ago

Exception dialog slow to appear when prefetching

Categories

(Core Graveyard :: Security: UI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: johnath, Assigned: johnath)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
Attachment #337097 - Flags: review?(kaie)
OS: Mac OS X → All
Hardware: PC → All
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.
Attachment #337097 - Flags: review?(kaie) → review+
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...
Carrying forward r+, commented as suggested.
Attachment #337097 - Attachment is obsolete: true
Attachment #337949 - Flags: review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Depends on: 1029456
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: