mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 935786 - Assertion failure: !IsInnerWindow() || IsCurrentInnerWindow() at nsGlobalWindow.cpp:8909. r=smaug
CLOSED TREE
This commit is contained in:
parent
182df38e7c
commit
86181bcd60
@ -8942,11 +8942,14 @@ NS_IMPL_REMOVE_SYSTEM_EVENT_LISTENER(nsGlobalWindow)
|
||||
NS_IMETHODIMP
|
||||
nsGlobalWindow::DispatchEvent(nsIDOMEvent* aEvent, bool* aRetVal)
|
||||
{
|
||||
MOZ_ASSERT(!IsInnerWindow() || IsCurrentInnerWindow(),
|
||||
"We should only fire events on the current inner window.");
|
||||
|
||||
FORWARD_TO_INNER(DispatchEvent, (aEvent, aRetVal), NS_OK);
|
||||
|
||||
if (!IsCurrentInnerWindow()) {
|
||||
NS_WARNING("DispatchEvent called on non-current inner window, dropping. "
|
||||
"Please check the window in the caller instead.");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
if (!mDoc) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ WindowCannotReceiveSensorEvent (nsPIDOMWindow* aWindow)
|
||||
// Check to see if this window is in the background. If
|
||||
// it is and it does not have the "background-sensors" permission,
|
||||
// don't send any device motion events to it.
|
||||
if (!aWindow || !aWindow->GetOuterWindow()) {
|
||||
if (!aWindow || !aWindow->IsCurrentInnerWindow()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ bool
|
||||
nsAutoWindowStateHelper::DispatchEventToChrome(const char *aEventName)
|
||||
{
|
||||
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(mWindow);
|
||||
if (!window) {
|
||||
if (!window || (window->IsInnerWindow() && !window->IsCurrentInnerWindow())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user