Add an explicit test case to cover the Remote Debugging Protocol APIs that "web-ext run" depends on
Categories
(WebExtensions :: Developer Tools, task, P3)
Tracking
(firefox77 fixed)
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.
Reporter | ||
Comment 1•4 years ago
|
||
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.
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
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
Comment 4•4 years ago
|
||
Backed out for failing xpcshell at test_webext_apis.js
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&selectedJob=298879052&resultStatus=testfailed%2Cbusted%2Cexception&revision=78f47bf435233a728f49abf3eae68fd17f45e8ba
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=298879052&repo=autoland&lineNumber=1145
Tier1: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=298886611&repo=autoland&lineNumber=8561
Backout: https://hg.mozilla.org/integration/autoland/rev/4f2b143094781660661ef959a1ea66f0565c5c84
Assignee | ||
Comment 5•4 years ago
|
||
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
Updated•4 years ago
|
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
Comment 7•4 years ago
|
||
bugherder |
Comment 8•4 years ago
|
||
(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!
Description
•