-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add reference browser support to the firefox-android extension runner (#1870) #1871
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you verify that you're able to run extensions in the Reference browser after this change?
Yes, I did. It requires a minor change in r-b to allow web-ext to launch the browser which I'll be landing soon. 🙂 |
I see that you've opened a new pull request at the Reference Browser's repository as well. Did you know that even without any changes to
To avoid the need for mozilla-mobile/reference-browser#1096 , you could add if (!apkComponent && apk === 'org.mozilla.reference.browser') {
apkComponent = 'BrowserActivity';
} before Lines 273 to 274 in ffe5726
|
It seemed more in line with our other browser apps to follow the |
Did this work for you? In my testing it wasn't able to launch the activity. So I opted for adding the alias as mentioned above. |
I did the following:
manifest.json {
"name": "Test ext",
"version": "1",
"manifest_version": 2,
"background": {
"scripts": ["background.js"]
}
} background.js
(I installed R-B from the Play store just today) |
Interesting, this command seems to work for release, but not debug builds. I get this error instead (without the activity-alias):
That's probably because it's sending the intent with the variant (debug) in the package name: What it's sending: I don't believe that's a bug with web-ext though as we've run into this in Fenix where the IDE would make the same error (mozilla-mobile/fenix#9462 (comment)). |
Ping @Rob--W . What do you think about this? The reason it isn't a bug on Fenix variants is because we use the same activity-alias there too. |
The value of I think that the best course of action is to pass a fully-qualified name instead, without the |
@jonalmeida Could you update the PR to implement the above idea, and test whether it also works with other mobile products such as Fenix (and maybe even geckoview_example)? |
This seems outside the scope of this issue - I can file a follow-up for it if you'd like. In R-B, we have everything we need to land this patch as is. |
That's OK, let's not block the merge on my next question.
Has the |
I've filed #1891 |
In addition to Fenix support (#1834), we'd like to add Reference Browser as well. 🙂