Bug 1497393 Part 4 - Suppress event handling at the usual times in server when replaying, r=loganfsmyth.

Differential Revision: https://phabricator.services.mozilla.com/D22860

--HG--
extra : rebase_source : f2daf3cf81931052e80a50d4f9057808d335328c
This commit is contained in:
Brian Hackett 2019-03-09 16:40:40 -10:00
Родитель 7d26be7959
Коммит e96d35aa99
1 изменённых файлов: 2 добавлений и 10 удалений

Просмотреть файл

@ -1192,13 +1192,7 @@ const browsingContextTargetPrototype = {
}
const windowUtils = this.window.windowUtils;
// Events are not suppressed when running in the middleman, as we are in a
// different process from the debuggee and may want to process events in
// the middleman for e.g. the overlay drawn when rewinding.
if (Debugger.recordReplayProcessKind() != "Middleman") {
windowUtils.suppressEventHandling(true);
}
windowUtils.suspendTimeouts();
},
@ -1212,9 +1206,7 @@ const browsingContextTargetPrototype = {
}
const windowUtils = this.window.windowUtils;
windowUtils.resumeTimeouts();
if (Debugger.recordReplayProcessKind() != "Middleman") {
windowUtils.suppressEventHandling(false);
}
},
_changeTopLevelDocument(window) {