Closed Bug 1393497 Opened 2 years ago Closed 2 years ago

[nosdk] Valence addon still using sdk dependencies


(DevTools :: General, enhancement, P1)



(firefox57 fixed)

Firefox 57
Tracking Status
firefox57 --- fixed


(Reporter: jdescottes, Assigned: zer0)



(Whiteboard: [nosdk])


(1 file)


We need to update the Valence addon to no longer rely on the SDK classes.
Whiteboard: [nosdk]
Flags: qe-verify-
Whiteboard: [nosdk] → [reserve-nosdk]
Assignee: nobody → zer0
Priority: P3 → P1
Whiteboard: [reserve-nosdk] → [nosdk]
Target Milestone: --- → Firefox 57
I double checked that Valence is not shipped with DevEdition; but it's just installed the first time WebIDE is opened in any Firefox versions, despite what the Valence's repo said.

It seems to me, that the quickest way to avoid that, it's just set this pref to `false`:

Or remove the pref, and hard code this to `false`:

Since AFAIK we want to remove WebIDE code anyway, it doesn't seems to me valuable refactoring WebIDE code to remove any Valence / Adapters reference.

Alex, since you've more insight about adb-helper / valence than me, what do you think? Seems reasonable proceed in this way?
Flags: needinfo?(poirot.alex)
Removing the pref and all code that use it sounds like a good approach.

But that's not all the entry points for Valence.
There is also an entry for it in "extra components" panel,
in WebIDE select "Project > Manage extra components" menu entry,
you will see "Tools adapters Add-on" entry.
This should be implemented here:

Otherwise a code search on "adapters" should help identifying all things related to valence:

Also we may put some messages on MDN to say it is no longer maintained:
Flags: needinfo?(poirot.alex)
See Also: → 1397274
Alex, I filed bug 1397274 for the docs, thanks!

About the patch, I run the webIDE tests (devtools/client/webide/test/) and I got a couple of errors, especially one modal saying: "Can’t fetch the add-on list: JSON not available, CDN error: [object ProgressEvent], storage error: Empty cache for devtools.webide.addonsURL" but since I got the same results in mozilla central without the patch updated, I believe is not related to this changes.

Build and run WebIDE seems fine, but I don't know the codebase, so let's double check to see if I missed anything else.
Comment on attachment 8905303 [details]
Bug 1393497 - remove Valence from WebIDE;

Thanks Matteo for this cleanup, it looks good.

r+ assuming you get a green try.
Attachment #8905303 - Flags: review?(poirot.alex) → review+
Triggered Autoland from Review Board.
Pushed by
remove Valence from WebIDE; r=ochameau
Closed: 2 years ago
Resolution: --- → FIXED
Duplicate of this bug: 1390662
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.