[Firefox Extension] Auto-fill doesn't pick up active site on first go

kop48
kop48
Community Member

I've noticed this happening in both Windows and Mac, so I suspect it's something likely wrong with the Firefox extension rather than 1Password. Basically, the first time you hit Cmd/Ctrl+\ to fill in a login, it doesn't recognise that you're on website. Do it again and it fills fine.

Comments

  • Drew_AG
    Drew_AG
    1Password Alumni

    Hi @kop48,

    I'm sorry you're having trouble with the 1Password extension in Firefox! However, I'm not able to reproduce the problem you described. When I open Firefox and use the ⌘+\ (or Ctrl+\ on Windows) keyboard shortcut, it triggers the extension right away, on the first try. Can you give us some more details about your setup? What version of 1Password are you using on Mac and Windows, and what version of the extension is installed in Firefox on each? What version of Firefox are you using? What are the exact steps you take to reproduce the problem? Have you tried other browsers, and if so, does the same problem happen in other browsers?

    The more details you can give us, the better. Thanks!

  • justinrporter
    justinrporter
    Community Member

    I'm having a similar "issue." Basically, I can hit cmd+\ fast enough that the webpage hasn't loaded yet, and when I do this, the extension won't pick up on the website.

    It looks like this:
    1) open a new tab and enter a URL (or hit a bookmark or whatever)
    2) quickly hit cmd+\ (i.e. before the page has loaded) I'm not sure when exactly it starts working (e.g. after DNS lookup, after GET, etc)
    3) observe that 1password doesn't know what website you're at, even though firefox knows where you're going

    this happens also I need to enter my master password. If I hit cmd+\ before the site loads, enter my password (during which time the site loads), it will still behave as though it doesn't recognize the site.

    This is using OSX 10.10.2, Firefox 35.0.1 w/ 1Password extension 4.2.5, 1Password Version 5.1 (510035), using dropbox v3.2.2 for sync.

  • Megan
    Megan
    1Password Alumni

    Hi @justinrporter,

    The webpage will need to be fully loaded before you invoke 1Password, otherwise 1Password is attempting to fill fields that may not exist yet. :)

    You might find it a more efficient workflow to let 1Password open the URL for you in the first place. Here's how I open webpages in 1Password:

    • Use ⌘⌥\ ( Command-Option- \ ) to open 1Password mini
    • Start typing the name of the site I wish to visit
    • When it's highlighted, I hit 'Enter', and 1Password will open the page and fill my details at the appropriate time.

    Please let me know if this helps!

  • justinrporter
    justinrporter
    Community Member

    Hey there @Megan,

    I see your point--generally, the workflow you describe is actually what I do as well. The main issue, I guess, is that we have a single credential used at multiple pages for my university. Google services also suffer from the many pages/one credential set dilemma. In other words, for the workflow you describe to work, I would need a single username/password combo to be associated with multiple websites. Additionally, if I change it in one place, it would be nice to have that change propagate to all the other websites that use these same credentials. Does that make sense?

    It just seems like the easier solution would be to recognize the site, and let me "queue up" the log-in fill until the page is fully loaded, just like it does when using 1Password to go to the site.

    The other issue, which I didn't explain too clearly, was that this still happens even when the site is fully loaded, but I pressed cmd+\ before the site loads. This means that I can't type my master password while the site is loading, I have to wait until the site is loaded to type my master password (or click out of 1password mini and press cmd+\ again).

    Does that make sense? It's a minor irritation, but I do it multiple times a day and has started wearing on be a bit. I obviously have no idea how things work under the hood, but it seems like it might be an easy fix to have the extension check the site after the master password is entered, rather than before...

    Cheers,
    Justin

  • Hi @justinrporter,

    I would need a single username/password combo to be associated with multiple websites.

    You can do that, 1Password supports multiple URLs per Login. Just edit the Login item and enter the second address in the website 2 field and it'll then create a third field if you want to add more.

    That means when you update the password, you only have to do it once, not across multiple logins.

    It just seems like the easier solution would be to recognize the site, and let me "queue up" the log-in fill until the page is fully loaded, just like it does when using 1Password to go to the site.

    When you use 1Password to go to the site, the ID of your Login item is included in the URL that opens in the browser. That specific ID allows 1Password to know which Login you want. An example of one is: https://google.com/login?onepasswordfill=23940580239480234. The last part is what tells the extension (once it is loaded, it can see the last part in the URL) to communicate back to mini to get the data of 23940580239480234 and use it to fill in. That's why this works consistently.

    When you press CMD+\ as the site loads, the extension's scripts never gets the call and cannot queue up because the extension script itself is not even in the state it can start doing things. The extension scripts can only load after the site is done loading, it doesn't run as soon as you open the tab.

  • justinrporter
    justinrporter
    Community Member

    Hi @MikeT,

    Thanks for your quick and detailed response (and the under-the-hood tidbits)!

    I know about the multiple websites per login, and that has worked great for me in situations where websites are funky about the URLs they're using and where I might need to authenticate from multiple base URLs (I have solved a problem with GitHub authentication in various places this way, I think).

    The context I'm encountering this issue is using mini to actually open a new tabs using the same credentials but different URLs. So, let's say I use my credentials to log into "medportal" and the "medical library". Both take the same "single" sign on credentials (more on the scare quotes in a minute). How I'd like this to work:

    1) open a new tab
    2) start typing either "medportal" or "medical library"
    3) I perform some sort of magic allowing the 1Password mini to know which URL associated with the login to use
    4) the firefox extension loads up either the medportal or the library website and logs in.

    The way I have been doing it is clicking my bookmark, waiting for the site to load, and then hitting cmd+\ to fill it out. This is lame, primarily because the website takes a rather frustratingly long time to load.

    What are your thoughts?

    Thanks for the great software--you guys do a great job, and I recommend 1Password to everyone who will listen!

  • Hi @justinrporter,

    If I understand this correctly, the main issue is that when you search for the Logins, selecting it only opens the primary URL but you'd like to be able to use the other addresses stored, right?

    Wouldn't this help:

    1. Open the main 1Password mini via the mini shortcut: Command + Option + \
    2. Search for the Login containing the multiple URLs, don't press enter on it, use the right arrow to open its detail view, use the arrow key to go to the right URL and press enter on that to do the Open and Fill command

    The other option is to use the 1Click Bookmark, drag the Login to the bookmarks bar in Firefox. Right-click on it to edit its properties, edit the address before the ?onepassword to pick the specific URL you want. Edit the bookmark title as well and then save it, that should then let you do what you want without pressing the shortcut.

  • justinrporter
    justinrporter
    Community Member

    @MikeT,

    I opted to go with the 1Click Bookmark--this is awesome! I didn't know you could do this; I'm going to start using this for all of my bookmarks that require logins!

    Cheers,
    Justin

  • Drew_AG
    Drew_AG
    1Password Alumni

    @justinrporter, I'm glad Mike's suggestion was so helpful for you! :)

    If you ever have more questions or need help, just let us know.

This discussion has been closed.