Closed Bug 1426122 Opened 6 years ago Closed 5 years ago

Extension stuck in "Checking for updates..." mode

Categories

(Toolkit :: Add-ons Manager, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox59 --- wontfix
firefox67 --- fixed

People

(Reporter: marius.santa, Assigned: koroknay, Mentored)

Details

Attachments

(3 files)

Attached image stuck checking.gif
[Affected versions]:
Firefox 59.0a1 (20171217220404)

[Affected platforms]:
Windows 10 64-bit
MacOS Sierra 10.13


[Steps to reproduce]:
1.Launch Firefox with a clean profile.
2.Install a previous version of any extension.
3.Go to "about:addons".
4.Click on the "More" button for the installed extension.
5.Set "Automatic Updates" to "Off".
6.Click on the "Extensions" tab and perform a "Check for Updates" operation from "Tools for all add-ons".
7.Right click on the extension and select "Find Updates".

[Expected Results]:
The updates are displayed.

[Actual Results]:
The "Checking for Updates..." message is stuck. The user has to refresh the page in order to be able to use any of the options available for the selected addon.


[Additional notes]:
Gif of issue attached.
Priority: -- → P3
It looks like the issue here is that in the sequence of events described here, we get an "onUpdateAvailable" callback (as opposed to an onNewInstall callback if we skip step 6).  And the addon-generic XBL binding doesn't handle that event.  Fixing this is just a matter of adding that method, all I think it needs to do is call `this._showStatus("update-available");`

Dropping the priority since this requires such a specific sequence of events to trigger, and since this is code we'd like to get rid of anyway...
Mentor: aswan
Keywords: good-first-bug
Priority: P3 → P5
Hey,

I would like work on the issue as I am learning to work on open source projects. Is it possible if you can assign this to me and I would love to contribute? Thanks a lot
Sure, thanks for your interest!  I've assigned the bug to you.

If you haven't already done it, building Firefox locally is the first step.  There's an overview here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build
But for this bug you should be able to use artifact builds as well, see the docs here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Artifact_builds

The code in question is in the file toolkit/mozapps/extensions/content/extensions.xml.  I'm not sure how much background you need to get started, please feel free to add comments here with any questions you have, and set the needinfo flag (by clicking the checkbox next to "Need more information from" and entering my name in the text box at the bottom of the page)
Assignee: nobody → yadavallisasank
Hey yadavallisasank! Just wanted to check in and see how it's going with this bug.
Hi yadavallisasank, since we haven't heard from you in awhile we are going to unassign you from this bug. If you have a little bit more time in the future, please come back and submit a patch!
Assignee: yadavallisasank → nobody
Hi can I work on this bug since nobody is assigned to it. Also which part of Firefox is the bug related to? Thanks.
Also can I take 2-3 days as I am out of town?
Is the bug still open?
I can not reproduce it on firefox.

I just reproduced this on Firefox 64.0.2 on Windows 10 (1803), so the bug is still there.

Hi, I'd be more than happy to take this one on as my first contribution to open source. Could it be assigned to me please? Thanks!

Hey Martin, welcome! If you haven't done so already, you might want to read our onboarding documentation before getting started: https://wiki.mozilla.org/WebExtensions/Contribution_Onramp

If you need any help, please needinfo :aswan, the bug's mentor.

Happy bug fixing!

Assignee: nobody → koroknay

(In reply to Caitlin Neiman [:caitmuenster] from comment #12)

Thanks Caitlin. I have attached my patch now, which I have tested and should fix the bug.

Fix extensions getting stuck in "Checking for updates" mode

Attachment #9040334 - Attachment description: Bug 1426122 → Bug 1426122 - Fix extensions getting stuck in "Checking for updates" mode. r=aswan
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67

Thanks so much, Martin! Your contribution has been added to our recognition wiki: https://wiki.mozilla.org/Add-ons/Contribute/Recognition

Would you be interested in creating an account on mozillians.org? I'd be happy to vouch for you!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: