Closed Bug 1631463 Opened 5 years ago Closed 5 years ago

web-ext fails to install extension on GeckoView app

Categories

(DevTools :: about:debugging, defect)

All
Android
defect

Tracking

(firefox-esr68 unaffected, firefox75 unaffected, firefox76 unaffected, firefox77 fixed)

RESOLVED FIXED
Firefox 77
Tracking Status
firefox-esr68 --- unaffected
firefox75 --- unaffected
firefox76 --- unaffected
firefox77 --- fixed

People

(Reporter: esawin, Assigned: robwu)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [geckoview])

STR:
Try to run a local extension on GVE via web-ext run --target=firefox-android --firefox-apk=org.mozilla.geckoview_example --firefox-apk-component=GeckoViewActivity --android-device=<id>

Expected: Extension installs and runs.

Actual:

c: This is an older version of Firefox that does not provide an add-ons actor for remote installation. Try Firefox 49 or higher.
    at client.request (/usr/local/lib/node_modules/web-ext/dist/web-ext.js:1:5757)
    at /usr/local/lib/node_modules/web-ext/node_modules/@cliqz-oss/firefox-client/lib/client-methods.js:82:9
    at Client.handleMessage (/usr/local/lib/node_modules/web-ext/node_modules/@cliqz-oss/firefox-client/lib/client.js:162:7)
    at Client.readMessage (/usr/local/lib/node_modules/web-ext/node_modules/@cliqz-oss/firefox-client/lib/client.js:221:10)
    at Client.onData (/usr/local/lib/node_modules/web-ext/node_modules/@cliqz-oss/firefox-client/lib/client.js:187:16)
    at Socket.emit (events.js:189:13)
    at addChunk (_stream_readable.js:284:12)
    at readableAddChunk (_stream_readable.js:265:11)
    at Socket.Readable.push (_stream_readable.js:220:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Summary: Remote WebExtension installation fails on GVE → web-ext fails to install extension on GeckoView app

15:47.08 INFO: Last good revision: 225c5d7a7bface2cc607c030d9ff11a54f0164fd
15:47.08 INFO: First bad revision: c9502ace44dc09842ca2935db5ba8aba7dadbf4e
15:47.08 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=225c5d7a7bface2cc607c030d9ff11a54f0164fd&tochange=c9502ace44dc09842ca2935db5ba8aba7dadbf4e

:jdescottes could you take a look? web-ext is really important for us :)

cc rpl who knows about web-ext

Component: Extensions → about:debugging
Flags: needinfo?(jdescottes)
Product: GeckoView → DevTools
Regressed by: 1618691
Has Regression Range: --- → yes
Whiteboard: [geckoview]

We are going to fix this on the web-ext side, the issue is tracked by mozilla/web-ext#1884.
mozilla/web-ext#1886 is the pull request with the fix we are going to land (we will release it in a new web-ext version pretty soon).

Flags: needinfo?(jdescottes)

We treat RDP and DevTools actors as an internal API at the moment, so it can break really easily since we don't really track what 3rd party tools rely on. On the GH issue I mentioned adding tests for the APIs you use directly in m-c. I will file a bug to do that.

Adding a ni? on myself to close this when the PR is merged.

Flags: needinfo?(jdescottes)
See Also: → 1632047

Hi Julian,
I'm clearing your needinfo to let you know that we released the fix on npm as part of web-ext 4.2.0.

Flags: needinfo?(jdescottes)

I'm assigning this issue to Rob (because he created the pull request to fix it on the web-ext side).

Assignee: nobody → rob
Status: NEW → ASSIGNED

Closing as fixed.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

thanks for the bugzilla cleanup Luca!

Target Milestone: --- → Firefox 77
You need to log in before you can comment on or make changes to this bug.