1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

mshtml: Use Gecko inner window in get_ns_selection.

This commit is contained in:
Jacek Caban 2023-11-20 15:14:36 +01:00 committed by Alexandre Julliard
parent 8a0cba8263
commit 5289cc8525

View file

@ -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);