Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

bitwarden: chrome.windows.onFocusChanged not supported #7830

Closed
srirambv opened this issue Mar 22, 2017 · 8 comments
Closed

bitwarden: chrome.windows.onFocusChanged not supported #7830

srirambv opened this issue Mar 22, 2017 · 8 comments

Comments

@srirambv
Copy link
Collaborator

srirambv commented Mar 22, 2017

bitwarden: Autofill from context menu doesn't fill the login credentials

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    Windows 10 x64

  • Brave Version (revision SHA):
    Brave 0.14.0
    rev 64b381a

  • Steps to reproduce:

    1. Enable bitwarden password manager from settings
    2. Visit the site for which credentials is stored
    3. Right click->autofill->select stored credentials, doesn't autofill
  • Actual result:
    Autofill from context menu doesn't fill the login credentials

  • Expected result:
    Should autofill the credentials

  • Screenshot if needed:
    bitwarden

  • Any related issues:
    Add Bitwarden Password Manager #4776 (comment)
    cc: @kspearrin

@kspearrin
Copy link
Contributor

@bsclifton
Copy link
Member

If we're not able to resolve this, we'll have to hide this in our UI for now (and create a follow up task to re-enable in the future). I'm not sure about next steps for debugging ☹️ Help needed

@kspearrin
Copy link
Contributor

@bsclifton If there was a reliable way for me to detect brave I could add some conditionals around this feature.

Additionally, what is the method for debugging the background page for a web extension in brave? I could try to take a look at what is happening. This works fine in all of our other browsers.

@bsclifton
Copy link
Member

@kspearrin we have a new preview release which you can check out:
https://github.com/brave/browser-laptop/releases/tag/v0.14.0dev-Preview7

Here's the PR where the functionality was added #7895. There are steps shown on how to navigate to the background page. This should pop open the dev tools

cc: @jonathansampson, @bridiver

@kspearrin
Copy link
Contributor

kspearrin commented Mar 27, 2017

@bsclifton The issue is that an unrelated JS error is happening higher up in the background page and therefore is not allowing code further down to execute/initialize (in this case, the context menu code on lines 305). This will cause a lot of functions in bitwarden not to work since they are not initialized as well.

image

Uncaught TypeError: Cannot read property 'addListener' of undefined at background.js:213

Is this API not available in brave? https://developer.chrome.com/extensions/windows#event-onFocusChanged

@bsclifton bsclifton changed the title bitwarden: Autofill from context menu doesn't fill the login credentials bitwarden: chrome.windows.onFocusChanged not supported Mar 27, 2017
@bsclifton
Copy link
Member

@kspearrin thanks for digging in! We indeed do not have support for that... yet. For reference, we currently have two other extensions which need that supported:
https://github.com/brave/browser-laptop/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20chrome.windows.onFocusChanged%20

Since there is additional work needed on our side, I'll hide this for now and create an issue for re-enabling it once this issue is resolved

@bsclifton bsclifton removed this from the 0.14.0 milestone Mar 27, 2017
@kspearrin
Copy link
Contributor

@bsclifton I think this is supported now? #4760

@jonathansampson
Copy link
Collaborator

@kspearrin Indeed it is :)

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

No branches or pull requests

4 participants