mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 748752 - nsNPAPIPlugin check for private browsing value will not work; r=josh
This commit is contained in:
parent
dc46ce0076
commit
f5ab42c8d7
@ -2137,7 +2137,8 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
|
|||||||
|
|
||||||
case NPNVprivateModeBool: {
|
case NPNVprivateModeBool: {
|
||||||
nsCOMPtr<nsIDocument> doc = GetDocumentFromNPP(npp);
|
nsCOMPtr<nsIDocument> doc = GetDocumentFromNPP(npp);
|
||||||
nsCOMPtr<nsPIDOMWindow> domwindow = do_QueryInterface(doc);
|
NS_ENSURE_TRUE(doc, NPERR_GENERIC_ERROR);
|
||||||
|
nsCOMPtr<nsPIDOMWindow> domwindow = doc->GetWindow();
|
||||||
if (domwindow) {
|
if (domwindow) {
|
||||||
nsCOMPtr<nsIDocShell> docShell = domwindow->GetDocShell();
|
nsCOMPtr<nsIDocShell> docShell = domwindow->GetDocShell();
|
||||||
nsCOMPtr<nsILoadContext> loadContext = do_QueryInterface(docShell);
|
nsCOMPtr<nsILoadContext> loadContext = do_QueryInterface(docShell);
|
||||||
|
Loading…
Reference in New Issue
Block a user