[Webkit-unassigned] [Bug 77630] onbeforepaste fired on context menu of contentedtibale="true" body
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 30 17:24:00 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=77630
Ryosuke Niwa <rniwa at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ayg at aryeh.name,
| |dcheng at chromium.org
--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org> 2012-04-30 17:23:59 PST ---
Is this comment in Editor.cpp no longer true?
// WinIE uses onbeforecut and onbeforepaste to enables the cut and paste menu items. They
// also send onbeforecopy, apparently for symmetry, but it doesn't affect the menu items.
// We need to use onbeforecopy as a real menu enabler because we allow elements that are not
// normally selectable to implement copy/paste (like divs, or a document body).
bool Editor::canDHTMLCut()
{
return !m_frame->selection()->isInPasswordField() && !dispatchCPPEvent(eventNames().beforecutEvent, ClipboardNumb);
}
bool Editor::canDHTMLCopy()
{
return !m_frame->selection()->isInPasswordField() && !dispatchCPPEvent(eventNames().beforecopyEvent, ClipboardNumb);
}
bool Editor::canDHTMLPaste()
{
return !dispatchCPPEvent(eventNames().beforepasteEvent, ClipboardNumb);
}
bool Editor::canCut() const
{
return canCopy() && canDelete();
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list