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
Bug 1866293 - Add support for installing an add-on a from local file. #4568
Conversation
🚧 Commit message is using the wrong format: WIP - Install local add-ons. The comment message should look like:
|
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Outdated
Show resolved
Hide resolved
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Outdated
Show resolved
Hide resolved
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Outdated
Show resolved
Hide resolved
fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
Outdated
Show resolved
Hide resolved
dafc67e
to
43b315e
Compare
🚧 Pull request title is using the wrong format: WIP - Install local add-ons. The pull request title should look like:
|
43b315e
to
7b3d6e4
Compare
🚧 Pull request title is using the wrong format: WIP - Install local add-ons. The pull request title should look like:
|
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Outdated
Show resolved
Hide resolved
da88359
to
49412c1
Compare
49412c1
to
76fc561
Compare
76fc561
to
5e4e81d
Compare
So I think to move forward, I'd like to (1) discuss if we can change For (2), we might want to defer that to a different bug if we want to, but that is going to be a valid use case for Nightly and maybe Beta users (well, extension developers mainly). |
That's sound good, I'm taking a look to the API to see how we can make it work!
Perfect, I'll add a validations. |
5e4e81d
to
ade1f09
Compare
🚧 Commit message is using the wrong format: Adding feedback The comment message should look like:
|
@willdurand I pushed another commit with you suggestion. Before landing I'll squash changes. |
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.
This is looking great but I have questions on the overall design. I'd like to avoid duplicating methods since that will lead to confusion in 6 months..
...ts/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
Outdated
Show resolved
Hide resolved
...t/engine/src/main/java/mozilla/components/concept/engine/webextension/WebExtensionRuntime.kt
Show resolved
Hide resolved
...ts/components/feature/addons/src/main/java/mozilla/components/feature/addons/AddonManager.kt
Show resolved
Hide resolved
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Outdated
Show resolved
Hide resolved
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Outdated
Show resolved
Hide resolved
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Outdated
Show resolved
Hide resolved
ade1f09
to
674e22f
Compare
🚧 Commit message is using the wrong format: Adding feedback The comment message should look like:
|
@willdurand address some of the comments and added some clarification comments. |
fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
Outdated
Show resolved
Hide resolved
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Show resolved
Hide resolved
This pull request has conflicts when rebasing. Could you fix it @Amejia481? 🙏 |
...ts/components/feature/addons/src/main/java/mozilla/components/feature/addons/AddonManager.kt
Outdated
Show resolved
Hide resolved
fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
Outdated
Show resolved
Hide resolved
674e22f
to
132029e
Compare
@willdurand I updated the PR with the suggested changes! |
Also I squashed the commits |
132029e
to
6dffcb0
Compare
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.
Thanks, r+wc
...t/engine/src/main/java/mozilla/components/concept/engine/webextension/WebExtensionRuntime.kt
Outdated
Show resolved
Hide resolved
...ponents/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonFilePicker.kt
Outdated
Show resolved
Hide resolved
...nts/feature/addons/src/test/java/mozilla/components/feature/addons/ui/AddonFilePickerTest.kt
Outdated
Show resolved
Hide resolved
fenix/app/src/test/java/org/mozilla/fenix/settings/SettingsFragmentTest.kt
Outdated
Show resolved
Hide resolved
6dffcb0
to
d47477a
Compare
Hello @Amejia481 , should we clean up the cache folder "/data/data/org.mozilla.firefox/cache/XPIS" after add-on installation success/failure ? (A similar issue like this https://bugzilla.mozilla.org/show_bug.cgi?id=1860472) |
If the cache is never cleared, I think it would make sense yeah, please file a bug |
Pull Request checklist
After merge
To download an APK when reviewing a PR (after all CI tasks finished running):
Checks
at the top of the PR page.firefoxci-taskcluster
group on the left to expand all tasks.build-apk-{fenix,focus,klar}-debug
task you're interested in.View task in Taskcluster
in the newDETAILS
section.GitHub Automation
https://bugzilla.mozilla.org/show_bug.cgi?id=1866293