Bug 768503: Only disable selection on non-editable content. r=roc

This commit is contained in:
Ehsan Akhgari 2012-08-16 11:51:46 -04:00
parent b74402d23a
commit 8fbfc92703

View File

@ -2681,7 +2681,8 @@ nsFrame::HandlePress(nsPresContext* aPresContext,
// On touchables devices, touch the screen is usually a pan action,
// so let reposition the caret if needed but do not select text
if (Preferences::GetBool("browser.ignoreNativeFrameTextSelection", false)) {
if (!offsets.content->IsEditable() &&
Preferences::GetBool("browser.ignoreNativeFrameTextSelection", false)) {
return fc->HandleClick(offsets.content, offsets.StartOffset(),
offsets.EndOffset(), false, false,
offsets.associateWithNext);