2020-03-04 01:29:39 +01:00
|
|
|
diff --git ui/base/x/x11_os_exchange_data_provider.cc ui/base/x/x11_os_exchange_data_provider.cc
|
2023-12-06 21:16:15 +01:00
|
|
|
index 4a0397e34c1d3..af8be5329b5ff 100644
|
2020-03-04 01:29:39 +01:00
|
|
|
--- ui/base/x/x11_os_exchange_data_provider.cc
|
|
|
|
+++ ui/base/x/x11_os_exchange_data_provider.cc
|
2023-12-06 21:16:15 +01:00
|
|
|
@@ -163,7 +163,8 @@ void XOSExchangeDataProvider::SetURL(const GURL& url,
|
2021-01-28 00:13:12 +01:00
|
|
|
format_map_.Insert(x11::GetAtom(kMimeTypeMozillaURL), mem);
|
2014-07-09 00:37:06 +02:00
|
|
|
|
|
|
|
// Set a string fallback as well.
|
|
|
|
- SetString(spec);
|
|
|
|
+ if (!HasString())
|
|
|
|
+ SetString(spec);
|
|
|
|
|
|
|
|
// Return early if this drag already contains file contents (this implies
|
|
|
|
// that file contents must be populated before URLs). Nautilus (and possibly
|