fix https://github.com/brave/brave-browser/issues/25717
Several sidebar options are grouped and located under autocomplete suggestion option.
Always show ful urls option is relocated under Use wide address bar
OS VPN status is not completed when RasDial() returns. It takes
some more time to get completed. VPN Panel should show connected state
when os vpn connection is also completed.
Fixesbrave/brave-browser#23491
It seems uaFullVersion was always leaking but the fullVersionList
started leaking because of the change in
https://github.com/brave/brave-core/pull/14155 where brand was added
to GetUserAgentBrandList function in
components/embedder_support/user_agent_utils.cc which broke the
BraveContentBrowserClient::GetUserAgentMetadata expectation that the
brand list would only contain 2 items (instead of now 3).
This fix adjusts the BraveContentBrowserClient::GetUserAgentMetadata
expectations and removes adding the Brave brand to the lists because
it's already there. Now we just need to zero out 3 last components of
the full versions list and uaFullVersion string.
Also, adds a browser test to check the sizes of the lists and versions
values.
Modify the behavior of the kBraveBlockScreenFingerprinting flag
for scripts in an iframe, to make sure values returned by spoofed APIs
match the results from a script in the top-level document.
New spoofing behaviors:
- window.outer{Width,Height} -> top.inner{Width, Height} + R
- window.screen.{width, height} -> top.inner{Width, Height} + R
- window.screen.avail{Width, Height} -> top.inner{Width, Height} + R
- media query for device-width -> top.screen.width (also farbled)
- media query for device-height -> top.screen.height (also farbled)
- window.open coordinates -> relative to top.screen coordinates,
regardless of whether opened from top-level document or an iframe
(R = random number between 0 and 8, seeded by [session + top-level-domain])
In addition, extend existing browser tests of these protections to iframes.
fix: store tokens as registry within api slice
fix: provide networksList as registry in api slice
chore: store fullTokensList as registries by chain
fix: reuse token logo logic
feat: get user tokens registry in api slice
feat: addUserToken mutation
fix: simplified blockchain token registries
feat: update and remove tokens in api slice
feat: api slice updateUserAssetVisible mutation
chore: remove balance refresh from addUserToken
feat: add selectors for tokens from api slice
fix: reduce arg object size for nft metadata query
feat: memoize token selectors
chore: remove unused type
test: fix mocked store for tests
fix: add try-catches to token registry queries
fix: add chain id to tokens & fix result selectors
fix: add chain id to user assets in registry