web-ext: Reference Browser not supported unless --firefox-apk-component is set

Is this a feature request or a bug?

Bug

What is the current behavior?

Upon running the following:

web-ext run -t firefox-android --android-device=DEVICEID_HERE  --firefox-apk=org.mozilla.reference.browser

… the Reference Browser app (https://github.com/mozilla-mobile/reference-browser) is not launched and the following error is displayed:

Error: Activity class {org.mozilla.reference.browser/org.mozilla.reference.browser.App} does not exist.

What is the expected or desired behavior?

The reference browser should be launched. As a work-around, I have to add --firefox-apk-component=BrowserActivity .

To fix this, we would have to recognize the special component at https://github.com/mozilla/web-ext/blob/82c4250935bf7c5954ed2482447669628b3aaaa5/src/util/adb.js#L314-L315

Version information (for bug reports)

node --version && npm --version && web-ext --version

v14.13.0 6.14.7 5.2.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (13 by maintainers)

Most upvoted comments

Thank you @rpl, I will take a look at this issue and let you know if I need any help. Could you please assign me to this issue? Thank you!..

@ankushduacodes we don’t usually assign the issue until a contributor did create a pull request, but in the meantime we do “gate keep” the issue to give the last contributor that wanted to work on the good first bug some time to dig into the issue and create the PR (usually a couple of weeks), asking new contributors to look to one of the other good first bugs in the meantime.