Closed Bug 1418835 Opened 7 years ago Closed 6 years ago

Spurious report of valence being outdated

Categories

(DevTools :: General, enhancement, P2)

enhancement

Tracking

(firefox59 affected)

RESOLVED DUPLICATE of bug 1507071
Tracking Status
firefox59 --- affected

People

(Reporter: ekr, Unassigned)

Details

Attachments

(1 file)

Attached image image(5).png
See attached. Per :mhoye and :dcamp, valence is out of date, but it seems like it would be good if it were just silently deactivated, as its ours. Filing a bug in case some other add-on will show this later.
Component: Untriaged → Developer Tools
We have announced [1] some time ago that Valence would not be installed automatically anymore, but it looks like we could go one step further and silently remove it. Julian, is this something you can look into please? At least investigating what needs to be done here. Thanks!


[1] https://groups.google.com/forum/#!searchin/mozilla.dev.developer-tools/valence%7Csort:date/mozilla.dev.developer-tools/HhLpLvRDqWk/_gtlshJ-BQAJ
Flags: needinfo?(jdescottes)
Priority: -- → P2
We can add some code in DevTools to uninstall Valence if needed, but there might be another way? 
Andy, can we uninstall an addon without landing code in Firefox?
Flags: needinfo?(jdescottes) → needinfo?(amckay)
You can maybe serve a system add-on "update" (with the valence add-on ID) which simply uninstalls itself. We use this pattern often for hotfixes and one-off system add-ons. Example: https://hg.mozilla.org/releases/firefox-hotfixes/rev/2655877d3168
Unless Valence was originally distributed as a system add-on (which I don't think it was?), serving a system add-on with the Valence ID won't work.  Or rather, maybe it could be made to work but with a bunch of unnecessary hassle.  I don't have a profile with Valence installed to check but if Valence has an updateURL, you can just serve a regular update that does the uninstall.  You can even do it from a WebExtension:
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/management/uninstallSelf
What Andrew said.
Flags: needinfo?(amckay)
(In reply to Andrew Swan [:aswan] from comment #4)
> You can even do it from a WebExtension:
> https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/management/
> uninstallSelf

Will that prompt the user to approve the "management" permission?
Flags: needinfo?(aswan)
(In reply to Matthew N. [:MattN] (PM if requests are blocking you) from comment #6)
> (In reply to Andrew Swan [:aswan] from comment #4)
> > You can even do it from a WebExtension:
> > https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/management/
> > uninstallSelf
> 
> Will that prompt the user to approve the "management" permission?

No see the note at the top of that MDN page :)
Flags: needinfo?(aswan)
Product: Firefox → DevTools
We now remove the valence addon automatically when starting remote debugging modules.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: