зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1858148 - Remove Cu.importGlobalProperties from sjs files as it is no longer needed. r=mossop,webdriver-reviewers,necko-reviewers,search-reviewers,devtools-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,dao,daleharvey,valentin
Differential Revision: https://phabricator.services.mozilla.com/D190759
This commit is contained in:
Родитель
71f79e3173
Коммит
a033642737
|
@ -11,7 +11,6 @@
|
|||
* ?p=http%3A%2F%2Fexample.org%2Fbrowser%2Fbrowser%2Fbase%2Fcontent%2Ftest%2Fgeneral%2Frefresh_meta.sjs&d=200
|
||||
*/
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
let page = query.get("p");
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* Arguments: ?scheme=http://&policy=origin&rel=noreferrer
|
||||
*/
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
let scheme = query.get("scheme");
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* Arguments: ?scheme=http://&policy=origin&rel=noreferrer
|
||||
*/
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
let scheme = query.get("scheme");
|
||||
|
|
|
@ -3,8 +3,6 @@ const HTTPS_ORIGIN = "https://example.com";
|
|||
const URI_PATH =
|
||||
"/browser/browser/components/contextualidentity/test/browser/saveLink.sjs";
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(aRequest, aResponse) {
|
||||
var params = new URLSearchParams(aRequest.queryString);
|
||||
|
||||
|
|
|
@ -8,8 +8,6 @@ const VIDEO_PATH = `${URI_PATH}file_thirdPartyChild.video.ogv`;
|
|||
const IMAGE_PATH = `${URI_PATH}file_favicon.png`;
|
||||
const FRAME_PATH = `${SECOND_ORIGIN}${URI_PATH}file_saveAs.sjs?image=1`;
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(aRequest, aResponse) {
|
||||
var params = new URLSearchParams(aRequest.queryString);
|
||||
aResponse.setStatusLine(aRequest.httpVersion, 200);
|
||||
|
|
|
@ -56,7 +56,6 @@ const WORKER = `
|
|||
`;
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
if (query.get("crossOriginIsolated") === "true") {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const HTML_DATA = `
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
Cu.importGlobalProperties(["TextEncoder"]);
|
||||
|
||||
let gTimer;
|
||||
|
||||
function handleRequest(req, resp) {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let { NetUtil } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/NetUtil.sys.mjs"
|
||||
);
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["TextEncoder"]);
|
||||
|
||||
function gzipCompressString(string, obs) {
|
||||
const scs = Cc["@mozilla.org/streamConverters;1"].getService(
|
||||
Ci.nsIStreamConverterService
|
||||
|
|
|
@ -4,7 +4,6 @@ function handleRequest(request, response) {
|
|||
response.setHeader("Content-Type", "html", false);
|
||||
|
||||
// Check the params and set the cross-origin-opener policy headers if needed
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
const query = new URLSearchParams(request.queryString);
|
||||
if (query.get("crossOriginIsolated") === "true") {
|
||||
response.setHeader("Cross-Origin-Opener-Policy", "same-origin", false);
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
"use strict";
|
||||
|
||||
async function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
const query = new URLSearchParams(request.queryString);
|
||||
|
||||
const requestUserAgent = request.getHeader("user-agent");
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
const params = new URLSearchParams(request.queryString);
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ function handleRequest(request, response) {
|
|||
response.setHeader("Content-Type", "html", false);
|
||||
|
||||
// Check the params and set the cross-origin-opener policy headers if needed
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
const query = new URLSearchParams(request.queryString);
|
||||
if (query.get("crossOriginIsolated") === "true") {
|
||||
response.setHeader("Cross-Origin-Opener-Policy", "same-origin", false);
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["TextEncoder"]);
|
||||
|
||||
// Simple server which can handle several response types and states.
|
||||
// Trimmed down from devtools/client/netmonitor/test/sjs_content-type-test-server.sjs
|
||||
// Additional features can be ported if needed.
|
||||
|
|
|
@ -33,7 +33,6 @@ function now() {
|
|||
|
||||
async function handleRequest(request, response) {
|
||||
log("Get query parameters");
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let params = new URLSearchParams(request.queryString);
|
||||
|
||||
let start = now();
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
if (request.queryString == "reset") {
|
||||
setState("index", "0");
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
response.write(
|
||||
`<!DOCTYPE html>
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
async function handleRequest(request, response) {
|
||||
if (request.method !== "POST") {
|
||||
throw new Error("Expected a post request");
|
||||
|
|
|
@ -8,8 +8,6 @@ const BinaryInputStream = Components.Constructor(
|
|||
"setInputStream"
|
||||
);
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function readStream(inputStream) {
|
||||
let available = 0;
|
||||
let result = [];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Test server for bug 1268962
|
||||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const HTTPStatus = new Map([
|
||||
[100, "Continue"],
|
||||
[101, "Switching Protocol"],
|
||||
|
|
|
@ -36,7 +36,6 @@ function createContent(refresh) {
|
|||
}
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
let action = query.get("action");
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
* bug 1174913, bug 1175736, bug 1184781
|
||||
*/
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
const SJS = "referrer_testserver.sjs?";
|
||||
const SJS_PATH = "/tests/dom/base/test/";
|
||||
const BASE_ORIGIN = "example.com";
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
*/
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
let params = new URLSearchParams(request.queryString);
|
||||
let test = params.get("set_test");
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
let { NetUtil } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/NetUtil.sys.mjs"
|
||||
);
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function loadHTMLFromFile(path) {
|
||||
// Load the HTML to return in the response from file.
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
//global handleRequest
|
||||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const HTTPStatus = new Map([
|
||||
[100, "Continue"],
|
||||
[101, "Switching Protocol"],
|
||||
|
|
|
@ -5,8 +5,6 @@ const BinaryInputStream = CC(
|
|||
"setInputStream"
|
||||
);
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(aRequest, aResponse) {
|
||||
var params = new URLSearchParams(aRequest.queryString);
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1263286
|
||||
|
||||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const PRE_BASE = `
|
||||
<!DOCTYPE HTML>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1073952
|
||||
|
||||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const SCRIPT = `
|
||||
<script>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1529068
|
||||
|
||||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const TEST_NAVIGATION_HEAD = `
|
||||
<!DOCTYPE HTML>
|
||||
|
|
|
@ -26,7 +26,6 @@ function handleRequest(request, response) {
|
|||
response.setHeader("Cache-Control", "no-cache", false);
|
||||
response.setHeader("Content-Type", "text/html", false);
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
const query = new URLSearchParams(request.queryString);
|
||||
|
||||
if (query.get("csp")) {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
*/
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
let scheme = query.get("scheme");
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
const { NetUtil } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/NetUtil.sys.mjs"
|
||||
);
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function loadHTMLFromFile(path) {
|
||||
// Load the HTML to return in the response from file.
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1271173
|
||||
|
||||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const TEST_NAVIGATIONAL_UPGRADE = `
|
||||
<!DOCTYPE html>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const SJS = "http://mochi.test:8888/tests/dom/security/test/csp/worker.sjs";
|
||||
|
||||
function createFetchWorker(url) {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// Bug 1288361 - Block scripts with wrong MIME type
|
||||
|
||||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const WORKER = `
|
||||
onmessage = function(event) {
|
||||
|
|
|
@ -30,7 +30,6 @@ function getSniffableContent(type) {
|
|||
}
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
// avoid confusing cache behaviors (XXXX no sure what this means?)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const SCRIPT = "var foo = 24;";
|
||||
const CSS = "body { background-color: green; }";
|
||||
|
|
|
@ -37,7 +37,7 @@ function readQuery(testCase) {
|
|||
|
||||
function handleRequest(request, response) {
|
||||
response.setHeader("Cache-Control", "no-cache", false);
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
// Downgrade to test http/https -> HTTP referrer policy
|
||||
if (query.has("sendMe2") && request.scheme === "https") {
|
||||
|
|
|
@ -7,7 +7,6 @@ function handleRequest(request, response) {
|
|||
// Eg, http://localhost:8888/authenticate.sjs?user=foo&realm=bar
|
||||
// The extra ? allows the user/pass/realm checks to succeed if the name is
|
||||
// at the beginning of the query string.
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
let expected_user = query.get("user");
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
let params = new URLSearchParams(request.queryString);
|
||||
let referrerPolicyHeader = params.get("header") || "";
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
* bug 1174913, bug 1175736, bug 1184781
|
||||
*/
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
const SJS = "referrer_testserver.sjs?";
|
||||
const SJS_PATH = "/tests/dom/security/test/referrer-policy/";
|
||||
const BASE_ORIGIN = "example.com";
|
||||
|
|
|
@ -115,7 +115,6 @@ function handleStreamRequest(request, response) {
|
|||
intervalId = setInterval(tick, TICK_INTERVAL);
|
||||
}
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
function handleRequest(request, response) {
|
||||
dump(
|
||||
"server-stream-download.js: processing request for " +
|
||||
|
|
|
@ -80,7 +80,6 @@ function handleCountRequest(request, response) {
|
|||
response.write(JSON.stringify({ count }));
|
||||
}
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
function handleRequest(request, response) {
|
||||
dump(
|
||||
"server_multie10s_update.sjs: processing request for " +
|
||||
|
|
|
@ -51,7 +51,6 @@ const RESPONSE = `
|
|||
`;
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
// If the request has been marked to be isolated with COOP+COEP, set the appropriate headers.
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
const searchParams = new URLSearchParams(request.queryString);
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
response.setHeader("Content-Type", "application/javascript");
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
const SJS = "referrer_test_server.sjs?";
|
||||
const SHARED_KEY = SJS;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ function handleRequest(request, response) {
|
|||
setSharedState("earlyHintCount", JSON.stringify(count));
|
||||
|
||||
let content = "";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let qs = new URLSearchParams(request.queryString);
|
||||
let asset = qs.get("as");
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let qs = new URLSearchParams(request.queryString);
|
||||
let asset = qs.get("as");
|
||||
let hinted = qs.get("hinted") === "1";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let qs = new URLSearchParams(request.queryString);
|
||||
let asset = qs.get("as");
|
||||
let hinted = qs.get("hinted") !== "0";
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
response.setStatusLine(
|
||||
request.httpVersion,
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
// write to raw socket
|
||||
response.seizePower();
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ async function handleRequest(request, response) {
|
|||
response.setHeader("Cache-Control", "max-age=604800", false);
|
||||
|
||||
let content = "";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let qs = new URLSearchParams(request.queryString);
|
||||
let asset = qs.get("as");
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let qs = new URLSearchParams(request.queryString);
|
||||
let href = qs.get("href");
|
||||
let crossOrigin = qs.get("crossOrigin");
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
// - location: sets destination of 301 response
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let qs = new URLSearchParams(request.queryString);
|
||||
let link = qs.get("link");
|
||||
let location = qs.get("location");
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let qs = new URLSearchParams(request.queryString);
|
||||
let asset = qs.get("as");
|
||||
var action = qs.get("action");
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
const queryString = new URLSearchParams(request.queryString);
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
const { NetUtil } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/NetUtil.sys.mjs"
|
||||
);
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function loadHTMLFromFile(path) {
|
||||
// Load the HTML to return in the response from file.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
function handleRequest(request, response) {
|
||||
response.setHeader("Cache-Control", "no-cache", false);
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
let setState = query.get("setState");
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
let token = query.get("token");
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
let token = query.get("token");
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
response.setStatusLine(request.httpVersion, 200, "OK");
|
||||
|
|
|
@ -8,8 +8,6 @@ let { NetUtil } = ChromeUtils.importESModule(
|
|||
"resource://gre/modules/NetUtil.sys.mjs"
|
||||
);
|
||||
|
||||
Cu.importGlobalProperties(["TextEncoder"]);
|
||||
|
||||
/**
|
||||
* Provide search suggestions in the OpenSearch JSON format.
|
||||
*/
|
||||
|
|
|
@ -9,8 +9,6 @@ const BinaryInputStream = Components.Constructor(
|
|||
"setInputStream"
|
||||
);
|
||||
|
||||
Cu.importGlobalProperties(["TextDecoder"]);
|
||||
|
||||
function getPostBody(stream) {
|
||||
let binaryStream = new BinaryInputStream(stream);
|
||||
let count = binaryStream.available();
|
||||
|
|
|
@ -6,8 +6,6 @@ const REDIRECT =
|
|||
"mochi.test:8888/chrome/toolkit/components/url-classifier/tests/mochitest/" +
|
||||
SJS;
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function createBlockedIframePage() {
|
||||
return `<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
|
|
@ -9,7 +9,6 @@ const BinaryInputStream = CC(
|
|||
);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
let params = new URLSearchParams(request.queryString);
|
||||
var action = params.get("action");
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
* 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/. */
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
const stateTotalRequests = "total-request";
|
||||
const stateCallback = "callback-response";
|
||||
const stateTrackersWithCookie = "trackers-with-cookie";
|
||||
|
|
|
@ -5,8 +5,6 @@ let { NetUtil } = ChromeUtils.importESModule(
|
|||
"resource://gre/modules/NetUtil.sys.mjs"
|
||||
);
|
||||
|
||||
Cu.importGlobalProperties(["IOUtils", "PathUtils"]);
|
||||
|
||||
const RELATIVE_PATH = "browser/toolkit/mozapps/extensions/test/xpinstall";
|
||||
const NOTIFICATION_TOPIC = "slowinstall-complete";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function handleRequest(request, response) {
|
||||
"use strict";
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
let content = "";
|
||||
let params = new URLSearchParams(request.queryString);
|
||||
let extension = params.get("extension");
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
function handleRequest(request, response) {
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
let query = new URLSearchParams(request.queryString);
|
||||
|
||||
// Set CSP sandbox attributes if caller requests any.
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
Cu.importGlobalProperties(["URLSearchParams"]);
|
||||
|
||||
function handleRequest(request, response) {
|
||||
let params = new URLSearchParams(request.queryString);
|
||||
let uri = params.get("uri");
|
||||
|
|
Загрузка…
Ссылка в новой задаче