Commit Graph
86 Commits
Author SHA1 Message Date
Arthur Edelstein 2f98d617d8 Round off high-resolution timers (#15309)
Includes rounding of DOMHighResTimeStamps and other
timers with resolution higher than 1 ms.

Behind "BraveRoundTimeStamps" feature flag, enabled by default.

Also: disable 2 linux browser tests broken by timer rounding
2022-10-20 15:15:11 -07:00
zenparsing 513b048e73 Remove the Brave Rewards extension 2022-10-19 16:07:33 -04:00
Serg 93102d6a1a Migrates bg playback preference to feature on Android 2022-10-05 12:18:36 -04:00
Jay Harris 5648adec76 Brave News Feed Migrator (#14565) 2022-09-28 21:52:00 +02:00
Arthur Edelstein a678f2ffe1 Enable HTTPS-Only Mode on Private Windows with Tor (#15179)
Create a feature flag, BraveTorWindowsHttpsOnly, that
enables HTTPS-Only Mode for Private Windows with Tor.
Enable that flag by default.

Do not enforce HTTPS-Only for .onion sites: these
are already secure when using http://.

(Users can check "Always use secure connections" to enable
HTTPS-Only Mode for other windows if they wish.)
2022-09-23 20:47:36 -07:00
Deep fb08838bee Remove logs
Resolve lint warnings
2022-09-21 17:58:41 -04:00
Deep 76a78b0c66 Add check for feature 2022-09-21 17:58:41 -04:00
Sangwoo Ko e9c04aa282 [Experiment] Vertical tabs (#13816)
* [Experiment] Vertical tabs

This new feature is at experimental stage for now. So it's hidden
behind flag('Vertical tabs')

Impemented:
* Expand and collapse via a button on top of tabs.
* Vertical scroll area for tabs
* TabCards
* Tab reordering via drag-and-drop
* Tab detaching and attaching via drag-and-drop
* Shape customization

TBD:
* Switching tabs layout direction on runtime
  - need to plumb pref to many UI components.
* Title area in frame
  - Show title or move up toolbar
  - Moving up toolbar can take some time.
* Layout animation
2022-09-17 21:15:05 +09:00
Jay Harris ee2bbf8564 Brave News Subscribe Button Fixes (#15100) 2022-09-16 08:45:26 +12:00
Mikhail b09597c519 Remove google translate install prompt (#15093)
* Remove Google Extension installation bubble and icon

* update browser_tests

* remove go-translate from flags

* Remove enable_brave_translate_extension flag

* Fix brave_unit_tests

* update patches

* git cl format

* Fix format issues
2022-09-15 21:37:29 +07:00
Arthur Edelstein e63185989b Bug 23170: anti-fingerprinting: hide screen size and window position (fixes crash on Android) (#14900)
* Bug 23170: anti-fingerprinting: hide screen size and window position

Disabled by default behind the kBraveBlockScreenFingerprinting flag.

When farbling is active, modify API behavior in 4 categories:

1. window.outer{Width,Height}, window.screen{X,Y},
   window.screen.{width,height,avail{Width,Height,Left,Top}}

R = random number between 0 and 8, seeded by session+domain

window.screen{X,Y} -> R
window.outer{Width,Height} -> window.inner{Width, Height} + R
window.screen.{width, height} -> window.inner{Width, Height} + R
window.screen.avail{Width, Height} -> window.inner{Width, Height} + R
window.screen.avail{Top, Left} -> R
window.screen.isExtended -> false

2. {mouse,drag,pointer,touch}Event.screen{X,Y}

Rewrite Event screen coordinates such that
event.screen{X,Y} -> devicePixelRatio * event.client{X,Y} + R

3. device-{width,height} in media queries

When farbling is enabled, media query for device-width
matches the same value as window.screen.width (also farbled).
Same for device-height.

4: make window.open play nice with spoofed screen coords

When a web page opens a child window, the position of the child window
should be relative to the spoofed screen coordinates, not relative
to the real screen coordinates.

Also:

* Factor out brave_session_cache.{cc,h} to speed up incremental builds.
* Add browser tests of these protections.
* Suppress upstream browser tests that expected isExtended to be true sometimes.
* Set the feature flag to be disabled by default. (We will be rolling
  out enabled over griffin.)
2022-09-01 17:18:37 -07:00
Aleksey Khoroshilov a3b0d1d9be Extend logic to other types, handle more permissive case as is, add flag. 2022-08-30 12:43:51 +07:00
Max 488026f7bb Merge pull request #14155 from brave/maxk-allow-certain-client-hints
Allow certain client hints in request headers.
2022-08-19 18:53:45 -04:00
mkarolin b6cdc2ddd7 Puts client hints behind a feature flag. 2022-08-18 14:33:54 -04:00
Serg 226f0e7df8 Revet of 1bbccc54f6 commit that causes renderer crashes on Android 2022-08-18 11:25:31 -04:00
Arthur Edelstein 1bbccc54f6 Bug 23170: anti-fingerprinting: hide screen size and window position
Disabled by default behind the kBraveBlockScreenFingerprinting flag.

When farbling is active, modify API behavior in 4 categories:

1. window.outer{Width,Height}, window.screen{X,Y},
   window.screen.{width,height,avail{Width,Height,Left,Top}}

R = random number between 0 and 8, seeded by session+domain

window.screen{X,Y} -> R
window.outer{Width,Height} -> window.inner{Width, Height} + R
window.screen.{width, height} -> window.inner{Width, Height} + R
window.screen.avail{Width, Height} -> window.inner{Width, Height} + R
window.screen.avail{Top, Left} -> R
window.screen.isExtended -> false

2. {mouse,drag,pointer,touch}Event.screen{X,Y}

Rewrite Event screen coordinates such that
event.screen{X,Y} -> devicePixelRatio * event.client{X,Y} + R

3. device-{width,height} in media queries

When farbling is enabled, media query for device-width
matches the same value as window.screen.width (also farbled).
Same for device-height.

4: make window.open play nice with spoofed screen coords

When a web page opens a child window, the position of the child window
should be relative to the spoofed screen coordinates, not relative
to the real screen coordinates.

Also:

* Factor out brave_session_cache.{cc,h} to speed up incremental builds.
* Add browser tests of these protections.
* Suppress upstream browser tests that expected isExtended to be true sometimes.
* Set the feature flag to be disabled by default. (We will be rolling
  out enabled over griffin.)
2022-08-15 23:04:42 +00:00
Jay Harris d7a3ce5561 [Experimental] Add Brave News subscribe button (#14077) 2022-08-08 14:06:22 +12:00
zenparsing 26eb2c6988 Add bubble for enabling cookie consent blocking 2022-08-04 13:13:40 -04:00
Simon Hong 4b70c7d6cc Turned on playlist buildflag
fix https://github.com/brave/brave-browser/issues/24205

Querying channel info caused crash at startup because channel info
is not set on Windows Release build for unittest.
Do filtering playlist feature via unexpire_flags.cc instead.
2022-07-25 08:34:37 +09:00
Sangwoo Ko b46eac6c84 Merge pull request #14198 from brave/sko/pl-app
Wire playlist webui
2022-07-19 16:31:31 +09:00
sangwoo.ko 60f912d93d Wire playlist webui 2022-07-19 15:01:15 +09:00
Mikhail 43c96d56c0 Android: Disable chrome Translate feature by default (#14180)
* Android: Disable chrome Translate feature by default

* revert more changes

* Fix formatting
2022-07-15 22:26:46 +07:00
Kevin Smith fa4eb83684 Merge pull request #13719 from brave/ksmith-rewards-panel-webui
Remove dependency on the Rewards extension
2022-07-08 10:49:02 -04:00
Mikhail 05c4d2f18b Android translate (#14047)
* Enable translate for Android

* Make kOfferTranslateEnabled unsyncable

* Update chromium_src/components/translate/core/browser/translate_manager.cc
2022-07-08 17:58:15 +07:00
zenparsing 964b84c8d9 Remove dependency on the Rewards extension 2022-07-07 10:14:45 -04:00
Anton Lazarev b622d706dc Merge pull request #14056 from brave/cosmetic-filter-child-frames-feature
Add feature flag for cosmetic filtering in child frames
2022-07-06 14:33:59 -04:00
Anton Lazarev d5f82aca82 add feature flag for cosmetic filtering in child frames 2022-07-05 16:38:15 -07:00
lmintoandAleksey Seren c8fa5b470b Implement generic schema for BraveFederated data stores (#13064)
Co-authored-by: Aleksey Seren <aseren@brave.com>
2022-07-05 21:44:45 +01:00
Pavel Beloborodov 65d802b6ef Added 'Show original page' link into distilled site. (#13814)
* Added 'Show original page' in speedreader distilled page.
* Exec js only on distilled pages.
2022-06-30 16:17:42 +07:00
Pete Miller 395d422b66 Remove shields UI from brave extension
The display of it has been disabled by default for some time, but the background script has still been running in case the flag was re-enabled
2022-06-27 20:30:10 -07:00
Cepera 2d8cd6039b SKU SDK should be able to handle more than one environment (#13852) 2022-06-26 21:38:57 +03:00
Serg be835d39b0 Adds Dapps support flag 2022-06-06 10:03:51 -04:00
Terry Mancey 32633c631b Refactor Brave Ads AdNotification to NotificationAd 2022-06-02 13:37:20 +01:00
Mikhail 6387cfd7d4 Move a part of //brave/common to //brave/components (#13456)
* Move a part of //brave/common to //brave/components

* Fix lint issues

* Remove brave_features.*

* Fix android build

* Remove dead includes

* fix compilation

* Fix review issues

* Fix android gn check

* Revert patch changes

* Fix deps duplication & copyright

* Fix some DEPS/BUILD.gn contradictions

* gn format

* move sources.gni

* Fix nits

* Fix after rebase
2022-05-27 16:44:18 +07:00
Anton Paymyshev d1446fbb0e Retire DoH for UD and ENS (#13354)
* Retire DoH
2022-05-20 20:47:49 +07:00
Pete Miller 8cd7db97be Brave News: peek on Desktop NTP 2022-05-09 11:11:54 -07:00
Jocelyn Liu 5fd587b7a4 Add a feature flag to disable Solana Provider by default 2022-04-21 09:50:23 -07:00
Jocelyn Liu b6c916a6fc Enable Solana feature flag by default on Desktop 2022-04-18 20:40:21 -07:00
Mark Pilgrimandbridiver f6dddf29d8 Implement "reduce language fingerprinting" (#12234)
* Implement navigator.languages farbling

* add support for HTTP headers

* add support for farbling HTTP header

* add reduce language preference toggle in settings

* Implement font whitelist

* add sublabel to reduce-lang preference toggle

* rebase patches

* use anonymous namespace

* also add our AllowFontFamily method to TestFontSelector to avoid compile errors

* farble all non-whitelisted fonts without enumeration

* rename to MakePseudoRandomGeneratorForURL

* move session token management to singleton service

* move font whitelist to .cc file

* move prefs constants and code around

* pref names browsertest fix

* reduce patches (really)

* add web worker and service worker tests

* get URL differently, move DCHECK

* propogate reduce-language pref to renderers

* consolidate feature detection, add some comments

* lint

* gn_check

* gn_check

* refactor default locale lookup

* lint

* default session key to 12345 if command line switch is missing
https://github.com/brave/brave-browser/issues/22021

* change 12345 -> 23456 so it doesn’t match the test default

Co-authored-by: bridiver <github@brianjohnson.cc>
2022-03-31 13:41:44 -04:00
Emerick Rogul 95faf4c35c Fix tab audio muting button 2022-03-24 07:21:07 -04:00
Mario Sanchez Prada f4c7bdda37 Migrate define(OS_*) to using BUILDFLAG(IS_*) instead
See the following PSA in the chromium-dev mailing list for more
information and links to the original discussion, the design
document and the metabug:

https://groups.google.com/a/chromium.org/g/chromium-dev/c/EIuQCy9sVfw/m/Net3FPz6AwAJ

Resolves https://github.com/brave/brave-browser/issues/21608
2022-03-22 10:57:30 +01:00
Pete Miller e4ae8a49b7 Merge pull request #12586 from brave/shields-v1-flag
Brave Shields: enable v2 UI refresh by default and introduce flag for legacy v1
2022-03-16 23:00:59 -07:00
Shivan Kaul Sahibandbridiver 9f8247fdbd Redirect AMP pages to their canonical links (#11750)
* De-amp feature
* Add settings UI for de_amp feature
* Add tests 
* Refactor Speedreader + DeAmp throttle/loader
* Restrict De-AMPing to main frame loads
* Pref default on
* Remove Android as test target
* Off by default on Android

Co-authored-by: bridiver <github@brianjohnson.cc>
2022-03-15 20:50:00 -04:00
Pete Miller f334f24261 Brave Shields: introduce flag for legacy extension-based panel (shields v1) 2022-03-11 20:41:12 -08:00
Anthony Tseng 6154a865f0 Revert "Revert "feat(wallet): Wired up Create Solana Account in UI""
This reverts commit 5600882ee8.
2022-02-15 18:36:47 -08:00
Anthony Tseng 5600882ee8 Revert "feat(wallet): Wired up Create Solana Account in UI" 2022-02-15 18:31:33 -08:00
Douglas Daniel a75fb9b273 Merge pull request #12236 from brave/add-solana-account-in-ui
feat(wallet): Wired up Create Solana Account in UI
2022-02-15 17:10:44 -07:00
Anthony Tseng 8e929d0d5a Add Solana flag 2022-02-15 14:12:55 -08:00
Brian Clifton 48c8482e75 Removed sidebar features and deprecated show on click option
fix https://github.com/brave/brave-browser/issues/20876

With this change, sidebar will be available on all platform.
and sidebar show option is "never" by default.
2022-02-15 20:08:46 +09:00
Shivan Kaul Sahib fd31efbf75 Revert "Redirect URL support for adblock"
This reverts commit a87d3e4fce.
2022-02-01 16:05:25 -08:00