mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 18:50:08 +00:00
Bug 1780543 - Part 4: Add mozilla/remote-page environment. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152429
This commit is contained in:
parent
4e35a2bf9c
commit
9fa82cdffe
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
var AboutRestartRequired = {
|
||||
/* Only do autofocus if we're the toplevel frame; otherwise we
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
var AboutTabCrashed = {
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
import "chrome://global/content/certviewer/pvutils_bundle.jsm";
|
||||
import "chrome://global/content/certviewer/asn1js_bundle.jsm";
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
import { toggleContainer } from "./helpers.mjs";
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
import {
|
||||
actionCreators as ac,
|
||||
|
@ -14641,7 +14641,7 @@ const external_Redux_namespaceObject = Redux;
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
|
||||
const MERGE_STORE_ACTION = "NEW_TAB_INITIAL_STATE";
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
/**
|
||||
* Determines whether a given value is a fluent id or plain text and adds it to an element
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
const HOW_IT_WORKS_URL_PREF = RPMGetFormatURLPref(
|
||||
"browser.contentblocking.report.lockwise.how_it_works.url"
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
const MONITOR_URL = RPMGetStringPref(
|
||||
"browser.contentblocking.report.monitor.url",
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
import LockwiseCard from "./lockwise-card.mjs";
|
||||
import MonitorCard from "./monitor-card.mjs";
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
const PROXY_EXTENSION_URL = RPMGetStringPref(
|
||||
"browser.contentblocking.report.proxy_extension.url",
|
||||
|
@ -2,7 +2,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
export default class VPNCard {
|
||||
constructor(document) {
|
||||
this.doc = document;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
import { ListItem } from "./list-item.js";
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
import { InfoGroupContainer } from "./info-group-container.js";
|
||||
import { CertificateTabsSection } from "./certificate-tabs-section.js";
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* eslint-env mozilla/frame-script */
|
||||
/* eslint-env mozilla/remote-page */
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -0,0 +1,34 @@
|
||||
/**
|
||||
* @fileoverview Defines the environment for remote page.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
globals: {
|
||||
atob: false,
|
||||
btoa: false,
|
||||
RPMGetAppBuildID: false,
|
||||
RPMGetInnerMostURI: false,
|
||||
RPMGetIntPref: false,
|
||||
RPMGetStringPref: false,
|
||||
RPMGetBoolPref: false,
|
||||
RPMSetBoolPref: false,
|
||||
RPMGetFormatURLPref: false,
|
||||
RPMIsWindowPrivate: false,
|
||||
RPMSendAsyncMessage: false,
|
||||
RPMSendQuery: false,
|
||||
RPMAddMessageListener: false,
|
||||
RPMRecordTelemetryEvent: false,
|
||||
RPMCheckAlternateHostAvailable: false,
|
||||
RPMAddToHistogram: false,
|
||||
RPMRemoveMessageListener: false,
|
||||
RPMGetHttpResponseHeader: false,
|
||||
RPMTryPingSecureWWWLink: false,
|
||||
RPMOpenSecureWWWLink: false,
|
||||
},
|
||||
};
|
@ -25,6 +25,7 @@ module.exports = {
|
||||
"frame-script": require("../lib/environments/frame-script.js"),
|
||||
jsm: require("../lib/environments/jsm.js"),
|
||||
"process-script": require("../lib/environments/frame-script.js"),
|
||||
"remote-page": require("../lib/environments/remote-page.js"),
|
||||
simpletest: require("../lib/environments/simpletest.js"),
|
||||
sjs: require("../lib/environments/sjs.js"),
|
||||
privileged: require("../lib/environments/privileged.js"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user