Skip to content
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

Load local WebExtension issue, plz help! #239

Open
hanliuxin5 opened this issue Apr 30, 2024 · 0 comments
Open

Load local WebExtension issue, plz help! #239

hanliuxin5 opened this issue Apr 30, 2024 · 0 comments

Comments

@hanliuxin5
Copy link

hanliuxin5 commented Apr 30, 2024

Hello everyone, when I used geckoview to load html under local assets, I tried to call the WebExtensionController.install method to load a remote or local signed xpi file.

In the callback of onInstallPrompt, I manually returned GeckoResult.allow()

The log shows that the extension was installed successfully, similar to
Extension installed: WebExtension {location=resource://android/assets/aaa.xpi, [email protected], flags=0},

but this flags=0 means that I cannot Call browser.runtime.connectNative("xxx")

I have already specified the required permissions when making xpi in the manifest.json

"permissions": [
    "nativeMessaging",
    "nativeMessagingFromContent",
    "geckoViewAddons",
    "<all_urls>"
  ]

The strange thing is that if I directly use the source code for making xpi, this problem will not occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant