mshtml: Use Gecko inner window in get_ns_selection.
This commit is contained in:
parent
8a0cba8263
commit
5289cc8525
1 changed files with 4 additions and 1 deletions
|
@ -203,7 +203,10 @@ static nsISelection *get_ns_selection(HTMLDocumentNode *doc)
|
|||
nsISelection *nsselection = NULL;
|
||||
nsresult nsres;
|
||||
|
||||
nsres = nsIDOMWindow_GetSelection(doc->outer_window->nswindow, &nsselection);
|
||||
if(!doc->window)
|
||||
return NULL;
|
||||
|
||||
nsres = nsIDOMWindow_GetSelection(doc->window->dom_window, &nsselection);
|
||||
if(NS_FAILED(nsres))
|
||||
ERR("GetSelection failed %08lx\n", nsres);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue