2020-03-03 19:29:39 -05:00
|
|
|
diff --git ui/base/x/x11_os_exchange_data_provider.cc ui/base/x/x11_os_exchange_data_provider.cc
|
2024-10-24 11:53:43 -04:00
|
|
|
index 8a9a5b6bc8bf9..f10bcd36c11d9 100644
|
2020-03-03 19:29:39 -05:00
|
|
|
--- ui/base/x/x11_os_exchange_data_provider.cc
|
|
|
|
+++ ui/base/x/x11_os_exchange_data_provider.cc
|
2024-10-24 11:53:43 -04:00
|
|
|
@@ -168,7 +168,8 @@ void XOSExchangeDataProvider::SetURL(const GURL& url,
|
2021-01-27 18:13:12 -05:00
|
|
|
format_map_.Insert(x11::GetAtom(kMimeTypeMozillaURL), mem);
|
2014-07-08 22:37:06 +00: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
|