mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1072115 - languagechange event should be dispatched to current inner windows only., r=bz
This commit is contained in:
parent
35cf5d8d51
commit
573f71fa10
@ -11515,6 +11515,11 @@ nsGlobalWindow::Observe(nsISupports* aSubject, const char* aTopic,
|
||||
NavigatorBinding::ClearCachedLanguagesValue(mNavigator);
|
||||
}
|
||||
|
||||
// The event has to be dispatched only to the current inner window.
|
||||
if (!IsCurrentInnerWindow()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMEvent> event;
|
||||
NS_NewDOMEvent(getter_AddRefs(event), this, nullptr, nullptr);
|
||||
nsresult rv = event->InitEvent(NS_LITERAL_STRING("languagechange"), false, false);
|
||||
|
Loading…
Reference in New Issue
Block a user