Bug 1845017 - Disable the TestPHCExhaustion test r=glandium
[gecko.git] / browser / actors / PointerLockParent.sys.mjs
blob8d36b5cb57884f1cd84d78e010590fe5339b88fe
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 export class PointerLockParent extends JSWindowActorParent {
6   receiveMessage(message) {
7     let browser = this.manager.browsingContext.top.embedderElement;
8     switch (message.name) {
9       case "PointerLock:Entered": {
10         browser.ownerGlobal.PointerLock.entered(
11           this.manager.documentPrincipal.originNoSuffix
12         );
13         break;
14       }
16       case "PointerLock:Exited": {
17         browser.ownerGlobal.PointerLock.exited();
18         break;
19       }
20     }
21   }