-
Notifications
You must be signed in to change notification settings - Fork 972
Extension: 1Password 4.6.7.90 #9946
Comments
let me know if you need any assistance with the Native Host has exited, are you testing with 6.8.BETA-8? |
@rudyrichter Thank you for the generous offer. We're testing 4.6.7.90 (current latest in Chrome webstore). We are running into an issue with native messaging though ( Platform: Windows 10 (15036.483) Native Messaging issues may be related to those noted here. |
"after adding the local extension ID to the receiving native-messaging manifest" what exactly does this mean? I suspect that's the problem, we only allow a fixed set of origins in both the Mac and Windows versions. |
@rudyrichter When we load an unpacked extension (which we need to do for testing), the extension ID is generated from the filesystem path. As a result, it won't be the expected ID. I took the generated ID and added it as an allowed_origin in the ChromeManifest.json file (located via the Registry). This resolved Host not allowed messages. |
@jonathansampson I'm pretty sure that's not going to work, 1Password for Mac and Windows have a baked in set of origins they accept NM connections from. Anything other than that is rejected outright. |
@rudyrichter Understood. This is the manifest that comes with 1Password:
For testing purposes, I added another origin to reflect the extension's ID in Brave. Is there something additional that needs to be done? |
that manifest file is only used by the browser to decide if the extension itself should use this particular manifest in figuring out if there is a NM manifest. you're probably seeing the 1Password NM process launch and do nothing, this is how it reacts when a origin other than the ones it has baked into it tries to connect. |
@rudyrichter I appreciate the prompt response. I was able to load the same source files as an unpacked extension in Chrome, and run without any issue. Chrome had the same ID as Brave, since both were loading the unpacked extension from the same directory. This suggested there may be something within Brave that needs to be adjusted. I tested Chrome a couple of days ago in this manner, and will do it again here momentarily to be certain of these results. I'll update this issue shortly with my findings. |
Just ran through the following scenario and found success in Chrome, failure in Brave:
|
Closed in part by brave/muon#259 |
A Note on Development Testing
1Password expects Brave to be signed. This is the case with general releases, but is not presently the case with electron-prebuilt releases of Muon. For this reason, 1Password may refuse to communicate when the user is testing from a local clone of the browser-laptop project.
Testing 4.6.7.90 on a General Release
In order to test a newer version of 1Password, the user can enable 4.6.3 (current offered version in Brave), which results in the creation of
%appdata%/brave/Extensions/aomjjhallfgjeglblehebfpbcfeobpgk/4.6.3.90/
. The contents of this directory can be replaced with an unpacked 4.6.7.90, downloaded from the Chrome webstore.On macOS, the user may need to copy the
Chrome/NativeMessagingHosts
directory over toBrave/NativeMessagingHosts
to give Brave access to the 1Password manifest. Ideally, Brave would read from any pre-existingChrome/NativeMessagingHosts
directory.General Issues
Explanation: This is due to the background script not reaching the contextMenu logic. The lack of support for chrome.browserAction.enable causes a throw to occur.
chrome.browserAction.enable is not a function
from setToolbarEnabledExplanation: This issue has been addressed in part. It is important to achieve a full implementation (which allows for disabling and enabling the browserAction button. This button prevents the user from spinning up a new 1Password process during updates, etc.
Explanation: When testing locally, 1Password doesn't permit Brave to communicate with the Native application. This can be avoided by following the General Release testing steps at the top of this issue.
Chrome/NativeMessagingHosts
for manifests.Related Issues
The text was updated successfully, but these errors were encountered: