Bug 1499828 Part 5 - Don't suppress events when pausing in the middleman, r=lsmyth.

--HG--
extra : rebase_source : aa979192a153c4d32f5da8fd1927591fb1cbc262
This commit is contained in:
Brian Hackett 2018-10-17 13:32:46 -06:00
Родитель 5df6d60bcd
Коммит cd6be84a29
1 изменённых файлов: 11 добавлений и 2 удалений

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

@ -1183,7 +1183,14 @@ const browsingContextTargetPrototype = {
return;
}
const windowUtils = this.window.windowUtils;
windowUtils.suppressEventHandling(true);
// 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();
},
@ -1197,7 +1204,9 @@ const browsingContextTargetPrototype = {
}
const windowUtils = this.window.windowUtils;
windowUtils.resumeTimeouts();
windowUtils.suppressEventHandling(false);
if (Debugger.recordReplayProcessKind() != "Middleman") {
windowUtils.suppressEventHandling(false);
}
},
_changeTopLevelDocument(window) {