Bug 1465294 Part 7 - Don't send PHal message from middleman processes, r=gsvelto.

--HG--
extra : rebase_source : ff58a2e4591034bba7593ad83a3896de869eac03
This commit is contained in:
Brian Hackett 2018-07-23 14:52:33 +00:00
parent 8c8d7af19e
commit c1908d9119

View File

@ -134,7 +134,10 @@ LockScreenOrientation(const dom::ScreenOrientationInternal& aOrientation)
void
UnlockScreenOrientation()
{
Hal()->SendUnlockScreenOrientation();
// Don't send this message from both the middleman and recording processes.
if (!recordreplay::IsMiddleman()) {
Hal()->SendUnlockScreenOrientation();
}
}
void