10 Commits
Author SHA1 Message Date
Aleksei Khoroshilov b225040fe1 Add temporary containers. (#36060)
* Add temporary containers.

* Add few more sync-related tests.
2026-05-08 13:33:35 +07:00
Brian Johnson 2ac3a19ee1 Restore old brave:// schemes as chrome:// and revert verbatim_match.cc removal from (#34913)
This fixes several bugs introduced by #34913. Previously saved sessions with `brave://` virtual urls were not properly restored and brave:// urls were sometimes treated as searches on android
2026-03-24 02:05:50 +01:00
Aleksei Khoroshilov ce76e01a49 Support contained tabs session restore and sync. (#33313)
* Support contained tabs session restore and sync.

* Review fixes.

* Use struct as a return value instead of optional with out args.

* Add a unit test for view-source: scheme.

* Move TabRestore helper to components.

* Add containers-specific SerializedNavigationBuilder* tests.

* Guard PageState.top.url_string use.

* Add plaster files for few patches.

* Replace browser_tabrestore.cc #define patch with plaster rewrite.

* Replace content_serialized_navigation_builder.cc change with rewrite.

* Fix gn check.

* Add prefix_length check.

* Improve rewrite rules.

* Guard PageState changes with buildflag.

* Rename StoragePartitionKeyToUrlPrefix.

* Add buildflag check into SerializedNavigationEntry.

* Fix build issues with containers buildflag disabled.

* Fix iOS build.
2026-03-10 19:20:50 +07:00
Anton Paymyshev 90ba133fac Fix implicit deps on chromium components (#29902)
privacy_sandbox profile_metrics proxy_config regional_capabilities schema_org sessions
2025-07-04 17:14:17 +07:00
Brian Johnson 3313ad628b remove include rules that no longer apply (#25911)
remove include rules that no longer apply and fix existing include rules
2024-10-10 16:19:48 -07:00
Simon Hong 336a3fc367 Fixed error modal from rewards page is shown after startup
fix https://github.com/brave/brave-browser/issues/31237

Fixed by returning empty string as page state sanitizing for
chrome url that is not overridden by extension.
2023-07-12 21:35:26 +09:00
Simon Hong 0f0b013b99 Fixed extension's newtab is not loaded when it's restored during the startup
fix https://github.com/brave/brave-browser/issues/30890

As we sanitize serialzed navigation(https://github.com/brave/brave-browser/issues/30890),
encoded page state is empty for all chrome url.
So, new page state is created with virtual url when it's restored during the startup.
ContentSerializedNavigationBuilder::ToNavigationEntry() set new page state if it's empty.
When new page state is created, navigation's virtual url is created.
If url is re-written when NavigationEntryImpl is created, that re-written url is ignored.
To fix this, including url info only for chrome url's encoded page state.
2023-06-14 15:24:39 +09:00
Aleksey Khoroshilov 470bd67701 Add session cookies cleanup on session restore. (#17122)
Add session cookie cleanup on session restore.
2023-02-14 23:07:40 +07:00
cepera dc9cb4b9ad Browser test to make sure chrome:// pages do not serialize text fields content 2022-08-24 06:42:41 +03:00
cepera 7c8952d269 Sanitize chrome:// pages in serialized navigations 2022-08-24 06:42:41 +03:00