Bug 1884547 - Skip Snap QA because of CAPCTHAs r=mboldan
[gecko.git] / toolkit / actors / UnselectedTabHoverParent.sys.mjs
blob797cbd8af2b1b37ce5872b4b02da252f08d597fd
1 /* vim: set ts=2 sw=2 sts=2 et tw=80: */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 export class UnselectedTabHoverParent extends JSWindowActorParent {
7   receiveMessage(message) {
8     const topBrowsingContext = this.manager.browsingContext.top;
9     const browser = topBrowsingContext.embedderElement;
10     if (!browser) {
11       return;
12     }
13     browser.shouldHandleUnselectedTabHover = message.data.enable;
14   }