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/. */
6 var EXPORTED_SYMBOLS = ["RefreshBlockerParent"];
8 class RefreshBlockerParent extends JSWindowActorParent {
9 receiveMessage(message) {
10 if (message.name == "RefreshBlocker:Blocked") {
11 let browser = this.browsingContext.top.embedderElement;
13 let gBrowser = browser.ownerGlobal.gBrowser;
15 gBrowser.refreshBlocked(this, browser, message.data);