mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1032415: Mark nsGlobalWindow::GetContextForEventHandlers as inner only. r=smaug
This commit is contained in:
parent
dc7958f63c
commit
7bd7c639a5
@ -9576,8 +9576,10 @@ nsGlobalWindow::GetExistingListenerManager() const
|
|||||||
nsIScriptContext*
|
nsIScriptContext*
|
||||||
nsGlobalWindow::GetContextForEventHandlers(nsresult* aRv)
|
nsGlobalWindow::GetContextForEventHandlers(nsresult* aRv)
|
||||||
{
|
{
|
||||||
|
MOZ_ASSERT(IsInnerWindow());
|
||||||
|
|
||||||
*aRv = NS_ERROR_UNEXPECTED;
|
*aRv = NS_ERROR_UNEXPECTED;
|
||||||
NS_ENSURE_TRUE(!IsInnerWindow() || IsCurrentInnerWindow(), nullptr);
|
NS_ENSURE_TRUE(IsCurrentInnerWindow(), nullptr);
|
||||||
|
|
||||||
nsIScriptContext* scx;
|
nsIScriptContext* scx;
|
||||||
if ((scx = GetContext())) {
|
if ((scx = GetContext())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user