[Webkit-unassigned] [Bug 156529] document.execCommand("copy") only triggers if there is a selection.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 10 11:02:35 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=156529
Daniel Bates <dbates at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dbates at webkit.org
--- Comment #6 from Daniel Bates <dbates at webkit.org> ---
This is because:
[[
bool Editor::canCopy() const
{
if (imageElementFromImageDocument(document()))
return true;
const VisibleSelection& selection = m_frame.selection().selection();
return selection.isRange() && !selection.isInPasswordField();
}
]]
<https://trac.webkit.org/browser/trunk/Source/WebCore/editing/Editor.cpp?rev=249040#L481>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190910/ac7d4edc/attachment-0001.html>
More information about the webkit-unassigned
mailing list