Tusk icon indicating copy to clipboard operation
Tusk copied to clipboard

Pop-up closes immediately on Ubuntu 18.04 and Firefox 59

Open hedgieinsocks opened this issue 7 years ago • 17 comments
trafficstars

This issue is a

  • [x] bug

When I choose my database, I get popup 'Unlocking XXXXXX.kdbx' and that's all. Can't even get to enter my pass. The db is valid.

Fresh Firefox installation, Ubuntu 18.04

hedgieinsocks avatar Apr 28 '18 06:04 hedgieinsocks

Hi there. Thanks for reaching out.

imported local db and key file, clicked tusk icon and got the message 'unlocking...' and then it's over. never got to the menu to even enter the password. fresh firefox and ubuntu 18.04

First of all, I noticed that you left this 1-star review that breaks Mozilla Review Guidelines:

Don't:

  • {...}
  • Post technical issues, support requests, or feature suggestions. Use the available support options for each add-on, if available. You can find them in the "More information" section in the sidebar on the add-on's detail page.
  • {...}

So I think GitHub is a better place to talk about your issue.

In order to find the problem, could you read The Troubleshooting Guide and let me know what happens for each?

Particularly I'm interested in the first 2 bullets.

You can the changing of crypto functions since your bug relates to parsing data in the unencrypted header.

Create a new copy of your database with different crypto functions. Start with AES + AES. Try ChaCha20 + Argon2. If you find a combination that works, open an issue and tell me what combination doesn't work.

Additional things to try:

  • Have you tried this on Chrome?
  • What are your crypto settings? (Are you using AES, ChaCha, how many rounds, etc?)

subdavis avatar Apr 28 '18 13:04 subdavis

Hi ! same issue for me on ubuntu 18.04 & firefox 59 (fresh install for both) work fine with Chrome on same laptop, works fine with other machines on firefox.

I was able to set the database (via gdrive) but when I click on the tusk icon, I get:

  • it shows briefly "Unlocking xxxx.kdbx" and disappear.
  • If I long click, I can see the normal tusk form (when I can write the master password, select how long it shall remember etc...) but then if I click in the field to enter the password, it will close the form.

I will have a look on your suggestion for additionnal tests.

bonjour81 avatar Apr 28 '18 20:04 bonjour81

I quickly created an AES and a Chacha database (using keepass2android). I move the database locally on my ubuntu laptop (no gdrive or whatever). It shows same behavior. but I'm not sure it matters, because I dont even have a chance to enter the password. (I dont use keyfile)

bonjour81 avatar Apr 28 '18 20:04 bonjour81

@bonjour81 can you attach that new empty database to this issue as a file and tell me what the password is? This will really help me find out what's wrong. Thanks.

subdavis avatar Apr 28 '18 22:04 subdavis

Hi, Here are the files. Test1 is AES, test2 is chacha. Pass is "aa" for both.

keepass.zip

bonjour81 avatar Apr 29 '18 06:04 bonjour81

video_screenshot.zip

Hi, I made a video screenshot of how it looks like when I click the tusk icon in firefox toolbar. it's webm file. you should be able to read it with chrome or firefox.

bonjour81 avatar Apr 29 '18 08:04 bonjour81

Hello,

I have the same problem.

jeferro avatar May 04 '18 06:05 jeferro

I'm experiencing the exact behavior shown in bonjour81's video

Ubuntu 18.04 (minimal install) and Firefox 59.0.2 (64-bit) using the shared link to dropbox

Chrome Version 66.0.3359.139 (Official Build) (64-bit) on this same machine works perfectly

kcwms avatar May 05 '18 03:05 kcwms

Update: I'm unable to reproduce this issue on 17.10 with the files that @bonjour81 kindly provided. Going to get set up with 18.04 since that seems to be the common denominator here and report back.

Thanks all for reporting and documenting this bug.

subdavis avatar May 07 '18 00:05 subdavis

I confirm it works perfectly on my other computers: one with ubuntu 16.04 and one with ubuntu 17.10. let me know if I can do anything to help

bonjour81 avatar May 07 '18 07:05 bonjour81

This issue is absolutely incredible. It's due to ibus/ibus#2002 and was found originally by the folks over at mozilla. The popup disappears because when the master password input box is auto-focused, the window is lowered. This is due to a bug in ibus-gtk3 and will require a patch in ibus.

You can read more over at the issue page, but it's being investigated both by the ibus maintainers and the folks at Mozilla. There is no patch for now.

Luckily this was found @ bitwarden/browser#580 but Kyle incorrectly attributed it to a Firefox bug.

I will leave this issue open to track progress, but there's nothing I can do about it for now.

Workarounds:

This bug only affects the Unity and Gnome desktop environments (GTK3-based). KDE and others will work.

subdavis avatar May 07 '18 22:05 subdavis

Great job! At least the issue is now identified and as it affect other stuff and was working before, I guess we have a high chance to see it corrected soon. I can live with Chrome (and tusk 😉) for a while

bonjour81 avatar May 07 '18 22:05 bonjour81

Updated workaround for anyone reading this in the future:

The pop-up can be accessed in a normal tab:

Open moz-extension://d99a4038-67cf-4b07-827d-1ae9e9de59a7/popup.html

You can bookmark this page for quick access.

subdavis avatar May 08 '18 18:05 subdavis

The workaround works fine ! Nice trick while waiting for the correction :+1:

bonjour81 avatar May 09 '18 14:05 bonjour81

Another update: you can permanently disable ibus in firefox by modifying the firefox.desktop file in /usr/share/applications

In the last line under the [Desktop Action new-window] heading, put

Exec=env GTK_IM_MODULE=gtk-im-context-simple firefox -new-window on the Exec line.

subdavis avatar May 28 '18 16:05 subdavis

@subdavis you mean remove the existing line, replace it with that one? Tried that, didn't work. Same for the other fix for opening it in a normal tab. (FF 61.0.1 on Ubuntu 18.04)

Asitis avatar Aug 16 '18 10:08 Asitis

The root issue is also referenced in these two bug reports:

https://github.com/ibus/ibus/issues/2002#issuecomment-396711051

https://bugzilla.mozilla.org/show_bug.cgi?id=1405634

There are .deb files referenced there however they are unsigned and released by a random person, so it could be malware for all I know.

zyphlar avatar Sep 25 '18 19:09 zyphlar