VirtualBox

Changeset 92833 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 8, 2021 5:06:38 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148760
Message:

X11: Shared Clipboard: extend list of mime types, bugref:10160.

Add Firefox specific format application/x-moz-nativehtml to the
list of supported formats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r91933 r92833  
    121121    { "text/html",                          SHCLX11FMT_HTML,        VBOX_SHCL_FMT_HTML },
    122122    { "text/html;charset=utf-8",            SHCLX11FMT_HTML,        VBOX_SHCL_FMT_HTML },
     123    { "application/x-moz-nativehtml",       SHCLX11FMT_HTML,        VBOX_SHCL_FMT_HTML },
    123124
    124125    { "image/bmp",                          SHCLX11FMT_BMP,         VBOX_SHCL_FMT_BITMAP },
     
    17211722    {
    17221723        char *pszFmts2 = ShClFormatsToStrA(pCtx->vboxFormats);
    1723         AssertPtrReturn(pszFmts2, VERR_NO_MEMORY);
    1724         LogRel(("Shared Clipboard: Converting VBox formats '%s' to '%s' for X11 (idxFmtX11=%u, fmtX11=%u) failed, rc=%Rrc\n",
    1725                 pszFmts2, g_aFormats[idxFmtX11].pcszAtom, idxFmtX11, fmtX11, rc));
    1726         RTStrFree(pszFmts2);
     1724        char *pszAtomName = XGetAtomName(XtDisplay(pCtx->pWidget), *atomTarget);
     1725
     1726        LogRel(("Shared Clipboard: Converting VBox formats '%s' to '%s' for X11 (idxFmtX11=%u, fmtX11=%u, atomTarget='%s') failed, rc=%Rrc\n",
     1727                pszFmts2 ? pszFmts2 : "unknown", g_aFormats[idxFmtX11].pcszAtom, idxFmtX11, fmtX11, pszAtomName ? pszAtomName : "unknown", rc));
     1728
     1729        if (pszFmts2)
     1730            RTStrFree(pszFmts2);
     1731        if (pszAtomName)
     1732            XFree(pszAtomName);
    17271733    }
    17281734
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette