pfn / passifox

Extensions to allow Chrome and Firefox (4.0+) to auto form-fill passwords from KeePass (requires KeePassHttp)
GNU General Public License v3.0
907 stars 186 forks source link

WebExtension (Firefox) compatibility for chromeIPass #595

Closed projectgus closed 2 years ago

projectgus commented 7 years ago

As discussed in #563. Allows Electrolysis (multi-process windows) feature to function in recent Firefox, and also provides a path for support once XUL-based addons are disabled in Firefox.

Support is not quite as tightly integrated as it was with passifox (ie there's no integration to Firefox's own "Fill Password" functions any more), but it seems very usable all the same.

Still a work in progress:

Also, I don't know if this would be a good time to change the name? Or even if you're interested in adding this support at all - given it's a fairly major change to what seems like a stable Chrome extension.

varjolintu commented 6 years ago

I made a PR to projectgus/passifox#1 which solves an issue with HTTP auth with Chromium based browsers. It's not pretty but works as a workaround until there's a better solution.

varjolintu commented 6 years ago

@smorks Here's one solution to the problem with forms inside hidden divs. Simple but works. Tested with Firefox 55 and Chromium 61. If you know any better solution than setInterval, please let me know.

projectgus commented 6 years ago

Hmm. How about using MutationObserver to detect DOM changes? https://stackoverflow.com/a/11546242

May still need a timer to rate limit and avoid a notable performance impact (ie reset a ~100ms timer each time the DOM changes, so 100ms after the last DOM change event the extension scans for login boxes.)

EDIT: Actually, given you can filter the events you care about it may be possible to filter so you only get an event if a password field changes. I don't know if that would include the parent div's visibility changing, though.

BTW, @varjolintu, sorry I haven't looked at your other PR content yet. Plan to do so this weekend.

varjolintu commented 6 years ago

@projectgus I already closed the pull request. @smorks did a better job implementing the same fix :)

hackel commented 6 years ago

The recent release of Firefox 57.0b1 makes the WebExtension-compatible version of Passifox all that much more urgent! Thanks for your continued work on this.

Edit: Just signed and installed it myself and it is working great!

aurelg commented 6 years ago

@hackel For those of us not familiar with signing/installing manually, would you mind providing a short description of the required steps, or at least a link?

craftycorvid commented 6 years ago

Track this project for a WebExtension fork of passifox/chromeipass: https://github.com/smorks/keepasshttp-connector

craftycorvid commented 6 years ago

And now it's on AMO: https://addons.mozilla.org/en-US/firefox/addon/keepasshttp-connector/

z3ntu commented 6 years ago

Will passifox (on AMO) be updated to webextension in the future? Or will this "kepasshttp-connector" be the version to use on 57+?

RealOrangeOne commented 6 years ago

Firefox 57 has now been released, are there any plans to get this shipped soon? :shipit:

dakra commented 6 years ago

@RealOrangeOne Loot at the comment above from @Ivan0xFF. The firefox compatible fork is already on AMO: https://addons.mozilla.org/en-US/firefox/addon/keepasshttp-connector/

I'm using it every day and works great :)

Ketrel commented 6 years ago

Does it work with 52 ESR?

On November 14, 2017 7:17:05 PM EST, Daniel Kraus notifications@github.com wrote:

@RealOrangeOne Loot at the comment above from @Ivan0xFF. The firefox compatible fork is already on AMO: https://addons.mozilla.org/en-US/firefox/addon/keepasshttp-connector/

I'm using it every day and works great :)

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/pfn/passifox/pull/595#issuecomment-344444250

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

RealOrangeOne commented 6 years ago

The fork works, but its the chrome version, which doesnt integrate nicely with the builtin password manager. Really hope that feature stays, assuming the WebExtension API exposes this

rugk commented 6 years ago

No that feature does not work. It is not yet exposed by the WebExtensions API.

arpost1 commented 6 years ago

Is the KeePassHTTP Connector add-on safe for users to use? I'm new to KeePass and am hoping that some kind of fix for Firefox Quantum integration that is secure is available.

varjolintu commented 6 years ago

@esat7 It is safe.