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-19471] Update Rust windows crate to 0.61.1 #13974

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

coltonhurst
Copy link
Member

@coltonhurst coltonhurst commented Mar 24, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-19471

📔 Objective

The goals of this PR are:

  • update the windows crate in desktop_native to 0.61.1
  • change no behavior

I wanted to update to 0.60.0, but it seems in the windows crate 0.60.0 release, IAsyncOperation had been removed. I'm not sure why? I could be missing something here.

IAsyncOperation now resides in the windows-future crate. So, this seems to be a newly required crate if we want to keep up with updates.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@coltonhurst coltonhurst self-assigned this Mar 24, 2025
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.67%. Comparing base (51bfbcf) to head (0f2b9dd).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13974      +/-   ##
==========================================
- Coverage   36.67%   36.67%   -0.01%     
==========================================
  Files        3180     3180              
  Lines       92528    92528              
  Branches    16692    16692              
==========================================
- Hits        33939    33932       -7     
- Misses      56034    56041       +7     
  Partials     2555     2555              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

github-actions bot commented Mar 24, 2025

Logo
Checkmarx One – Scan Summary & Details7ffdcd58-07a0-45c2-aab8-0707f51f2f01

Great job, no security vulnerabilities found in this Pull Request

@coltonhurst coltonhurst marked this pull request as ready for review March 24, 2025 22:01
@coltonhurst coltonhurst requested review from a team as code owners March 24, 2025 22:01
@coltonhurst coltonhurst requested a review from addisonbeck March 24, 2025 22:01
@@ -23,6 +23,6 @@ pub fn focus_security_prompt() {
pub(crate) fn set_focus(window: HWND) {
unsafe {
let _ = SetForegroundWindow(window);
let _ = SetFocus(window);
let _ = SetFocus(Some(window));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For qa: We have an existing bug, when called from a browser (chrome/firefox), the focusing does not work on windows. Even if this changes that code, feel free to have QA disregard if they note this behavior as a bug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads up!

@coltonhurst coltonhurst added the needs-qa Marks a PR as requiring QA approval label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-qa Marks a PR as requiring QA approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants