Closed Bug 1631403 Opened 4 years ago Closed 4 years ago

Add an explicit test case to cover the Remote Debugging Protocol APIs that "web-ext run" depends on

Categories

(WebExtensions :: Developer Tools, task, P3)

task

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: rpl, Assigned: willdurand)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

web-ext does use the Remote Debugging Protocol to install an extension temporarily on a Firefox instance.

As code that depends on mozilla-central code but developed outside of mozilla-central, it is not unlikely that changes (e.g. a refactoring) happening on mozilla-central on the DevTools server code may introduce a regression that breaks web-ext run and we may miss to notice that as soon as the change lands in mozilla-central (e.g. see mozilla/web-ext#1884 for a recent example).

As Julian did mention in his comment on mozilla/web-ext#1884, we should add a small test in m-c to check that the APIs you use (in particular: getRoot, addonsActor.installTemporaryAddon, listAddons and addons.reload) are still working as expected (and webext peers as blocking reviewers for any change on it).

See https://github.com/mozilla/web-ext/blob/master/src/firefox/remote.js for the Remote Debugging Protocol requests that web-ext run depends on.

I'm setting the priority to P3 and assigning this issue to :willdurand, as he told me that he would like to work on this.

Assignee: nobody → wdurand
Priority: -- → P3
Attachment #9142273 - Attachment description: Bug 1631403 - Add test case to cover RDP APIs that 'web-ext run' depends on. r=rpl,jdescottes → Bug 1631403 - Add test case to cover RDP APIs that 'web-ext run' depends on. r=rpl,ochameau
Pushed by ccoroiu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/78f47bf43523
Add test case to cover RDP APIs that 'web-ext run' depends on. r=rpl,ochameau

Sorry about that, the added test case had a weak condition at the end, making it unreliable. I updated the revision with a better approach to fix this and it looks better now: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f34b8656ef707ed260722a2df21bedd895e09c1d

Flags: needinfo?(wdurand)
Attachment #9142273 - Attachment description: Bug 1631403 - Add test case to cover RDP APIs that 'web-ext run' depends on. r=rpl,ochameau → Bug 1631403 - Add test case to cover RDP APIs that 'web-ext run' depends on. r=rpl,ochameau,robwu
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fe4e3650f011
Add test case to cover RDP APIs that 'web-ext run' depends on. r=rpl,ochameau,robwu
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77

(In reply to William Durand [:willdurand] from comment #5)

Sorry about that, the added test case had a weak condition at the end, making it unreliable. I updated the revision with a better approach to fix this and it looks better now: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f34b8656ef707ed260722a2df21bedd895e09c1d

No problem, thanks for the fix!

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

Attachment

General

Created:
Updated:
Size: