Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-3152] Add autofill support for cromite #2640

Merged
merged 2 commits into from
Dec 4, 2023
Merged

[PM-3152] Add autofill support for cromite #2640

merged 2 commits into from
Dec 4, 2023

Conversation

Bahasnyldz
Copy link
Mannequin

@Bahasnyldz Bahasnyldz mannequin commented Jul 22, 2023

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

Bitwarden autofill doesn't work in cromite
Cromite is fork of bromite aims to privacy and security.

Code changes

  • AutofillHelpers.cs: Added "org.cromite.cromite",
  • AccessibilityHelpers.cs: Added new Browser("org.cromite.cromite", "url_bar"),
  • autofillservice.xml Added <compatibility-package android:name="org.cromite.cromite" android:maxLongVersionCode="10000000000"/>

Screenshots

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

@CLAassistant
Copy link
Mannequin

CLAassistant mannequin commented Jul 22, 2023

CLA assistant check
All committers have signed the CLA.

@bitwarden-bot
Copy link
Mannequin

bitwarden-bot mannequin commented Jul 22, 2023

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PM-3152

@bitwarden-bot bitwarden-bot mannequin changed the title Add autofill support for cromite [PM-3152] Add autofill support for cromite Jul 22, 2023
@bitwarden-bot bitwarden-bot mannequin added the community-pr label Jul 22, 2023
@djsmith85 djsmith85 linked an issue Jul 22, 2023 that may be closed by this pull request
1 task
@srappan
Copy link
Mannequin

srappan mannequin commented Aug 17, 2023

Hiya has their been any movement to merge this?

Thanks in advance

@djsmith85 djsmith85 linked an issue Aug 20, 2023 that may be closed by this pull request
1 task
@unoukujou
Copy link
Mannequin

unoukujou mannequin commented Aug 23, 2023

Hello. Why is it taking over a month to fix such a simple thing? Not to be pushy but come on guys, it has been a pain to use bitwarden without this feature and I have to resort to insecure copy & pasting. I mean, for such a small simple thing, just add it and let's move on. Thanks

@unoukujou
Copy link
Mannequin

unoukujou mannequin commented Aug 25, 2023

@djsmith85 what does it mean:

Merging is blocked
Merging can be performed automatically with 1 approving review.

Are you able to approve it? If so, thanks! I'm going crazy without being able to use autofill.

@gammaray05
Copy link
Mannequin

gammaray05 mannequin commented Aug 26, 2023

Yes please, there's an entire community of privacy oriented users that waits to use Cromite just because bitwarden can't be used.

@uazo
Copy link
Mannequin

uazo mannequin commented Aug 26, 2023

in any case, i don't think these changes are the correct ones.
cromite (like bromite, that patch I made) natively supports android autofill, so I think it goes in the TrustedBrowsers list rather than CompatBrowsers.
Obviously it has to be checked.

@varaki
Copy link
Mannequin

varaki mannequin commented Aug 26, 2023

@djsmith85 what does it mean:

Merging is blocked Merging can be performed automatically with 1 approving review.

Are you able to approve it? If so, thanks! I'm going crazy without being able to use autofill.

Until it's finally fixed, you can resort to manually searching your vault using the magnifying glass on the top right corner of the page that shows the "There are no items in your vault for org.cromite.cromite" message, then tap on the correct search result, then select Auto-fill. It's a bit cumbersome, but at least you can avoid copypasting.

@unoukujou
Copy link
Mannequin

unoukujou mannequin commented Aug 26, 2023

@djsmith85 what does it mean:
Merging is blocked Merging can be performed automatically with 1 approving review.
Are you able to approve it? If so, thanks! I'm going crazy without being able to use autofill.

Until it's finally fixed, you can resort to manually searching your vault using the magnifying glass on the top right corner of the page that shows the "There are no items in your vault for org.cromite.cromite" message, then tap on the correct search result, then select Auto-fill. It's a bit cumbersome, but at least you can avoid copypasting.

Thanks, I'll try that way. But it's also a bigger problem to save new logins. Bitwarden doesn't offer to save the new logins and I have to enter everything manually.

@varaki
Copy link
Mannequin

varaki mannequin commented Sep 22, 2023

Any updates?

@chris122380
Copy link
Mannequin

chris122380 mannequin commented Sep 25, 2023

Doesn't work on Bitwarden 2023.9.1

@unoukujou
Copy link
Mannequin

unoukujou mannequin commented Sep 25, 2023

Doesn't work on Bitwarden 2023.9.1

Still no update since 4 months.

Also Mulch browser... Same thing, 8 months waiting. Pull request has been done.

#2427
#2640
#2709
#2639

@Para-lyzed
Copy link
Mannequin

Para-lyzed mannequin commented Sep 25, 2023

Since the Checkmarx check is failing, it may be necessary to recheck this PR before it is reviewed. After the Checkmarx check is successful, can you request a review @Bahasnyldz ?

Please disregard, it seems this is currently being reviewed and no changes are necessary.

@djsmith85
Copy link
Contributor

Hey everyone, currently no action is needed by @Bahasnyldz. This is in review by product management.

@varaki
Copy link
Mannequin

varaki mannequin commented Sep 26, 2023

Hey everyone, currently no action is needed by @Bahasnyldz. This is in review by product management.

Cool, I just really hope it won't take another few months 🙂

@fedemkr fedemkr self-requested a review September 27, 2023 12:46
@fedemkr fedemkr self-assigned this Sep 27, 2023
@fedemkr
Copy link
Member

fedemkr commented Sep 27, 2023

HI everyone, thank you for this contribution 🎉 . This has been approved and is ready for QA to test.

@solomonrajan
Copy link
Mannequin

solomonrajan mannequin commented Oct 18, 2023

Any update regarding autofill, still not working in browser.

@Para-lyzed
Copy link
Mannequin

Para-lyzed mannequin commented Oct 24, 2023

This has been approved and is ready for QA to test.

@fedemkr Any update on when this will be pushed to QA? It's been a month since approval and this pull request is only 5 lines that merely specify the package name of a browser

@fedemkr
Copy link
Member

fedemkr commented Oct 24, 2023

Hi everyone, this is currently being looked at by the QA team.

@1RandomDev
Copy link
Mannequin

1RandomDev mannequin commented Nov 27, 2023

By now I just cloned the repo and built my own version of the app with the changes applied. It's ridiculous how long it takes a company as big as Bitwarden to merge 3 lines of code adding support for a browser.

@unoukujou
Copy link
Mannequin

unoukujou mannequin commented Nov 27, 2023

By now I just cloned the repo and built my own version of the app with the changes applied. It's ridiculous how long it takes a company as big as Bitwarden to merge 3 lines of code adding support for a browser.

Plus the fact that this is also making bitwarden users less secure when we have to use copy and paste. It should be more priority especially when it's something so simple. Anyway, they're having a meeting to discuss it so that's good I guess? The sad part is that mainstream browsers that don't respect user privacy like Chrome will not have problems like this. Oh well...

@larena1
Copy link
Mannequin

larena1 mannequin commented Nov 27, 2023

By now I just cloned the repo and built my own version of the app with the changes applied. It's ridiculous how long it takes a company as big as Bitwarden to merge 3 lines of code adding support for a browser.

It's always been like this. They don't react on issues, they promise to look into stuff but in reality they don't, it's just sad.

Horrible and inexperienced management. It's not even clear to me what all the people are constantly working on when there's so little to see in the end.

@varaki
Copy link
Mannequin

varaki mannequin commented Nov 28, 2023

Hey everyone, currently no action is needed by @Bahasnyldz. This is in review by product management.

Cool, I just really hope it won't take another few months 🙂

Aaand it did... And still nothing, just "reviews" and "discussions" repeatedly over a few lines of code.
Not good.

@differsthecat
Copy link
Member

Hi everyone, thank you again for your patience on this. I wanted to give a quick update that we expect QA to complete their testing next week and we will update with any findings or merge if it is good to go!

@foegra
Copy link
Mannequin

foegra mannequin commented Dec 1, 2023

Hi everyone, thank you again for your patience on this. I wanted to give a quick update that we expect QA to complete their testing next week and we will update with any findings or merge if it is good to go!

I really hope - You guys can find a way to add browser support quicker in the future!

@unoukujou
Copy link
Mannequin

unoukujou mannequin commented Dec 1, 2023

@differsthecat Thanks and please don't forget about Mulch ( #2427 ). That one has been an even longer wait. Almost a year now. 😞

@larena1
Copy link
Mannequin

larena1 mannequin commented Dec 1, 2023

Almost a year now. 😞

Please give QA some time. There has been a regularly long delay but they'll probably pick it up not very soon.

@unoukujou
Copy link
Mannequin

unoukujou mannequin commented Dec 1, 2023

Almost a year now. 😞

Please give QA some time. There has been a regularly long delay but they'll probably pick it up not very soon.

Ummm yeah... I think "some time" has been given, but thanks. 🙄

@fedemkr fedemkr removed the needs-qa label Dec 4, 2023
@fedemkr
Copy link
Member

fedemkr commented Dec 4, 2023

Hi everyone, QA has approved this so we move forward on merging this 🎉 . Thank you all for your patience and the contribution!

@fedemkr fedemkr merged commit 827fbbc into master Dec 4, 2023
@larena1
Copy link
Mannequin

larena1 mannequin commented Dec 4, 2023

@fedemkr Thanks for sharing. It's not even been 5 months since this PR has been created so that's very good.

@rywz
Copy link
Mannequin

rywz mannequin commented Dec 6, 2023

It's still the same for me, checks for org.cromite.cromite instead of the actual URL.

*using the 2023.12.0 version

@larena1
Copy link
Mannequin

larena1 mannequin commented Dec 6, 2023

It's still the same for me, checks for org.cromite.cromite instead of the actual URL.

*using the 2023.12.0 version

It will be in the next version in 1 or 2 months maybe. Please give it some more time. It hasn't even been 5 months yet.

@rywz
Copy link
Mannequin

rywz mannequin commented Dec 6, 2023

It's still the same for me, checks for org.cromite.cromite instead of the actual URL.

*using the 2023.12.0 version

It will be in the next version in 1 or 2 months maybe. Please give it some more time. It hasn't even been 5 months yet.

ohh okay.. but just wondering: why not now? I mean it's merged already.

@larena1
Copy link
Mannequin

larena1 mannequin commented Dec 6, 2023

It's still the same for me, checks for org.cromite.cromite instead of the actual URL.
*using the 2023.12.0 version

It will be in the next version in 1 or 2 months maybe. Please give it some more time. It hasn't even been 5 months yet.

ohh okay.. but just wondering: why not now? I mean it's merged already.

Because at Bitwarden things are done very thoroughly and therefore take a long time.

https://github.com/bitwarden/mobile/commits/v2023.12.0

Version 2023.12.0 does not include the Cromite commit.

@unoukujou
Copy link
Mannequin

unoukujou mannequin commented Dec 6, 2023

In the meantime though, users are less secure using copy&paste. Android keeps warning me about apps accessing my clipboard. Something so simple and straightforward as this should really be updated quickly. Especially since having it makes users more secure and gives a much better/easier user experience.

@AlaisterLeung
Copy link
Mannequin

AlaisterLeung mannequin commented Dec 11, 2023

Version 2023.12.1 includes the Cromite commit.
We can download the build from GitHub Actions:
https://github.com/bitwarden/mobile/actions/runs/7118767114

@netizeni
Copy link
Mannequin

netizeni mannequin commented Dec 28, 2023

@AlaisterLeung is it possible to download .apk file from there somewhere? I was looking, but couldn't find it.

@AlaisterLeung
Copy link
Mannequin

AlaisterLeung mannequin commented Dec 29, 2023

@AlaisterLeung is it possible to download .apk file from there somewhere? I was looking, but couldn't find it.

@netizeni On that page, scroll down to Artifacts and download com.x8bit.bitwarden.apk

@larena1
Copy link
Mannequin

larena1 mannequin commented Dec 29, 2023

@uazo this doesn't really work as expected. When logging in to Google, it'll allow to autofill the username on the first screen but not the password on the next screen - Bitwarden won't even show above the keyboard when on the password screen. In Chrome and also in Firefox, Bitwarden does work on both screens.

Could this be due to you having implemented native autofill in Cromite and not just accessibility?

@netizeni
Copy link
Mannequin

netizeni mannequin commented Dec 29, 2023

@netizeni On that page, scroll down to Artifacts and download com.x8bit.bitwarden.apk

Thank you! I just now notices you have to be logged in to download, I tried without login and then logged in to ask, lol.

@uazo
Copy link
Mannequin

uazo mannequin commented Jan 3, 2024

Could this be due to you having implemented native autofill in Cromite and not just accessibility?

theoretically, native autofill support does not replace compatibility mode, so I don't think it's because of that.
perhaps it is related to the "Fill passwords on account selection" chrome://flags/#fill-on-account-select flag being active by default, which forces the user to click on the element to initiate autofill

@Parsnip
Copy link
Mannequin

Parsnip mannequin commented Jan 3, 2024

Could this be due to you having implemented native autofill in Cromite and not just accessibility?

theoretically, native autofill support does not replace compatibility mode, so I don't think it's because of that. perhaps it is related to the "Fill passwords on account selection" chrome://flags/#fill-on-account-select flag being active by default, which forces the user to click on the element to initiate autofill

As far as I can see toggling that flag has no effect. For what it's worth as far as I can remember this might have been similarly broken in bromite as well.

@larena1
Copy link
Mannequin

larena1 mannequin commented Jan 3, 2024

@uazo do you think you can fix that maybe? It appears to happen on sites where there is just a password field like with two step login procedures where you enter the username first and then the password in the next step.

@uazo
Copy link
Mannequin

uazo mannequin commented Jan 3, 2024

well, I don't know, if it's a bug then I introduced it, so I guess so.
but I need the context in a new issue in my repo, please.

@Fxzzi
Copy link
Mannequin

Fxzzi mannequin commented Jan 12, 2024

Cromite fill is available in 2024.1.0 🎉🎉

@adriy-be
Copy link
Mannequin

adriy-be mannequin commented Feb 8, 2024

Hi everyone, thank you again for your patience on this. I wanted to give a quick update that we expect QA to complete their testing next week and we will update with any findings or merge if it is good to go!

I really hope - You guys can find a way to add browser support quicker in the future!

Totally agree !

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

Successfully merging this pull request may close these issues.

Autofill not working correctly on Cromite Whitelist Cromite browser