Bug 1680325 - Remove references to jshint from dom and layout. r=nika

Depends on D98519

Differential Revision: https://phabricator.services.mozilla.com/D98520
This commit is contained in:
Mark Banner 2020-12-02 19:39:29 +00:00
Родитель 0859249715
Коммит 3a198bf760
21 изменённых файлов: 68 добавлений и 97 удалений

Просмотреть файл

@ -17,7 +17,6 @@
* .process(aManifest, aBaseURL, aMemberName);
*
*/
/* exported EXPORTED_SYMBOLS*/
"use strict";
@ -258,4 +257,4 @@ ImageObjectProcessor.prototype.process = function(
}
}
};
var EXPORTED_SYMBOLS = ["ImageObjectProcessor"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["ImageObjectProcessor"];

Просмотреть файл

@ -250,4 +250,4 @@ var Manifests = {
},
};
var EXPORTED_SYMBOLS = ["Manifests"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["Manifests"];

Просмотреть файл

@ -4,7 +4,6 @@
"use strict";
var ManifestFinder = {
// jshint ignore:line
/**
* Check from content process if DOM Window has a conforming
* manifest link relationship.
@ -59,7 +58,4 @@ function checkForManifest(aWindow) {
return true;
}
var EXPORTED_SYMBOLS = [
// jshint ignore:line
"ManifestFinder",
];
var EXPORTED_SYMBOLS = ["ManifestFinder"];

Просмотреть файл

@ -84,4 +84,4 @@ async function fetchIcon(aWindow, src) {
});
}
var EXPORTED_SYMBOLS = ["ManifestIcons"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["ManifestIcons"];

Просмотреть файл

@ -20,8 +20,6 @@
* dom/ipc/manifestMessages.js
*
* Which is injected into every browser instance via browser.js.
*
* exported ManifestObtainer
*/
"use strict";
@ -32,7 +30,6 @@ const { ManifestProcessor } = ChromeUtils.import(
);
var ManifestObtainer = {
// jshint ignore:line
/**
* Public interface for obtaining a web manifest from a XUL browser, to use
* on the parent process.
@ -170,4 +167,4 @@ async function fetchManifest(aWindow) {
return aWindow.fetch(request);
}
var EXPORTED_SYMBOLS = ["ManifestObtainer"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["ManifestObtainer"];

Просмотреть файл

@ -58,7 +58,6 @@ const domBundle = Services.strings.createBundle(
);
var ManifestProcessor = {
// jshint ignore:line
get defaultDisplayMode() {
return "browser";
},
@ -311,4 +310,4 @@ var ManifestProcessor = {
}
},
};
var EXPORTED_SYMBOLS = ["ManifestProcessor"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["ManifestProcessor"];

Просмотреть файл

@ -1,5 +1,3 @@
// Used by JSHint:
/* global Cu, BrowserTestUtils, ok, add_task, gBrowser */
"use strict";
const { ManifestFinder } = ChromeUtils.import(
"resource://gre/modules/ManifestFinder.jsm"

Просмотреть файл

@ -1,5 +1,3 @@
// Used by JSHint:
/* global Cu, BrowserTestUtils, ok, add_task, gBrowser */
"use strict";
Services.prefs.setBoolPref("dom.manifest.enabled", true);

Просмотреть файл

@ -1,5 +1,3 @@
// Used by JSHint:
/* global ok, is, Cu, BrowserTestUtils, add_task, gBrowser, makeTestURL, requestLongerTimeout*/
"use strict";
Services.prefs.setBoolPref("dom.manifest.enabled", true);

Просмотреть файл

@ -1,5 +1,3 @@
// Used by JSHint:
/* global ok, is, Cu, BrowserTestUtils, add_task, gBrowser, requestLongerTimeout*/
"use strict";
Services.prefs.setBoolPref("dom.manifest.enabled", true);

Просмотреть файл

@ -1,5 +1,3 @@
// Used by JSHint:
/* global Cu, BrowserTestUtils, ok, add_task, gBrowser */
"use strict";
const { Manifests } = ChromeUtils.import("resource://gre/modules/Manifest.jsm");

Просмотреть файл

@ -1,4 +1,3 @@
/* jshint moz:true, browser:true */
/* 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/. */

Просмотреть файл

@ -1,4 +1,3 @@
/* jshint moz:true, browser:true */
/* 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/. */

Просмотреть файл

@ -6,7 +6,7 @@
"use strict";
var EXPORTED_SYMBOLS = ["ControllerStateMachine"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["ControllerStateMachine"];
const { CommandType, State } = ChromeUtils.import(
"resource://gre/modules/presentation/StateMachineHelper.jsm"
@ -20,7 +20,7 @@ function debug(str) {
var handlers = [
function _initHandler(stateMachine, command) {
// shouldn't receive any command at init state.
DEBUG && debug("unexpected command: " + JSON.stringify(command)); // jshint ignore:line
DEBUG && debug("unexpected command: " + JSON.stringify(command));
},
function _connectingHandler(stateMachine, command) {
switch (command.type) {
@ -80,7 +80,7 @@ var handlers = [
},
function _closedHandler(stateMachine, command) {
// ignore every command in closed state.
DEBUG && debug("unexpected command: " + JSON.stringify(command)); // jshint ignore:line
DEBUG && debug("unexpected command: " + JSON.stringify(command));
},
];
@ -193,7 +193,7 @@ ControllerStateMachine.prototype = {
break;
default:
DEBUG &&
debug("unexpected channel close: " + reason + ", " + isByRemote); // jshint ignore:line
debug("unexpected channel close: " + reason + ", " + isByRemote);
break;
}
},

Просмотреть файл

@ -52,7 +52,7 @@ PresentationControlService.prototype = {
startServer(aEncrypted, aPort) {
if (this._isServiceInit()) {
DEBUG &&
log("PresentationControlService - server socket has been initialized"); // jshint ignore:line
log("PresentationControlService - server socket has been initialized");
throw Components.Exception("", Cr.NS_ERROR_FAILURE);
}
@ -70,7 +70,7 @@ PresentationControlService.prototype = {
].getService(Ci.nsILocalCertService);
localCertService.getOrCreateCert(kLocalCertName, {
handleCert(aCert, aRv) {
DEBUG && log("PresentationControlService - handleCert"); // jshint ignore:line
DEBUG && log("PresentationControlService - handleCert");
if (aRv) {
self._notifyServerStopped(aRv);
} else {
@ -93,7 +93,7 @@ PresentationControlService.prototype = {
_serverSocketInit(aPort, aCert) {
if (!this._serverSocket) {
DEBUG && log("PresentationControlService - create server socket fail."); // jshint ignore:line
DEBUG && log("PresentationControlService - create server socket fail.");
throw Components.Exception("", Cr.NS_ERROR_FAILURE);
}
@ -111,14 +111,14 @@ PresentationControlService.prototype = {
} catch (e) {
// NS_ERROR_SOCKET_ADDRESS_IN_USE
DEBUG &&
log("PresentationControlService - init server socket fail: " + e); // jshint ignore:line
log("PresentationControlService - init server socket fail: " + e);
throw Components.Exception("", Cr.NS_ERROR_FAILURE);
}
this._port = this._serverSocket.port;
DEBUG &&
log("PresentationControlService - service start on port: " + this._port); // jshint ignore:line
log("PresentationControlService - service start on port: " + this._port);
// Monitor network interface change to restart server socket.
Services.obs.addObserver(this, "network:offline-status-changed");
@ -188,10 +188,10 @@ PresentationControlService.prototype = {
DEBUG &&
log(
"PresentationControlService - Id has not initialized; connect fails"
); // jshint ignore:line
);
return null;
}
DEBUG && log("PresentationControlService - connect to " + aDeviceInfo.id); // jshint ignore:line
DEBUG && log("PresentationControlService - connect to " + aDeviceInfo.id);
let socketTransport = this._attemptConnect(aDeviceInfo);
return new TCPControlChannel(this, socketTransport, aDeviceInfo, "sender");
@ -233,7 +233,7 @@ PresentationControlService.prototype = {
// Shorten the connection failure procedure.
socketTransport.setTimeout(Ci.nsISocketTransport.TIMEOUT_CONNECT, 2);
} catch (e) {
DEBUG && log("PresentationControlService - createTransport throws: " + e); // jshint ignore:line
DEBUG && log("PresentationControlService - createTransport throws: " + e);
// Pop the exception to |TCPDevice.establishControlChannel|
throw Components.Exception("", Cr.NS_ERROR_FAILURE);
}
@ -246,14 +246,14 @@ PresentationControlService.prototype = {
log(
"PresentationControlService - should never receive remote " +
"session request before server socket initialization"
); // jshint ignore:line
);
return null;
}
DEBUG &&
log(
"PresentationControlService - responseSession to " +
JSON.stringify(aDeviceInfo)
); // jshint ignore:line
);
return new TCPControlChannel(
this,
aSocketTransport,
@ -270,7 +270,7 @@ PresentationControlService.prototype = {
aDeviceInfo.address +
":" +
aDeviceInfo.port
); // jshint ignore:line
);
if (!this.listener) {
this.releaseControlChannel(aControlChannel);
return;
@ -297,7 +297,7 @@ PresentationControlService.prototype = {
aDeviceInfo.address +
":" +
aDeviceInfo.port
); // jshint ignore:line
);
if (!this.listener) {
this.releaseControlChannel(aControlChannel);
return;
@ -319,7 +319,7 @@ PresentationControlService.prototype = {
aDeviceInfo.address +
":" +
aDeviceInfo.port
); // jshint ignore:line
);
if (!this.listener) {
this.releaseControlChannel(aControlChannel);
return;
@ -342,7 +342,7 @@ PresentationControlService.prototype = {
aClientSocket.host +
":" +
aClientSocket.port
); // jshint ignore:line
);
let deviceInfo = new TCPDeviceInfo(aClientSocket.host, aClientSocket.port);
this.holdControlChannel(this.responseSession(deviceInfo, aClientSocket));
},
@ -360,13 +360,13 @@ PresentationControlService.prototype = {
// nsIServerSocketListener (Triggered by nsIServerSocket.init)
onStopListening(aServerSocket, aStatus) {
DEBUG && log("PresentationControlService - onStopListening: " + aStatus); // jshint ignore:line
DEBUG && log("PresentationControlService - onStopListening: " + aStatus);
},
close() {
DEBUG && log("PresentationControlService - close"); // jshint ignore:line
DEBUG && log("PresentationControlService - close");
if (this._isServiceInit()) {
DEBUG && log("PresentationControlService - close server socket"); // jshint ignore:line
DEBUG && log("PresentationControlService - close server socket");
this._serverSocket.close();
this._serverSocket = null;
@ -379,11 +379,11 @@ PresentationControlService.prototype = {
// nsIObserver
observe(aSubject, aTopic, aData) {
DEBUG && log("PresentationControlService - observe: " + aTopic); // jshint ignore:line
DEBUG && log("PresentationControlService - observe: " + aTopic);
switch (aTopic) {
case "network:offline-status-changed": {
if (aData == "offline") {
DEBUG && log("network offline"); // jshint ignore:line
DEBUG && log("network offline");
return;
}
this._restartServer();
@ -393,7 +393,7 @@ PresentationControlService.prototype = {
},
_restartServer() {
DEBUG && log("PresentationControlService - restart service"); // jshint ignore:line
DEBUG && log("PresentationControlService - restart service");
// restart server socket
if (this._isServiceInit()) {
@ -402,7 +402,7 @@ PresentationControlService.prototype = {
try {
this.startServer();
} catch (e) {
DEBUG && log("PresentationControlService - restart service fail: " + e); // jshint ignore:line
DEBUG && log("PresentationControlService - restart service fail: " + e);
}
}
},
@ -494,7 +494,7 @@ function TCPControlChannel(
deviceInfo,
direction
) {
DEBUG && log("create TCPControlChannel for : " + direction); // jshint ignore:line
DEBUG && log("create TCPControlChannel for : " + direction);
this._deviceInfo = deviceInfo;
this._direction = direction;
this._transport = transport;
@ -571,7 +571,7 @@ TCPControlChannel.prototype = {
// Start a guard timer to ensure terminateAck is processed.
this._terminateTimer = setTimeout(() => {
DEBUG &&
log("TCPControlChannel - terminate timeout: " + aPresentationId); // jshint ignore:line
log("TCPControlChannel - terminate timeout: " + aPresentationId);
delete this._terminateTimer;
if (this._pendingDisconnect) {
this._pendingDisconnect();
@ -595,7 +595,7 @@ TCPControlChannel.prototype = {
// may throw an exception
_send(aMsg) {
DEBUG && log("TCPControlChannel - Send: " + JSON.stringify(aMsg, null, 2)); // jshint ignore:line
DEBUG && log("TCPControlChannel - Send: " + JSON.stringify(aMsg, null, 2));
/**
* XXX In TCP streaming, it is possible that more than one message in one
@ -608,14 +608,14 @@ TCPControlChannel.prototype = {
try {
this._output.write(message, message.length);
} catch (e) {
DEBUG && log("TCPControlChannel - Failed to send message: " + e.name); // jshint ignore:line
DEBUG && log("TCPControlChannel - Failed to send message: " + e.name);
throw e;
}
},
_setSecurityObserver(observer) {
if (this._transport && this._transport.securityInfo) {
DEBUG && log("TCPControlChannel - setSecurityObserver: " + observer); // jshint ignore:line
DEBUG && log("TCPControlChannel - setSecurityObserver: " + observer);
let connectionInfo = this._transport.securityInfo.QueryInterface(
Ci.nsITLSServerConnectionInfo
);
@ -638,7 +638,7 @@ TCPControlChannel.prototype = {
// nsIAsyncOutputStream
onOutputStreamReady() {
DEBUG && log("TCPControlChannel - onOutputStreamReady"); // jshint ignore:line
DEBUG && log("TCPControlChannel - onOutputStreamReady");
if (this._outgoingMsgs.length === 0) {
return;
}
@ -661,11 +661,11 @@ TCPControlChannel.prototype = {
// nsIAsyncInputStream (Triggered by nsIInputStream.asyncWait)
// Only used for detecting connection refused
onInputStreamReady(aStream) {
DEBUG && log("TCPControlChannel - onInputStreamReady"); // jshint ignore:line
DEBUG && log("TCPControlChannel - onInputStreamReady");
try {
aStream.available();
} catch (e) {
DEBUG && log("TCPControlChannel - onInputStreamReady error: " + e.name); // jshint ignore:line
DEBUG && log("TCPControlChannel - onInputStreamReady error: " + e.name);
// NS_ERROR_CONNECTION_REFUSED
this._notifyDisconnected(e.result);
}
@ -679,7 +679,7 @@ TCPControlChannel.prototype = {
aStatus.toString(16) +
" with role: " +
this._direction
); // jshint ignore:line
);
if (aStatus === Ci.nsISocketTransport.STATUS_CONNECTED_TO) {
this._outgoingEnabled = true;
this._createInputStreamPump();
@ -689,7 +689,7 @@ TCPControlChannel.prototype = {
// nsIRequestObserver (Triggered by nsIInputStreamPump.asyncRead)
onStartRequest() {
DEBUG &&
log("TCPControlChannel - onStartRequest with role: " + this._direction); // jshint ignore:line
log("TCPControlChannel - onStartRequest with role: " + this._direction);
this._incomingEnabled = true;
},
@ -701,7 +701,7 @@ TCPControlChannel.prototype = {
aStatus +
" with role: " +
this._direction
); // jshint ignore:line
);
this._stateMachine.onChannelClosed(aStatus, true);
},
@ -711,7 +711,7 @@ TCPControlChannel.prototype = {
aInputStream,
aInputStream.available()
);
DEBUG && log("TCPControlChannel - onDataAvailable: " + data); // jshint ignore:line
DEBUG && log("TCPControlChannel - onDataAvailable: " + data);
// Parser of line delimited JSON. Please see |_send| for more informaiton.
let jsonArray = data.split("\n");
@ -721,7 +721,7 @@ TCPControlChannel.prototype = {
try {
msg = JSON.parse(json);
} catch (e) {
DEBUG && log("TCPSignalingChannel - error in parsing json: " + e); // jshint ignore:line
DEBUG && log("TCPSignalingChannel - error in parsing json: " + e);
}
this._handleMessage(msg);
@ -734,7 +734,7 @@ TCPControlChannel.prototype = {
}
DEBUG &&
log("TCPControlChannel - create pump with role: " + this._direction); // jshint ignore:line
log("TCPControlChannel - create pump with role: " + this._direction);
this._pump = Cc["@mozilla.org/network/input-stream-pump;1"].createInstance(
Ci.nsIInputStreamPump
);
@ -751,7 +751,7 @@ TCPControlChannel.prototype = {
JSON.stringify(this._deviceInfo) +
": " +
JSON.stringify(aMsg)
); // jshint ignore:line
);
this._stateMachine.onCommand(aMsg);
},
@ -760,7 +760,7 @@ TCPControlChannel.prototype = {
},
set listener(aListener) {
DEBUG && log("TCPControlChannel - set listener: " + aListener); // jshint ignore:line
DEBUG && log("TCPControlChannel - set listener: " + aListener);
if (!aListener) {
this._listener = null;
return;
@ -769,7 +769,7 @@ TCPControlChannel.prototype = {
this._listener = aListener;
if (this._pendingOpen) {
this._pendingOpen = false;
DEBUG && log("TCPControlChannel - notify pending opened"); // jshint ignore:line
DEBUG && log("TCPControlChannel - notify pending opened");
this._listener.notifyConnected();
}
@ -778,7 +778,7 @@ TCPControlChannel.prototype = {
DEBUG &&
log(
"TCPControlChannel - notify pending offer: " + JSON.stringify(offer)
); // jshint ignore:line
);
this._listener.onOffer(new ChannelDescription(offer));
this._pendingOffer = null;
}
@ -788,19 +788,19 @@ TCPControlChannel.prototype = {
DEBUG &&
log(
"TCPControlChannel - notify pending answer: " + JSON.stringify(answer)
); // jshint ignore:line
);
this._listener.onAnswer(new ChannelDescription(answer));
this._pendingAnswer = null;
}
if (this._pendingClose) {
DEBUG && log("TCPControlChannel - notify pending closed"); // jshint ignore:line
DEBUG && log("TCPControlChannel - notify pending closed");
this._notifyDisconnected(this._pendingCloseReason);
this._pendingClose = null;
}
if (this._pendingReconnect) {
DEBUG && log("TCPControlChannel - notify pending reconnected"); // jshint ignore:line
DEBUG && log("TCPControlChannel - notify pending reconnected");
this._notifyReconnected();
this._pendingReconnect = false;
}
@ -818,7 +818,7 @@ TCPControlChannel.prototype = {
this._pendingOffer = aOffer;
return;
}
DEBUG && log("TCPControlChannel - notify offer: " + JSON.stringify(aOffer)); // jshint ignore:line
DEBUG && log("TCPControlChannel - notify offer: " + JSON.stringify(aOffer));
this._listener.onOffer(new ChannelDescription(aOffer));
},
@ -831,7 +831,7 @@ TCPControlChannel.prototype = {
return;
}
DEBUG &&
log("TCPControlChannel - notify answer: " + JSON.stringify(aAnswer)); // jshint ignore:line
log("TCPControlChannel - notify answer: " + JSON.stringify(aAnswer));
this._listener.onAnswer(new ChannelDescription(aAnswer));
},
@ -845,7 +845,7 @@ TCPControlChannel.prototype = {
}
DEBUG &&
log("TCPControlChannel - notify opened with role: " + this._direction); // jshint ignore:line
log("TCPControlChannel - notify opened with role: " + this._direction);
this._listener.notifyConnected();
},
@ -866,7 +866,7 @@ TCPControlChannel.prototype = {
}
DEBUG &&
log("TCPControlChannel - notify closed with role: " + this._direction); // jshint ignore:line
log("TCPControlChannel - notify closed with role: " + this._direction);
this._listener.notifyDisconnected(aReason);
},
@ -879,7 +879,7 @@ TCPControlChannel.prototype = {
DEBUG &&
log(
"TCPControlChannel - notify reconnected with role: " + this._direction
); // jshint ignore:line
);
this._listener.notifyReconnected();
},
@ -917,7 +917,7 @@ TCPControlChannel.prototype = {
},
disconnect(aReason) {
DEBUG && log("TCPControlChannel - disconnect with reason: " + aReason); // jshint ignore:line
DEBUG && log("TCPControlChannel - disconnect with reason: " + aReason);
// Pending disconnect during termination procedure.
if (this._terminateTimer) {
@ -936,14 +936,14 @@ TCPControlChannel.prototype = {
// Start a guard timer to ensure the transport will be closed.
this._disconnectTimer = setTimeout(() => {
DEBUG && log("TCPControlChannel - disconnect timeout"); // jshint ignore:line
DEBUG && log("TCPControlChannel - disconnect timeout");
this._closeTransport();
}, kDisconnectTimeout);
}
},
reconnect(aPresentationId, aUrl) {
DEBUG && log("TCPControlChannel - reconnect with role: " + this._direction); // jshint ignore:line
DEBUG && log("TCPControlChannel - reconnect with role: " + this._direction);
if (this._direction != "sender") {
throw Components.Exception("", Cr.NS_ERROR_FAILURE);
}
@ -1006,7 +1006,7 @@ TCPControlChannel.prototype = {
// Requested presentation Id doesn't matched with the one in ACK.
// Disconnect the control channel with error.
DEBUG &&
log("TCPControlChannel - unmatched terminatingId: " + presentationId); // jshint ignore:line
log("TCPControlChannel - unmatched terminatingId: " + presentationId);
this.disconnect(Cr.NS_ERROR_FAILURE);
}

Просмотреть файл

@ -6,7 +6,7 @@
"use strict";
var EXPORTED_SYMBOLS = ["ReceiverStateMachine"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["ReceiverStateMachine"];
const { CommandType, State } = ChromeUtils.import(
"resource://gre/modules/presentation/StateMachineHelper.jsm"
@ -20,7 +20,7 @@ function debug(str) {
var handlers = [
function _initHandler(stateMachine, command) {
// shouldn't receive any command at init state
DEBUG && debug("unexpected command: " + JSON.stringify(command)); // jshint ignore:line
DEBUG && debug("unexpected command: " + JSON.stringify(command));
},
function _connectingHandler(stateMachine, command) {
switch (command.type) {
@ -91,7 +91,7 @@ var handlers = [
},
function _closedHandler(stateMachine, command) {
// ignore every command in closed state.
DEBUG && debug("unexpected command: " + JSON.stringify(command)); // jshint ignore:line
DEBUG && debug("unexpected command: " + JSON.stringify(command));
},
];
@ -190,7 +190,7 @@ ReceiverStateMachine.prototype = {
break;
default:
DEBUG &&
debug("unexpected channel close: " + reason + ", " + isByRemote); // jshint ignore:line
debug("unexpected channel close: " + reason + ", " + isByRemote);
break;
}
},

Просмотреть файл

@ -3,11 +3,10 @@
/* 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/. */
/* jshint esnext:true, globalstrict:true, moz:true, undef:true, unused:true */
"use strict";
var EXPORTED_SYMBOLS = ["State", "CommandType"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["State", "CommandType"];
const State = Object.freeze({
INIT: 0,
@ -35,5 +34,5 @@ const CommandType = Object.freeze({
ICE_CANDIDATE: "ice-candidate", // { candidate: <string> }
});
this.State = State; // jshint ignore:line
this.CommandType = CommandType; // jshint ignore:line
this.State = State;
this.CommandType = CommandType;

Просмотреть файл

@ -1,4 +1,3 @@
/* jshint moz: true, esnext: true */
/* 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/. */

Просмотреть файл

@ -1,4 +1,3 @@
/* jshint moz: true, esnext: true */
/* 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/. */

Просмотреть файл

@ -1,4 +1,3 @@
/* jshint moz: true, esnext: true */
/* 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/. */

Просмотреть файл

@ -1,9 +1,5 @@
// # Bug 418986, part 2.
/* jshint esnext:true */
/* jshint loopfunc:true */
/* global window, screen, ok, SpecialPowers, matchMedia */
const is_chrome_window = window.location.protocol === "chrome:";
const HTML_NS = "http://www.w3.org/1999/xhtml";