gerrit: fix auth cookies which include subdomains

The recommended way of getting .gitcookies now is to go to
https://googlesource.com/new-password, which sets a subdomain cookie
with domain `.googlesource.com`.

Fix gitcookie parsing to accommodate for this.

BUG=b:358251450
TEST=npm run unit-test-parallel

Change-Id: I6a6a2100f373255ba4261733c53f355059c78527
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/ide/+/5772491
Reviewed-by: Grace Cham <hscham@chromium.org>
Tested-by: Michael Cui <mlcui@google.com>
Commit-Queue: Michael Cui <mlcui@google.com>
(cherry picked from commit 13602f2ea355ea9f017701c41354266a77d78b88)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/ide/+/5772495
Auto-Submit: Grace Cham <hscham@chromium.org>
Reviewed-by: Keigo Oka <oka@chromium.org>
Commit-Queue: Keigo Oka <oka@chromium.org>
Tested-by: Grace Cham <hscham@chromium.org>
2 files changed
tree: b59d0fd66ec3f807ca7e4ffb41301cd6564d935a
  1. chromiumide/
  2. docs/
  3. .gitignore
  4. .node_cipd_ensure
  5. .presubmitignore
  6. DIR_METADATA
  7. docker_tests_execute.sh
  8. Dockerfile
  9. OWNERS
  10. PRESUBMIT.cfg
  11. PRESUBMIT.py
  12. pyproject.toml
  13. README.md
  14. run_presubmit.sh
  15. unblocked_terms.txt
README.md

IDE Tooling

IDE tools for Chrome/ChromeOS developers.

Main Components

  • chromiumide: VSCode extension implementation.
  • scripts (in ../../chromite/ide_tooling): Helper Python scripts the extension can make use of when the user has chromiumos checkout.