зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5df6d60bcd
Коммит
cd6be84a29
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче