Files
brave-core/patches/components-sessions-core-serialized_navigation_entry.cc.patch
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

14 lines
688 B
Diff

diff --git a/components/sessions/core/serialized_navigation_entry.cc b/components/sessions/core/serialized_navigation_entry.cc
index 3c83a547a011e52349b52c70ef4f4fa34699f19e..23e63409afef712c523a9feae612e06ecf56e764 100644
--- a/components/sessions/core/serialized_navigation_entry.cc
+++ b/components/sessions/core/serialized_navigation_entry.cc
@@ -120,7 +120,7 @@ void SerializedNavigationEntry::WriteToPickle(int max_size,
int bytes_written = 0;
WriteStringToPickle(pickle, &bytes_written, max_size,
- virtual_url_.spec());
+ maybe_prefixed_virtual_url_spec());
WriteString16ToPickle(pickle, &bytes_written, max_size, title_);