Bug 1026164, improve focus handling in shadow dom, r=wchen
This commit is contained in:
@@ -244,7 +244,7 @@ nsTextControlFrame::EnsureEditorInitialized()
|
||||
if (mEditorHasBeenInitialized)
|
||||
return NS_OK;
|
||||
|
||||
nsIDocument* doc = mContent->GetCurrentDoc();
|
||||
nsIDocument* doc = mContent->GetComposedDoc();
|
||||
NS_ENSURE_TRUE(doc, NS_ERROR_FAILURE);
|
||||
|
||||
nsWeakFrame weakFrame(this);
|
||||
|
||||
Reference in New Issue
Block a user