• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git ui/base/x/x11_os_exchange_data_provider.cc ui/base/x/x11_os_exchange_data_provider.cc
2index d337bee1db15b..1dfc9e77a50aa 100644
3--- ui/base/x/x11_os_exchange_data_provider.cc
4+++ ui/base/x/x11_os_exchange_data_provider.cc
5@@ -139,7 +139,8 @@ void XOSExchangeDataProvider::SetURL(const GURL& url,
6     format_map_.Insert(x11::GetAtom(kMimeTypeMozillaURL), mem);
7
8     // Set a string fallback as well.
9-    SetString(spec);
10+    if (!HasString())
11+      SetString(spec);
12
13     // Return early if this drag already contains file contents (this implies
14     // that file contents must be populated before URLs). Nautilus (and possibly
15