5130d240be
Select some HTML content on a password-protected webpage that has images, copy, paste into Writer when it's in LOK mode -> hang. What seems to happen is that the HTML content itself is on the clipboard, but not resources referred by that content, like images. Which means our code in SwHTMLParser::InsertImage() will at the end call into ucb/ code to get the HTTP image, which will call into uui/ code to ask for the password. This has multiple problems: 1) the popup dialog is not async (and not trivial to convert to async) and the dialog hints that the password can be saved, but LOK document edit sessions always start from a clean profile, so that's not working. The non-async dialog even results in a hang in practice. Fix the problem by not showing the password dialog in the LOK case at all: it's better to have an image placeholder in the paste result than hanging your entire document edit session. Non-password-protected images continue to work, unless HostFilter::isForbidden() rejects the URL. Change-Id: I1e55ab7adecd9c90ba38a97bcdc52b2b01f7ff2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172781 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com> |
||
---|---|---|
.. | ||
alreadyopen.cxx | ||
alreadyopen.hxx | ||
authfallbackdlg.cxx | ||
authfallbackdlg.hxx | ||
filechanged.cxx | ||
filechanged.hxx | ||
fltdlg.cxx | ||
fltdlg.hxx | ||
getcontinuations.hxx | ||
iahndl-authentication.cxx | ||
iahndl-errorhandler.cxx | ||
iahndl-filter.cxx | ||
iahndl-ioexceptions.cxx | ||
iahndl-locking.cxx | ||
iahndl-ssl.cxx | ||
iahndl.cxx | ||
iahndl.hxx | ||
interactionhandler.cxx | ||
lockcorrupt.cxx | ||
lockcorrupt.hxx | ||
lockfailed.cxx | ||
lockfailed.hxx | ||
logindlg.cxx | ||
logindlg.hxx | ||
loginerr.hxx | ||
masterpasscrtdlg.cxx | ||
masterpasscrtdlg.hxx | ||
masterpassworddlg.cxx | ||
masterpassworddlg.hxx | ||
nameclashdlg.cxx | ||
nameclashdlg.hxx | ||
openlocked.cxx | ||
openlocked.hxx | ||
passwordcontainer.cxx | ||
passwordcontainer.hxx | ||
passworddlg.cxx | ||
passworddlg.hxx | ||
reloadeditable.cxx | ||
reloadeditable.hxx | ||
requeststringresolver.cxx | ||
requeststringresolver.hxx | ||
secmacrowarnings.cxx | ||
secmacrowarnings.hxx | ||
sslwarndlg.cxx | ||
sslwarndlg.hxx | ||
trylater.cxx | ||
trylater.hxx | ||
unknownauthdlg.cxx | ||
unknownauthdlg.hxx |