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 = ["PageStyleParent"];
8 class PageStyleParent extends JSWindowActorParent {
11 let browser = this.browsingContext.top.embedderElement;
16 let permanentKey = browser.permanentKey;
17 let window = browser.ownerGlobal;
18 let styleMenu = window.gPageStyleMenu;
19 if (window.closed || !styleMenu) {
25 styleMenu.addBrowserStyleSheets(msg.data, permanentKey);
27 case "PageStyle:Clear":
28 styleMenu.clearBrowserStyleSheets(permanentKey);