Bug 314077 Plug-ins do not receive keybord input when they are focused without mouse patch by <VYV03354@nifty.ne.jp> r=cbiesinger, sr=roc

This commit is contained in:
masayuki%d-toybox.com 2005-11-01 04:18:11 +00:00
parent e7b9e65039
commit 8168be5010

View File

@ -4264,9 +4264,9 @@ nsEventStateManager::SendFocusBlur(nsPresContext* aPresContext,
currentFocusFrame = presShell->GetPrimaryFrameFor(mCurrentFocus);
if (!currentFocusFrame)
currentFocusFrame = mCurrentTarget;
nsCOMPtr<nsIObjectFrame> objFrame;
nsIObjectFrame* objFrame = nsnull;
if (currentFocusFrame)
objFrame = do_QueryInterface(currentFocusFrame);
CallQueryInterface(currentFocusFrame, &objFrame);
if (objFrame) {
nsIView* view = currentFocusFrame->GetViewExternal();
NS_ASSERTION(view, "Object frames must have views");