fune/toolkit/components/windowwatcher
Makoto Kato 6f0f4ec37e Bug 1777509 - Don't return browsing context directly when creating new window. r=nika,geckoview-reviewers,owlish
Desktop's `nsIBrowserWindow.createContetnWindow` will return null when
creating new window. Then browsing context is observed by `nsFrameLoader`.

Actually, GeckoView's `createContentWindow` always creates new window.
So if using new window option, we should return null like desktop.

Also, if no callback, we return browsing context even if creating new window
due to no way to notify browsing context. And,
`nsIWindowProvider.provideWindow` doesn't use the callback, we have to return
browsing context for this situation.

Differential Revision: https://phabricator.services.mozilla.com/D197131
2024-04-24 11:17:43 +00:00
..
test
moz.build
nsAutoWindowStateHelper.cpp
nsAutoWindowStateHelper.h
nsDialogParamBlock.cpp
nsDialogParamBlock.h
nsIDialogParamBlock.idl
nsIOpenWindowInfo.idl
nsIPromptCollection.idl
nsIPromptFactory.idl
nsIPromptService.idl
nsIWindowWatcher.idl
nsOpenWindowInfo.cpp
nsOpenWindowInfo.h
nsPIWindowWatcher.idl
nsPromptUtils.h
nsWindowWatcher.cpp
nsWindowWatcher.h