mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1032415: Mark nsGlobalWindow::GetContextForEventHandlers as inner only. r=smaug
This commit is contained in:
parent
67155b2416
commit
2442d1d21b
@ -9576,8 +9576,10 @@ nsGlobalWindow::GetExistingListenerManager() const
|
||||
nsIScriptContext*
|
||||
nsGlobalWindow::GetContextForEventHandlers(nsresult* aRv)
|
||||
{
|
||||
MOZ_ASSERT(IsInnerWindow());
|
||||
|
||||
*aRv = NS_ERROR_UNEXPECTED;
|
||||
NS_ENSURE_TRUE(!IsInnerWindow() || IsCurrentInnerWindow(), nullptr);
|
||||
NS_ENSURE_TRUE(IsCurrentInnerWindow(), nullptr);
|
||||
|
||||
nsIScriptContext* scx;
|
||||
if ((scx = GetContext())) {
|
||||
|
Loading…
Reference in New Issue
Block a user