If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Give some indication that we called InstallTrigger after a button click

RESOLVED WONTFIX

Status

addons.mozilla.org Graveyard
Public Pages
P5
normal
RESOLVED WONTFIX
7 years ago
2 years ago

People

(Reporter: jbalogh, Unassigned)

Tracking

Details

Attachments

(2 attachments)

(Reporter)

Description

7 years ago
On a slow internet connection it can take a long time for the AOM to do whatever it does in the background before triggering the addon popup.  I waited for a few seconds wondering if my button click was actually registered.

We could start a spinner that would get turned off with the success callback from the AOM.
Ugh, this happens to me all the time.  CCing chowse to see if he has great ideas, but yeah, we should do something
What I'd recommend:

1. While installing, give the button the same style as 'older version' buttons:
   white background, light blue border, and blue text. I believe
   '.button.concealed' captures most of the style.

2. Change the label from 'Add to Firefox' to 'Installing...'.

3. Replace the plus icon with a spinner.

4. Disable any input, focus, and hover effects on the button until the
   install is complete.

5. Revert the button to its original style afterwards.
Created attachment 500468 [details]
Screenshot of a the button mid-install
Created attachment 500469 [details]
Spinner image

Comment 5

7 years ago
am I correct in assuming the spinner is the same as the one we use across the site?
(In reply to comment #5)
> am I correct in assuming the spinner is the same as the one we use across the
> site?

Unfortunately, no. Different size, color and background (an unfortunate requirement of animated GIFs).

APNG or SVG+SMIL might work, if I had the time and tools to make either.
FYI: the reason this is such a problem is that Firefox 4 actually downloads the entire add-on before it pops the install dialog. It's really Firefox's fault that there's no UI indication of this, and it was something that was going to be worked on at some point, but it would be awesome if we could do something too.
mossop: Does Firefox fire a callback when it's done downloading that we can trigger off of?
(Reporter)

Comment 9

7 years ago
(In reply to comment #8)
> mossop: Does Firefox fire a callback when it's done downloading that we can
> trigger off of?

https://developer.mozilla.org/en/XPInstall_API_Reference/InstallTrigger_Object/Methods/install

We already use the callback for redirecting to contributions after installation.
Note that bug 570012 should be landing today or so which will give immediate feedback in Firefox 4. Firefox 3 is less of an issue as it only downloads 4k or so before showing the install dialog.
Priority: -- → P5
wontfix due to comment 10, thanks
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WONTFIX
(Assignee)

Updated

2 years ago
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.