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

Bhavyakala/update #2

Closed
wants to merge 3,529 commits into from
Closed

Bhavyakala/update #2

wants to merge 3,529 commits into from

Conversation

Bhavyakala
Copy link
Collaborator

Resolves

Submitter Checklist:

  • I confirm that no security/privacy review is needed and no other type of reviews are needed, or that I have requested them
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run lint, npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

sangwoo108 and others added 30 commits January 22, 2024 05:52
* Enhance seeker on PIP window

* Hide invalid timestamp
* Hide seeker when mouse is not over the window
* Enable seeking when the MediaSession is controllable
* When seeker is overlapped with bottom resizable area, treat mouse
  events for seeker.
* On left or right key pressed, seek back or forward 10 seconds.
fix: re-prioritize which panel screen is displayed when actions are pending
This removes "Performance" item from the advanced items on the page. We
moved Performance from its own page (and path) to living under the
System settings. Because there's no Route.path for this item the page
throws an exception. The item doesn't make much sense on the content
page since we consider it more of a systemwide setting (with the ability
to add individual sites to always keep active, but that's hardly a
reason to show it on the content page).
…age-loading

Fixes settings content page loading error.
* Add support for Brave Services Key V2

And use for AI chat

* Refactor

* Move logic to brave_service_keys

* Generalize logic such that callers can sign over multiple headers

* Separate digest header generation

* Rename AI_CHAT_SERVICE_KEY -> SERVICE_KEY_AI_CHAT

* Separate SERVICE_KEY_AI_CHAT from signing logic

* * Switch from base::span<> to const std::vector<>&

* Move unused header to .cc file

* Break apart functions and add more unit tests

* Update GetAuthorizationHeaders

* Pass the URL, HTTP method, full list of headers, and a list of headers
  to actually be signed to GetAuthorizationHeaders

* Instead of using std::vector<std::pair<std::string, std::string>> for
  the list of headers, instead use base::flat_map<std::string,
  std::string> since that matches the headers passed to the
  APIRequestHelper

* Enforce header ordering specified by headers_to_sign

* Generate (request-target) header if supplied, and add test from spec

* Pass url and  method to CreateSignatureString

This way, (request-target) can be generated inside there and thus be
unit tested.

Adjust unit tests.

* Add VLOG(1) when header to sign does not exist

Also DCHECK(false) for good measure.

* Add SERVICE_KEY_AI_CHAT and KEY_ID to config.js

This way they can be sourced from .env.

* Update tests

* Link to specific section test vectors are from

* Remove the "(created)" header from headers_to_sign (it's not included
  in the test vector)

* Use //crypto instad of //crypto:crypto in components/brave_service_keys/BUILD.gn

* Use constexpr for http method constant

* Don't use a reference to the digest header

* Use NOTREACHED_NORETURN() instead of DCHECK and VLOG(1)

* Use CHECK for url in GetAuthorizationHeader

Brave Server URLs should always be defined

* Uncomment base/flat_map.h include in unittest

* Add comment explaining KEY_ID

* Add comments explaining functions in service_key_utils

* Add is_official_build check for service_key_ai_chat

* Update header constants

* Use existing constants for kDigest and kAuthorization

* Change kRequestTarget to kRequestTargetHeader

* Rename service_key_utils.* -> brave_service_key_utils.*

* nit: use base::StrCat and .append()

* Make headers a const& in  CreateSignatureString

* Rename KEY_ID -> BRAVE_SERVICES_KEY_ID

* Fix formatting of string

* Rename SERVICE_KEY_AI_CHAT-> SERVICE_KEY_AICHAT

* Apply Jenkinsfile patch

* Revert "Apply Jenkinsfile patch"

This reverts commit 513bfda.
Fixes asserts on Brave News via accessing current Tab from multiple threads
…21685)

* Upgrade from Chromium 121.0.6167.75 to Chromium 121.0.6167.85

* Update pins list timestamp

---------

Co-authored-by: brave-builds <[email protected]>
Fixed crash when account.brav.com is loaded

fix brave/brave-browser#35395

When VPN feature flag is disabled, SkusJSHandler should not try to
bind to vpn service handler as BraveVpnService is not instantiated.
Also changed to make sure that VPN service factory instance should be created always.
…-modal

feat(wallet): Balance Details Modal
…orage-filters

fix(wallet): Bitcoin Local Storage Filters
supermassive and others added 20 commits February 2, 2024 16:09
* fix: portfolio balance cache

* fix: invalidate token balances when accounts are added or removed

* fix: invalidate cached token balances when networks are added

* fix: invalidate token balances when user tokens list updates

* fix: invalidate cached token balances when transactions are confirmed

* fix: invalidate token balances when wallet is imported or restored

* fix: cleanup pre-submit warning
* Include synced history entries into P3A
create order from receipt api in skus sdk
Amount should be a number not hex string
…-linking-error-text

[Rewards] Updates generic linking error text.
…s-35743

Update Omaha dependencies in brave://credits
…name

Add default browser P3A metric name to whitelist
udaybansal19 pushed a commit that referenced this pull request Jul 16, 2024
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.