$OpenBSD: patch-content_events_src_nsContentEventHandler_cpp,v 1.3 2011/03/26 10:58:36 landry Exp $ --- content/events/src/nsContentEventHandler.cpp.orig Fri Jun 11 22:40:52 2010 +++ content/events/src/nsContentEventHandler.cpp Thu Jun 24 10:08:30 2010 @@ -928,7 +928,8 @@ nsContentEventHandler::OnSelectionEvent(nsSelectionEve selPrivate->EndBatchChanges(); NS_ENSURE_SUCCESS(rv, rv); - nsCOMPtr(do_QueryInterface(sel))->ScrollIntoView( + nsCOMPtr sel2 = do_QueryInterface(sel); + sel2->ScrollIntoView( nsISelectionController::SELECTION_FOCUS_REGION, PR_FALSE, -1, -1); aEvent->mSucceeded = PR_TRUE; return NS_OK;