зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1313762 - SharedWorker::PreHandleEvent must be able to deal with widget events, r=smaug
This commit is contained in:
Родитель
88ef7187fb
Коммит
957bc33d4a
|
@ -188,9 +188,14 @@ SharedWorker::PreHandleEvent(EventChainPreVisitor& aVisitor)
|
|||
{
|
||||
AssertIsOnMainThread();
|
||||
|
||||
nsIDOMEvent*& event = aVisitor.mDOMEvent;
|
||||
if (IsFrozen()) {
|
||||
nsCOMPtr<nsIDOMEvent> event = aVisitor.mDOMEvent;
|
||||
if (!event) {
|
||||
event = EventDispatcher::CreateEvent(aVisitor.mEvent->mOriginalTarget,
|
||||
aVisitor.mPresContext,
|
||||
aVisitor.mEvent, EmptyString());
|
||||
}
|
||||
|
||||
if (IsFrozen() && event) {
|
||||
QueueEvent(event);
|
||||
|
||||
aVisitor.mCanHandle = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче