Bug 1245649: Merge browser and toolkit eslint rule settings. r=felipe

--HG--
extra : commitid : DrYPQokQp9O
extra : rebase_source : e0bacf124280ecdbeccfc34dbf66fd80f5a9d296
This commit is contained in:
Dave Townsend 2016-02-03 13:12:18 -08:00
Родитель 0b0b596851
Коммит 541b00204a
112 изменённых файлов: 358 добавлений и 371 удалений

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

@ -2,12 +2,4 @@
"extends": [
"../toolkit/.eslintrc"
],
"rules": {
// No redeclaring variables
"no-redeclare": 2,
// Functions must always return something or nothing
"consistent-return": 2,
}
}

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

@ -24,7 +24,7 @@
// "computed-property-spacing": [2, "never"],
// Functions must always return something or nothing
// "consistent-return": 2,
"consistent-return": 2,
// Require braces around blocks that start a new line
// Note that this rule is likely to be overridden on a per-directory basis
@ -122,7 +122,7 @@
// "no-octal": 2,
// No redeclaring variables
// "no-redeclare": 2,
"no-redeclare": 2,
// No unnecessary comparisons
// "no-self-compare": 2,

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

@ -7,11 +7,11 @@
var search = window.location.href.match(/^.*\?(.*)$/);
var searchParams = new URLSearchParams(search ? search[1] : '');
var storage = searchParams.get('storage');
var context = searchParams.get('context');
var cacheContext = searchParams.get('context');
// The context is in a format as used by the HTTP cache v2 back end
if (context)
var [context, isAnon, isInBrowser, appId, isPrivate] = context.match(/(a,)?(b,)?(i\d+,)?(p,)?/);
if (cacheContext)
var [context, isAnon, isInBrowser, appId, isPrivate] = cacheContext.match(/(a,)?(b,)?(i\d+,)?(p,)?/);
if (appId)
appId = appId.match(/i(\d+),/)[1];

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

@ -78,7 +78,7 @@ function frameScript() {
}
if (!re) {
return;
return undefined;
}
let match = elt.textContent.match(re);

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

@ -6,8 +6,6 @@ Components.utils.import("resource://gre/modules/AppConstants.jsm");
function AppPicker() {};
var g_dialog = null;
AppPicker.prototype =
{
// Class members

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

@ -229,7 +229,7 @@ ContentPrefService.prototype = {
let value = this._privModeStorage.get(group, aName);
if (aCallback) {
this._scheduleCallback(function(){aCallback.onResult(value);});
return;
return undefined;
}
return value;
}
@ -598,7 +598,7 @@ ContentPrefService.prototype = {
value = this._cache.get(aGroup, aSetting);
if (aCallback) {
this._scheduleCallback(function(){aCallback.onResult(value);});
return;
return undefined;
}
return value;
}
@ -648,7 +648,7 @@ ContentPrefService.prototype = {
value = this._cache.get(null, aName);
if (aCallback) {
this._scheduleCallback(function(){aCallback.onResult(value);});
return;
return undefined;
}
return value;
}

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

@ -357,10 +357,10 @@ function run_test() {
}
};
var uri1 = ContentPrefTest.getURI("http://www.domain1.com/");
var uri2 = ContentPrefTest.getURI("http://foo.domain1.com/");
var uri3 = ContentPrefTest.getURI("http://domain1.com/");
var uri4 = ContentPrefTest.getURI("http://www.domain2.com/");
let uri1 = ContentPrefTest.getURI("http://www.domain1.com/");
let uri2 = ContentPrefTest.getURI("http://foo.domain1.com/");
let uri3 = ContentPrefTest.getURI("http://domain1.com/");
let uri4 = ContentPrefTest.getURI("http://www.domain2.com/");
cps.setPref(uri1, "test.byname.1", 1);
cps.setPref(uri1, "test.byname.2", 2);

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

@ -606,12 +606,12 @@ this.CrashManager.prototype = Object.freeze({
try {
yield it.forEach((entry, index, it) => {
if (entry.isDir) {
return;
return undefined;
}
let match = re.exec(entry.name);
if (!match) {
return;
return undefined;
}
return OS.File.stat(entry.path).then((info) => {

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

@ -50,7 +50,7 @@ const RSS090NS = "http://my.netscape.com/rdf/simple/0.9/";
/***** Some general utils *****/
function strToURI(link, base) {
var base = base || null;
base = base || null;
if (!gIoService)
gIoService = Cc[IO_CONTRACTID].getService(Ci.nsIIOService);
try {
@ -870,7 +870,7 @@ XHTMLHandler.prototype = {
},
endDocument: function XH_endDocument() {
},
startElement: function XH_startElement(uri, localName, qName, attributes) {
startElement: function XH_startElement(namespace, localName, qName, attributes) {
++this._depth;
this._inScopeNS.push([]);
@ -881,7 +881,7 @@ XHTMLHandler.prototype = {
return;
// If it's an XHTML element, record it. Otherwise, it's ignored.
if (uri == XHTML_NS) {
if (namespace == XHTML_NS) {
this._buf += "<" + localName;
var uri;
for (var i=0; i < attributes.length; ++i) {
@ -1669,7 +1669,7 @@ FeedProcessor.prototype = {
else
return; // don't know about this interface
var propName = localName;
let propName = localName;
var prefix = gNamespaces[uri];
// synonyms

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

@ -206,7 +206,7 @@ function selectOnOK()
try {
var ios = Components.classes[NS_IOSERVICE_CONTRACTID].getService(Components.interfaces.nsIIOService);
retvals.fileURL = ios.newURI(textInput.value, null, null);
var fileList = [];
let fileList = [];
if (retvals.fileURL instanceof Components.interfaces.nsIFileURL)
fileList.push(retvals.fileURL.file);
gFilesEnumerator.mFiles = fileList;

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

@ -1,9 +0,0 @@
{
"extends": [
"../../.eslintrc"
],
"rules": {
"eol-last": 0,
}
}

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

@ -44,7 +44,7 @@ this.Microformats = {
return false;
}
if (!Microformats[name] || !rootElement) {
return;
return undefined;
}
targetArray = targetArray || [];
@ -90,7 +90,7 @@ this.Microformats = {
if (node.getBoundingClientRect) {
var box = node.getBoundingClientRect();
} else {
var box = node.ownerDocument.getBoxObjectFor(node);
box = node.ownerDocument.getBoxObjectFor(node);
}
/* If the parent has is an empty box, double check the children */
if ((box.height == 0) || (box.width == 0)) {
@ -639,7 +639,7 @@ this.Microformats = {
}
}
if (!validType) {
return;
return undefined;
}
}
return result;
@ -760,7 +760,7 @@ this.Microformats = {
propobj = Microformats[mfname].properties[propname];
} else {
/* If we didn't get a property, bail */
return;
return undefined;
}
/* Query the correct set of nodes (rel or class) based on the setting */
/* in the property */
@ -839,7 +839,7 @@ this.Microformats = {
propobj, propname);
}
}
return;
return undefined;
},
/**
* Internal parser API used to resolve includes and headers. Includes are
@ -919,7 +919,7 @@ this.Microformats = {
var dateString;
var tzOffset = 0;
if (!dateArray) {
return;
return undefined;
}
if (dateArray[1]) {
dateString = dateArray[1];
@ -1399,7 +1399,7 @@ var hCard_definition = {
return [fns[0]];
}
}
return;
return undefined;
}
},
"note" : {
@ -1486,7 +1486,7 @@ hCalendar.prototype.toString = function() {
if (this.dtstart) {
return this.summary;
}
return;
return undefined;
}
var hCalendar_definition = {
@ -1652,12 +1652,12 @@ this.geo = function geo(node, validate) {
geo.prototype.toString = function() {
if (this.latitude != undefined) {
if (!isFinite(this.latitude) || (this.latitude > 360) || (this.latitude < -360)) {
return;
return undefined;
}
}
if (this.longitude != undefined) {
if (!isFinite(this.longitude) || (this.longitude > 360) || (this.longitude < -360)) {
return;
return undefined;
}
}

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

@ -2415,7 +2415,7 @@ var Microformats; // jshint ignore:line
return Components.classes["@mozilla.org/xmlextras/domparser;1"]
.createInstance(Components.interfaces.nsIDOMParser);
} catch (e) {
return;
return undefined;
}
} else {
return new DOMParser();

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

@ -104,4 +104,4 @@ describe('Microformat.count', function() {
});
});

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

@ -34,4 +34,4 @@ describe('experimental', function() {
});
});
});

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

@ -592,4 +592,4 @@ describe('Microformat.get', function() {
});
});

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

@ -217,4 +217,4 @@ describe('Microformat.getParent', function() {
});
});
});

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

@ -182,4 +182,4 @@ describe('Microformat.hasMicroformats', function() {
});
});

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

@ -143,4 +143,4 @@ describe('Microformat.isMicroformat', function() {
assert.isFalse( Microformats.isMicroformat( undefined ) );
});
});
});

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

@ -100,4 +100,4 @@
}
};
}
}(DOMParser));
}(DOMParser));

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

@ -31,7 +31,7 @@ var Modules = (function (modules) {
return Components.classes["@mozilla.org/xmlextras/domparser;1"]
.createInstance(Components.interfaces.nsIDOMParser);
} catch (e) {
return;
return undefined;
}
} else {
return new DOMParser();

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

@ -1 +1 @@
modules.livingStandard = '2015-09-25T12:26:04Z';
modules.livingStandard = '2015-09-25T12:26:04Z';

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

@ -436,4 +436,4 @@ var Modules = (function (modules) {
return modules;
} (Modules || {}));
} (Modules || {}));

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

@ -147,4 +147,4 @@ var Modules = (function (modules) {
return modules;
} (Modules || {}));
} (Modules || {}));

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

@ -197,4 +197,4 @@ var Modules = (function (modules) {
return modules;
} (Modules || {}));
} (Modules || {}));

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

@ -148,4 +148,4 @@ var Modules = (function (modules) {
return modules;
} (Modules || {}));
} (Modules || {}));

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

@ -1 +1 @@
modules.version = '1.3.3';
modules.version = '1.3.3';

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

@ -203,4 +203,4 @@ describe('Modules.domutils', function() {
});
});
});

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

@ -47,4 +47,4 @@ describe('Modules.html', function() {
});
});

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

@ -53,4 +53,4 @@ describe('Modules.text', function() {
});
});

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

@ -22,4 +22,4 @@ describe('Modules.url', function() {
assert.equal( Modules.url.resolve( 'http://glennjones.net/', undefined ), 'http://glennjones.net/' );
});
});
});

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

@ -90,4 +90,4 @@ describe('Modules.utilities', function() {
});
});

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

@ -96,4 +96,4 @@
}
};
}
}(DOMParser));
}(DOMParser));

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

@ -515,4 +515,4 @@ function js_beautify(js_source_text, indent_size, indent_character)
}
return false;
}
}
}

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

@ -5,8 +5,8 @@
* MIT Licensed
*/
var used = []
, exports = module.exports = {};
var used = [];
exports = module.exports = {};
/*!
* Chai version
@ -198,8 +198,8 @@ module.exports = function (_chai, util) {
if (true !== config.showDiff) showDiff = false;
if (!ok) {
var msg = util.getMessage(this, arguments)
, actual = util.getActual(this, arguments);
msg = util.getMessage(this, arguments)
var actual = util.getActual(this, arguments);
throw new AssertionError(msg, {
actual: actual
, expected: expected
@ -497,7 +497,7 @@ module.exports = function (chai, _) {
return;
}
var subset = {};
for (var k in val) subset[k] = obj[k];
for (k in val) subset[k] = obj[k];
expected = _.eql(subset, val);
} else {
expected = obj && ~obj.indexOf(val);
@ -3943,7 +3943,7 @@ module.exports = function hasProperty(name, obj) {
* Main exports
*/
var exports = module.exports = {};
exports = module.exports = {};
/*!
* test utility
@ -4193,8 +4193,8 @@ function formatValue(ctx, value, recurseTimes) {
// Make functions say that they are functions
if (typeof value === 'function') {
var name = getName(value);
var nameSuffix = name ? ': ' + name : '';
name = getName(value);
nameSuffix = name ? ': ' + name : '';
base = ' [Function' + nameSuffix + ']';
}
@ -5074,7 +5074,7 @@ module.exports = require('./lib/type');
* Primary Exports
*/
var exports = module.exports = getType;
exports = module.exports = getType;
/*!
* Detectable javascript natives
@ -5220,7 +5220,7 @@ arguments[4][31][0].apply(exports,arguments)
* Primary Exports
*/
var exports = module.exports = getType;
exports = module.exports = getType;
/**
* ### typeOf (obj)
@ -5349,4 +5349,4 @@ Library.prototype.test = function(obj, type) {
module.exports = require('./lib/chai');
},{"./lib/chai":1}]},{},[35])(35)
});
});

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

@ -59,4 +59,4 @@ window.onload = function() {
}
};
};

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

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

@ -2,4 +2,4 @@
* deep-diff.
* Licensed under the MIT License.
*/
(function(e,t){"use strict";if(typeof define==="function"&&define.amd){define([],t)}else if(typeof exports==="object"){module.exports=t()}else{e.DeepDiff=t()}})(this,function(e){"use strict";var t,n,r=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){r.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function a(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}a(f,i);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}a(u,i);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}a(l,i);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}a(s,i);function h(e,t,n){var r=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,r);return e}function c(e){var t=typeof e;if(t!=="object"){return t}if(e===Math){return"math"}else if(e===null){return"null"}else if(Array.isArray(e)){return"array"}else if(e instanceof Date){return"date"}else if(/^\/.*\//.test(e.toString())){return"regexp"}return"object"}function o(t,n,r,a,i,p,b){i=i||[];var d=i.slice(0);if(typeof p!=="undefined"){if(a&&a(d,p,{lhs:t,rhs:n})){return}d.push(p)}var v=typeof t;var y=typeof n;if(v==="undefined"){if(y!=="undefined"){r(new u(d,n))}}else if(y==="undefined"){r(new l(d,t))}else if(c(t)!==c(n)){r(new f(d,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!==0){r(new f(d,t,n))}else if(v==="object"&&t!==null&&n!==null){b=b||[];if(b.indexOf(t)<0){b.push(t);if(Array.isArray(t)){var k,m=t.length;for(k=0;k<t.length;k++){if(k>=n.length){r(new s(d,k,new l(e,t[k])))}else{o(t[k],n[k],r,a,d,k,b)}}while(k<n.length){r(new s(d,k,new u(e,n[k++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(i,f){var u=w.indexOf(i);if(u>=0){o(t[i],n[i],r,a,d,i,b);w=h(w,u)}else{o(t[i],e,r,a,d,i,b)}});w.forEach(function(t){o(e,n[t],r,a,d,t,b)})}b.length=b.length-1}}else if(t!==n){if(!(v==="number"&&isNaN(t)&&isNaN(n))){r(new f(d,t,n))}}}function p(t,n,r,a){a=a||[];o(t,n,function(e){if(e){a.push(e)}},r);return a.length?a:e}function b(e,t,n){if(n.path&&n.path.length){var r=e[t],a,i=n.path.length-1;for(a=0;a<i;a++){r=r[n.path[a]]}switch(n.kind){case"A":b(r[n.path[a]],n.index,n.item);break;case"D":delete r[n.path[a]];break;case"E":case"N":r[n.path[a]]=n.rhs;break}}else{switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e=h(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function d(e,t,n){if(e&&t&&n&&n.kind){var r=e,a=-1,i=n.path.length-1;while(++a<i){if(typeof r[n.path[a]]==="undefined"){r[n.path[a]]=typeof n.path[a]==="number"?[]:{}}r=r[n.path[a]]}switch(n.kind){case"A":b(r[n.path[a]],n.index,n.item);break;case"D":delete r[n.path[a]];break;case"E":case"N":r[n.path[a]]=n.rhs;break}}}function v(e,t,n){if(n.path&&n.path.length){var r=e[t],a,i=n.path.length-1;for(a=0;a<i;a++){r=r[n.path[a]]}switch(n.kind){case"A":v(r[n.path[a]],n.index,n.item);break;case"D":r[n.path[a]]=n.lhs;break;case"E":r[n.path[a]]=n.lhs;break;case"N":delete r[n.path[a]];break}}else{switch(n.kind){case"A":v(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=h(e,t);break}}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var r=e,a,i;i=n.path.length-1;for(a=0;a<i;a++){if(typeof r[n.path[a]]==="undefined"){r[n.path[a]]={}}r=r[n.path[a]]}switch(n.kind){case"A":v(r[n.path[a]],n.index,n.item);break;case"D":r[n.path[a]]=n.lhs;break;case"E":r[n.path[a]]=n.lhs;break;case"N":delete r[n.path[a]];break}}}function k(e,t,n){if(e&&t){var r=function(r){if(!n||n(e,t,r)){d(e,t,r)}};o(e,t,r)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:o,enumerable:true},applyDiff:{value:k,enumerable:true},applyChange:{value:d,enumerable:true},revertChange:{value:y,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(r){r.forEach(function(e){e()});r=null}return p},enumerable:true}});return p});
(function(e,t){"use strict";if(typeof define==="function"&&define.amd){define([],t)}else if(typeof exports==="object"){module.exports=t()}else{e.DeepDiff=t()}})(this,function(e){"use strict";var t,n,r=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){r.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function a(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}a(f,i);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}a(u,i);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}a(l,i);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}a(s,i);function h(e,t,n){var r=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,r);return e}function c(e){var t=typeof e;if(t!=="object"){return t}if(e===Math){return"math"}else if(e===null){return"null"}else if(Array.isArray(e)){return"array"}else if(e instanceof Date){return"date"}else if(/^\/.*\//.test(e.toString())){return"regexp"}return"object"}function o(t,n,r,a,i,p,b){i=i||[];var d=i.slice(0);if(typeof p!=="undefined"){if(a&&a(d,p,{lhs:t,rhs:n})){return}d.push(p)}var v=typeof t;var y=typeof n;if(v==="undefined"){if(y!=="undefined"){r(new u(d,n))}}else if(y==="undefined"){r(new l(d,t))}else if(c(t)!==c(n)){r(new f(d,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!==0){r(new f(d,t,n))}else if(v==="object"&&t!==null&&n!==null){b=b||[];if(b.indexOf(t)<0){b.push(t);if(Array.isArray(t)){var k,m=t.length;for(k=0;k<t.length;k++){if(k>=n.length){r(new s(d,k,new l(e,t[k])))}else{o(t[k],n[k],r,a,d,k,b)}}while(k<n.length){r(new s(d,k,new u(e,n[k++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(i,f){var u=w.indexOf(i);if(u>=0){o(t[i],n[i],r,a,d,i,b);w=h(w,u)}else{o(t[i],e,r,a,d,i,b)}});w.forEach(function(t){o(e,n[t],r,a,d,t,b)})}b.length=b.length-1}}else if(t!==n){if(!(v==="number"&&isNaN(t)&&isNaN(n))){r(new f(d,t,n))}}}function p(t,n,r,a){a=a||[];o(t,n,function(e){if(e){a.push(e)}},r);return a.length?a:e}function b(e,t,n){if(n.path&&n.path.length){var r=e[t],a,i=n.path.length-1;for(a=0;a<i;a++){r=r[n.path[a]]}switch(n.kind){case"A":b(r[n.path[a]],n.index,n.item);break;case"D":delete r[n.path[a]];break;case"E":case"N":r[n.path[a]]=n.rhs;break}}else{switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e=h(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function d(e,t,n){if(e&&t&&n&&n.kind){var r=e,a=-1,i=n.path.length-1;while(++a<i){if(typeof r[n.path[a]]==="undefined"){r[n.path[a]]=typeof n.path[a]==="number"?[]:{}}r=r[n.path[a]]}switch(n.kind){case"A":b(r[n.path[a]],n.index,n.item);break;case"D":delete r[n.path[a]];break;case"E":case"N":r[n.path[a]]=n.rhs;break}}}function v(e,t,n){if(n.path&&n.path.length){var r=e[t],a,i=n.path.length-1;for(a=0;a<i;a++){r=r[n.path[a]]}switch(n.kind){case"A":v(r[n.path[a]],n.index,n.item);break;case"D":r[n.path[a]]=n.lhs;break;case"E":r[n.path[a]]=n.lhs;break;case"N":delete r[n.path[a]];break}}else{switch(n.kind){case"A":v(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=h(e,t);break}}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var r=e,a,i;i=n.path.length-1;for(a=0;a<i;a++){if(typeof r[n.path[a]]==="undefined"){r[n.path[a]]={}}r=r[n.path[a]]}switch(n.kind){case"A":v(r[n.path[a]],n.index,n.item);break;case"D":r[n.path[a]]=n.lhs;break;case"E":r[n.path[a]]=n.lhs;break;case"N":delete r[n.path[a]];break}}}function k(e,t,n){if(e&&t){var r=function(r){if(!n||n(e,t,r)){d(e,t,r)}};o(e,t,r)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:o,enumerable:true},applyDiff:{value:k,enumerable:true},applyChange:{value:d,enumerable:true},revertChange:{value:y,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(r){r.forEach(function(e){e()});r=null}return p},enumerable:true}});return p});

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

@ -155,7 +155,7 @@ var JsDiff = (function() {
this.pushComponent(basePath.components, newString[basePath.newPos], true, undefined);
}
var oldPos = this.extractCommon(basePath, newString, oldString, diagonalPath);
oldPos = this.extractCommon(basePath, newString, oldString, diagonalPath);
if (basePath.newPos+1 >= newLen && oldPos+1 >= oldLen) {
return basePath.components;
@ -369,7 +369,7 @@ var JsDiff = (function() {
}
var str = oldStr.split('\n');
for (var i = diff.length - 1; i >= 0; i--) {
for (i = diff.length - 1; i >= 0; i--) {
var d = diff[i];
for (var j = 0; j < d.oldlength; j++) {
if(str[d.start-1+j] !== d.oldlines[j]) {
@ -872,8 +872,8 @@ Context.prototype.skip = function(){
Context.prototype.inspect = function(){
return JSON.stringify(this, function(key, val){
if ('_runnable' == key) return;
if ('test' == key) return;
if ('_runnable' == key) return undefined;
if ('test' == key) return undefined;
return val;
}, 2);
};
@ -926,7 +926,7 @@ Hook.prototype.constructor = Hook;
Hook.prototype.error = function(err){
if (0 == arguments.length) {
var err = this._error;
err = this._error;
this._error = null;
return err;
}
@ -1891,7 +1891,7 @@ module.exports = function(val, options){
function parse(str) {
var match = /^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(str);
if (!match) return;
if (!match) return undefined;
var n = parseFloat(match[1]);
var type = (match[2] || 'ms').toLowerCase();
switch (type) {
@ -1957,7 +1957,7 @@ function longFormat(ms) {
*/
function plural(ms, n, name) {
if (ms < n) return;
if (ms < n) return undefined;
if (ms < n * 1.5) return Math.floor(ms / n) + ' ' + name;
return Math.ceil(ms / n) + ' ' + name + 's';
}
@ -2780,9 +2780,9 @@ function HTML(runner) {
var url = self.testURL(test);
var el = fragment('<li class="test pass %e"><h2>%e<span class="duration">%ems</span> <a href="%s" class="replay">‣</a></h2></li>', test.speed, test.title, test.duration, url);
} else if (test.pending) {
var el = fragment('<li class="test pass pending"><h2>%e</h2></li>', test.title);
el = fragment('<li class="test pass pending"><h2>%e</h2></li>', test.title);
} else {
var el = fragment('<li class="test fail"><h2>%e <a href="%e" class="replay">‣</a></h2></li>', test.title, self.testURL(test));
el = fragment('<li class="test fail"><h2>%e <a href="%e" class="replay">‣</a></h2></li>', test.title, self.testURL(test));
var str = test.err.stack || test.err.toString();
// FF / Opera do not add the message
@ -2978,8 +2978,8 @@ exports = module.exports = JSONCov;
*/
function JSONCov(runner, output) {
var self = this
, output = 1 == arguments.length ? true : output;
var self = this;
output = 1 == arguments.length ? true : output;
Base.call(this, runner);
@ -3898,8 +3898,8 @@ Base.colors.progress = 90;
function Progress(runner, options) {
Base.call(this, runner);
options = options || {}
var self = this
, options = options || {}
, stats = this.stats
, width = Base.window.width * .50 | 0
, total = runner.total
@ -4027,7 +4027,7 @@ function Spec(runner) {
cursor.CR();
console.log(fmt, test.title);
} else {
var fmt = indent()
fmt = indent()
+ color('checkmark', ' ' + Base.symbols.ok)
+ color('pass', ' %s')
+ color(test.speed, ' (%dms)');
@ -4442,7 +4442,7 @@ Runnable.prototype.clearTimeout = function(){
Runnable.prototype.inspect = function(){
return JSON.stringify(this, function(key, val){
if ('_' == key[0]) return;
if ('_' == key[0]) return undefined;
if ('parent' == key) return '#<Suite>';
if ('ctx' == key) return '#<Context>';
return val;
@ -4505,11 +4505,11 @@ Runnable.prototype.run = function(fn){
// finished
function done(err) {
var ms = self.timeout();
if (self.timedOut) return;
if (self.timedOut) return undefined;
if (finished) return multiple(err || self._trace);
// Discard the resolution if this test has already failed asynchronously
if (self.state) return;
if (self.state) return undefined;
self.clearTimeout();
self.duration = new Date - start;
@ -4540,7 +4540,7 @@ Runnable.prototype.run = function(fn){
} catch (err) {
done(utils.getError(err));
}
return;
return undefined;
}
if (this.asyncOnly) {
@ -6290,7 +6290,7 @@ exports.lookupFiles = function lookupFiles(path, extensions, recursive) {
if (stat.isFile()) return path;
}
catch (ignored) {
return;
return undefined;
}
fs.readdirSync(path).forEach(function(file) {

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

@ -321,7 +321,7 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
ranges.sort(function (a, b) { return (a[0] - b[0]) || (b[1] - a[1]); });
var consolidatedRanges = [];
var lastRange = [NaN, NaN];
for (var i = 0; i < ranges.length; ++i) {
for (i = 0; i < ranges.length; ++i) {
var range = ranges[i];
if (range[0] <= lastRange[1] + 1) {
lastRange[1] = Math.max(lastRange[1], range[1]);
@ -333,8 +333,8 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
var out = ['['];
if (inverse) { out.push('^'); }
out.push.apply(out, groups);
for (var i = 0; i < consolidatedRanges.length; ++i) {
var range = consolidatedRanges[i];
for (i = 0; i < consolidatedRanges.length; ++i) {
range = consolidatedRanges[i];
out.push(encodeEscape(range[0]));
if (range[1] > range[0]) {
if (range[1] + 1 > range[0]) { out.push('-'); }
@ -386,20 +386,20 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
// Renumber groups and reduce capturing groups to non-capturing groups
// where possible.
for (var i = 1; i < capturedGroups.length; ++i) {
for (i = 1; i < capturedGroups.length; ++i) {
if (-1 === capturedGroups[i]) {
capturedGroups[i] = ++capturedGroupIndex;
}
}
for (var i = 0, groupIndex = 0; i < n; ++i) {
var p = parts[i];
for (i = 0, groupIndex = 0; i < n; ++i) {
p = parts[i];
if (p === '(') {
++groupIndex;
if (capturedGroups[groupIndex] === undefined) {
parts[i] = '(?:';
}
} else if ('\\' === p.charAt(0)) {
var decimalValue = +p.substring(1);
decimalValue = +p.substring(1);
if (decimalValue && decimalValue <= groupIndex) {
parts[i] = '\\' + capturedGroups[groupIndex];
}
@ -408,15 +408,15 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
// Remove any prefix anchors so that the output will match anywhere.
// ^^ really does mean an anchored match though.
for (var i = 0, groupIndex = 0; i < n; ++i) {
for (i = 0, groupIndex = 0; i < n; ++i) {
if ('^' === parts[i] && '^' !== parts[i + 1]) { parts[i] = ''; }
}
// Expand letters to groups to handle mixing of case-sensitive and
// case-insensitive patterns if necessary.
if (regex.ignoreCase && needToFoldCase) {
for (var i = 0; i < n; ++i) {
var p = parts[i];
for (i = 0; i < n; ++i) {
p = parts[i];
var ch0 = p.charAt(0);
if (p.length >= 2 && ch0 === '[') {
parts[i] = caseFoldCharset(p);
@ -436,8 +436,8 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
}
var rewritten = [];
for (var i = 0, n = regexs.length; i < n; ++i) {
var regex = regexs[i];
for (i = 0, n = regexs.length; i < n; ++i) {
regex = regexs[i];
if (regex.global || regex.multiline) { throw new Error('' + regex); }
rewritten.push(
'(?:' + allowAnywhereFoldCaseAndRenumberGroups(regex) + ')');
@ -1031,7 +1031,7 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
var ol = document.createElement('OL');
ol.className = 'linenums';
var offset = Math.max(0, ((opt_startLineNum - 1 /* zero index */)) | 0) || 0;
for (var i = 0, n = listItems.length; i < n; ++i) {
for (i = 0, n = listItems.length; i < n; ++i) {
li = listItems[i];
// Stick a class on the LIs so that stylesheets can
// color odd/even rows, or any other row pattern that
@ -1116,7 +1116,7 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
var decStart = decorations[decorationIndex];
var decEnd = decorations[decorationIndex + 2] || sourceLength;
var end = Math.min(spanEnd, decEnd);
end = Math.min(spanEnd, decEnd);
var textNode = spans[spanIndex + 1];
var styledText;
@ -1474,4 +1474,4 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&
'PR_TAG': PR_TAG,
'PR_TYPE': PR_TYPE
};
})();
})();

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

@ -176,4 +176,4 @@ function removeClass(node, className) {
var reg = new RegExp('(\\s|^)' + className + '(\\s|$)');
node.className = node.className.replace(reg, ' ');
}
};
};

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

@ -225,7 +225,7 @@
ok(mf.length, 1, "Check that test1 is a valid microformat");
// Verify that the version 2 microformat is now also considered valid
var mf2 = Microformats.get("hTest", document.getElementById("test2"), {});
mf2 = Microformats.get("hTest", document.getElementById("test2"), {});
ok(mf2.length, 1, "Check that the mfTest microformat version 2 is now valid");
doTest3_4_and5(true);

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

@ -263,4 +263,4 @@ function writeFile(path, content){
*/
function readFile(path, callback){
fs.readFile(path, 'utf8', callback);
}
}

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

@ -969,7 +969,7 @@ function reorderChildren(parent, orderedChildrenGuids) {
// Select all of the direct children for the given parent.
let children = yield fetchBookmarksByParent({ parentGuid: parent.guid });
if (!children.length)
return;
return undefined;
// Reorder the children array according to the specified order, provided
// GUIDs come first, others are appended in somehow random order.

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

@ -197,7 +197,7 @@ this.PlacesBackups = {
// safely remove .tmp files without risking to remove ongoing backups.
if (aEntry.name.endsWith(".tmp")) {
OS.File.remove(aEntry.path);
return;
return undefined;
}
if (filenamesRegex.test(aEntry.name)) {

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

@ -698,16 +698,16 @@ this.PlacesUtils = {
case this.TYPE_X_MOZ_PLACE_CONTAINER:
nodes = JSON.parse("[" + blob + "]");
break;
case this.TYPE_X_MOZ_URL:
var parts = blob.split("\n");
case this.TYPE_X_MOZ_URL: {
let parts = blob.split("\n");
// data in this type has 2 parts per entry, so if there are fewer
// than 2 parts left, the blob is malformed and we should stop
// but drag and drop of files from the shell has parts.length = 1
if (parts.length != 1 && parts.length % 2)
break;
for (var i = 0; i < parts.length; i=i+2) {
var uriString = parts[i];
var titleString = "";
for (let i = 0; i < parts.length; i=i+2) {
let uriString = parts[i];
let titleString = "";
if (parts.length > i+1)
titleString = parts[i+1];
else {
@ -726,10 +726,11 @@ this.PlacesUtils = {
}
}
break;
case this.TYPE_UNICODE:
var parts = blob.split("\n");
for (var i = 0; i < parts.length; i++) {
var uriString = parts[i];
}
case this.TYPE_UNICODE: {
let parts = blob.split("\n");
for (let i = 0; i < parts.length; i++) {
let uriString = parts[i];
// text/uri-list is converted to TYPE_UNICODE but it could contain
// comments line prepended by #, we should skip them
if (uriString.substr(0, 1) == '\x23')
@ -741,6 +742,7 @@ this.PlacesUtils = {
type: this.TYPE_X_MOZ_URL });
}
break;
}
default:
throw Cr.NS_ERROR_INVALID_ARG;
}

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

@ -1005,7 +1005,7 @@ nsPlacesExpiration.prototype = {
if (this._timer)
this._timer.cancel();
if (this._shuttingDown)
return;
return undefined;
let interval = this.status != STATUS.DIRTY ?
this._interval * EXPIRE_AGGRESSIVITY_MULTIPLIER : this._interval;

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

@ -61,16 +61,16 @@ function run_test() {
// partial matches are okay
query.searchTerms = "wal";
var result = histsvc.executeQuery(query, options);
var rootNode = result.root;
result = histsvc.executeQuery(query, options);
rootNode = result.root;
rootNode.containerOpen = true;
do_check_eq(rootNode.childCount, 1);
rootNode.containerOpen = false;
// case insensitive search term
query.searchTerms = "WALRUS";
var result = histsvc.executeQuery(query, options);
var rootNode = result.root;
result = histsvc.executeQuery(query, options);
rootNode = result.root;
rootNode.containerOpen = true;
do_check_eq(rootNode.childCount, 1);
do_check_eq(rootNode.getChild(0).itemId, b1);
@ -78,8 +78,8 @@ function run_test() {
// case insensitive tag
query.searchTerms = "baboon";
var result = histsvc.executeQuery(query, options);
var rootNode = result.root;
result = histsvc.executeQuery(query, options);
rootNode = result.root;
rootNode.containerOpen = true;
do_check_eq(rootNode.childCount, 1);
do_check_eq(rootNode.getChild(0).itemId, b1);

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

@ -96,7 +96,7 @@ var test = {
validate: function validate() {
// Throw a wrench in the works by inserting some new bookmarks,
// ensuring folder ids won't be the same, when restoring.
for (var i = 0; i < 10; i++) {
for (let i = 0; i < 10; i++) {
PlacesUtils.bookmarks.
insertBookmark(PlacesUtils.bookmarksMenuFolderId, uri("http://aaaa"+i), DEFAULT_INDEX, "");
}
@ -115,7 +115,7 @@ var test = {
// |_count| folders + the query node
do_check_eq(folderNode.childCount, this._count+3);
for (var i = 0; i < this._count; i++) {
for (let i = 0; i < this._count; i++) {
var subFolder = folderNode.getChild(i);
do_check_eq(subFolder.title, "folder"+i);
subFolder.QueryInterface(Ci.nsINavHistoryContainerResultNode);

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

@ -90,7 +90,7 @@ var test = {
else {
// exclude root should not exist anymore
do_check_eq(rootNode.childCount, PLACES_ROOTS_COUNT + 1);
var restoreRootIndex = PLACES_ROOTS_COUNT;
restoreRootIndex = PLACES_ROOTS_COUNT;
}
var restoreRootNode = rootNode.getChild(restoreRootIndex);

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

@ -37,17 +37,17 @@ add_test(function test_savedsearches_bookmarks() {
// query for the test root, expandQueries=0
// the query should show up as a regular bookmark
try {
var options = PlacesUtils.history.getNewQueryOptions();
let options = PlacesUtils.history.getNewQueryOptions();
options.expandQueries = 0;
var query = PlacesUtils.history.getNewQuery();
let query = PlacesUtils.history.getNewQuery();
query.setFolders([testRoot], 1);
var result = PlacesUtils.history.executeQuery(query, options);
var rootNode = result.root;
let result = PlacesUtils.history.executeQuery(query, options);
let rootNode = result.root;
rootNode.containerOpen = true;
var cc = rootNode.childCount;
let cc = rootNode.childCount;
do_check_eq(cc, 1);
for (var i = 0; i < cc; i++) {
var node = rootNode.getChild(i);
for (let i = 0; i < cc; i++) {
let node = rootNode.getChild(i);
// test that queries have valid itemId
do_check_true(node.itemId > 0);
// test that the container is closed
@ -64,17 +64,17 @@ add_test(function test_savedsearches_bookmarks() {
// query for the test root, expandQueries=1
// the query should show up as a query container, with 1 child
try {
var options = PlacesUtils.history.getNewQueryOptions();
let options = PlacesUtils.history.getNewQueryOptions();
options.expandQueries = 1;
var query = PlacesUtils.history.getNewQuery();
let query = PlacesUtils.history.getNewQuery();
query.setFolders([testRoot], 1);
var result = PlacesUtils.history.executeQuery(query, options);
var rootNode = result.root;
let result = PlacesUtils.history.executeQuery(query, options);
let rootNode = result.root;
rootNode.containerOpen = true;
var cc = rootNode.childCount;
let cc = rootNode.childCount;
do_check_eq(cc, 1);
for (var i = 0; i < cc; i++) {
var node = rootNode.getChild(i);
for (let i = 0; i < cc; i++) {
let node = rootNode.getChild(i);
// test that query node type is container when expandQueries=1
do_check_eq(node.type, node.RESULT_TYPE_QUERY);
// test that queries (as containers) have valid itemId
@ -196,7 +196,7 @@ add_task(function* test_savedsearches_history() {
// test live-update of deleted queries
PlacesUtils.bookmarks.removeItem(searchId);
try {
var tmpFolderNode = root.getChild(1);
tmpFolderNode = root.getChild(1);
do_throw("query was not removed");
} catch(ex) {}

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

@ -312,7 +312,7 @@ function test_result_sortingMode_change(aResult, aResultType, aOriginalSortingMo
function check_children_sorting(aRootNode, aExpectedSortingMode) {
var results = [];
print("Found children:");
for (var i = 0; i < aRootNode.childCount; i++) {
for (let i = 0; i < aRootNode.childCount; i++) {
results[i] = aRootNode.getChild(i);
print(i + " " + results[i].title);
}
@ -373,7 +373,7 @@ function check_children_sorting(aRootNode, aExpectedSortingMode) {
var sortedResults = results.slice();
sortedResults.sort(comparator);
// Actually compare returned children with our sorted array.
for (var i = 0; i < sortedResults.length; i++) {
for (let i = 0; i < sortedResults.length; i++) {
if (sortedResults[i].title != results[i].title)
print(i + " index wrong, expected " + sortedResults[i].title +
" found " + results[i].title);

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

@ -66,13 +66,13 @@ add_task(function* test_results_as_visit()
// Add to the query set
do_print("Adding item to query")
var tmp = [];
for (var i=0; i < 2; i++) {
for (let i=0; i < 2; i++) {
tmp.push({ isVisit: true,
uri: "http://foo.com/added.html",
title: "ab moz" });
}
yield task_populateDB(tmp);
for (var i=0; i < 2; i++)
for (let i=0; i < 2; i++)
do_check_eq(root.getChild(i).title, "ab moz");
// Update an existing URI

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

@ -127,15 +127,15 @@ function checkTest() {
case 3:
// run inside of private mode, link should appear as not visited
var doc = gIframe.contentDocument;
var win = doc.defaultView;
doc = gIframe.contentDocument;
win = doc.defaultView;
is(getColor(doc, win, "link"), kBlue, "Visited link coloring should not work inside of private mode");
break;
case 4:
// run outside of private mode, link should appear as visited
var doc = gIframe.contentDocument;
var win = doc.defaultView;
doc = gIframe.contentDocument;
win = doc.defaultView;
is(getColor(doc, win, "link"), kRed, "Visited link coloring should work outside of private mode");
break;

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

@ -77,7 +77,7 @@ function* task_initializeBucket(bucket) {
// unvisited (only for first cutoff date bucket)
if (bonusName == "unvisitedBookmarkBonus" || bonusName == "unvisitedTypedBonus") {
if (cutoffName == "firstBucketCutoff") {
var points = Math.ceil(bonusValue / parseFloat(100.0) * weight);
let points = Math.ceil(bonusValue / parseFloat(100.0) * weight);
var visitCount = 1; //bonusName == "unvisitedBookmarkBonus" ? 1 : 0;
frecency = Math.ceil(visitCount * points);
calculatedURI = uri("http://" + searchTerm + ".com/" +
@ -105,7 +105,7 @@ function* task_initializeBucket(bucket) {
if (visitType == Ci.nsINavHistoryService.TRANSITION_BOOKMARK)
bonusValue = bonusValue * 2;
var points = Math.ceil(1 * ((bonusValue / parseFloat(100.000000)).toFixed(6) * weight) / 1);
let points = Math.ceil(1 * ((bonusValue / parseFloat(100.000000)).toFixed(6) * weight) / 1);
if (!points) {
if (visitType == Ci.nsINavHistoryService.TRANSITION_EMBED ||
visitType == Ci.nsINavHistoryService.TRANSITION_FRAMED_LINK ||

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

@ -73,13 +73,13 @@ function run_test() {
// bookmark query that should result in a flat list
// because we specified max results
var options = histsvc.getNewQueryOptions();
options = histsvc.getNewQueryOptions();
options.queryType = Ci.nsINavHistoryQueryOptions.QUERY_TYPE_BOOKMARKS;
options.maxResults = 10;
var query = histsvc.getNewQuery();
query = histsvc.getNewQuery();
query.setFolders([folder], 1);
var result = histsvc.executeQuery(query, options);
var root = result.root;
result = histsvc.executeQuery(query, options);
root = result.root;
root.containerOpen = true;
do_check_eq(root.childCount, 3);
do_check_eq(root.getChild(0).itemId, b1);

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

@ -36,13 +36,13 @@ function run_test()
add_task(function* test_execute()
{
// add pages to global history
for (var i = 0; i < TOTAL_SITES; i++) {
for (let i = 0; i < TOTAL_SITES; i++) {
let site = "http://www.test-" + i + ".com/";
let testURI = uri(site);
let when = Date.now() * 1000 + (i * TOTAL_SITES);
yield PlacesTestUtils.addVisits({ uri: testURI, visitDate: when });
}
for (var i = 0; i < TOTAL_SITES; i++) {
for (let i = 0; i < TOTAL_SITES; i++) {
let site = "http://www.test.com/" + i + "/";
let testURI = uri(site);
let when = Date.now() * 1000 + (i * TOTAL_SITES);
@ -78,7 +78,7 @@ add_task(function* test_execute()
}
// check that all pages in www.test-X.com have NOT been removed
for (var i = 0; i < TOTAL_SITES; i++) {
for (let i = 0; i < TOTAL_SITES; i++) {
let site = "http://www.test-" + i + ".com/";
let testURI = uri(site);
do_check_true(uri_in_db(testURI));

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

@ -42,11 +42,11 @@ add_task(function* test_execute()
0 /* first item */, "test query");
// query for that query
var options = histsvc.getNewQueryOptions();
var query = histsvc.getNewQuery();
options = histsvc.getNewQueryOptions();
query = histsvc.getNewQuery();
query.setFolders([bmsvc.toolbarFolder], 1);
var result = histsvc.executeQuery(query, options);
var root = result.root;
result = histsvc.executeQuery(query, options);
root = result.root;
root.containerOpen = true;
var queryNode = root.getChild(0);
do_check_eq(queryNode.title, "test query");

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

@ -149,7 +149,7 @@ add_task(function* test_execute()
do_check_eq(annoNames[0], "moz-test-places/annotations");
// get annotation names for an item
var annoNames = annosvc.getItemAnnotationNames(testItemId);
annoNames = annosvc.getItemAnnotationNames(testItemId);
do_check_eq(annoNames.length, 1);
do_check_eq(annoNames[0], "moz-test-places/annotations");
@ -158,7 +158,7 @@ add_task(function* test_execute()
yield PlacesTestUtils.addVisits(newURI);
annosvc.setPageAnnotation(testURI, "oldAnno", "new", 0, 0);
annosvc.setPageAnnotation(newURI, "oldAnno", "old", 0, 0);
var annoNames = annosvc.getPageAnnotationNames(newURI);
annoNames = annosvc.getPageAnnotationNames(newURI);
do_check_eq(annoNames.length, 1);
do_check_eq(annoNames[0], "oldAnno");
var oldAnnoNames = annosvc.getPageAnnotationNames(testURI);
@ -180,20 +180,20 @@ add_task(function* test_execute()
// copy annotations to another item
var newURI = uri("http://mozilla.org");
newURI = uri("http://mozilla.org");
var newItemId = bmsvc.insertBookmark(bmsvc.bookmarksMenuFolder, newURI, -1, "");
var itemId = bmsvc.insertBookmark(bmsvc.bookmarksMenuFolder, testURI, -1, "");
annosvc.setItemAnnotation(itemId, "oldAnno", "new", 0, 0);
annosvc.setItemAnnotation(itemId, "testAnno", "test", 0, 0);
annosvc.setItemAnnotation(newItemId, "oldAnno", "old", 0, 0);
var annoNames = annosvc.getItemAnnotationNames(newItemId);
annoNames = annosvc.getItemAnnotationNames(newItemId);
do_check_eq(annoNames.length, 1);
do_check_eq(annoNames[0], "oldAnno");
var oldAnnoNames = annosvc.getItemAnnotationNames(itemId);
oldAnnoNames = annosvc.getItemAnnotationNames(itemId);
do_check_eq(oldAnnoNames.length, 2);
var copiedAnno = oldAnnoNames[0];
copiedAnno = oldAnnoNames[0];
annosvc.copyItemAnnotations(itemId, newItemId, false);
var newAnnoNames = annosvc.getItemAnnotationNames(newItemId);
newAnnoNames = annosvc.getItemAnnotationNames(newItemId);
do_check_eq(newAnnoNames.length, 2);
do_check_true(annosvc.itemHasAnnotation(newItemId, "oldAnno"));
do_check_true(annosvc.itemHasAnnotation(newItemId, copiedAnno));
@ -211,7 +211,7 @@ add_task(function* test_execute()
var int32Val = 23;
annosvc.setPageAnnotation(testURI, int32Key, int32Val, 0, 0);
do_check_true(annosvc.pageHasAnnotation(testURI, int32Key));
var flags = {}, exp = {}, storageType = {};
flags = {}, exp = {}, storageType = {};
annosvc.getPageAnnotationInfo(testURI, int32Key, flags, exp, storageType);
do_check_eq(flags.value, 0);
do_check_eq(exp.value, 0);
@ -297,7 +297,7 @@ add_task(function* test_execute()
}
// setting an annotation with EXPIRE_HISTORY for an item should throw
var itemId = bmsvc.insertBookmark(bmsvc.bookmarksMenuFolder, testURI, -1, "");
itemId = bmsvc.insertBookmark(bmsvc.bookmarksMenuFolder, testURI, -1, "");
try {
annosvc.setItemAnnotation(itemId, "foo", "bar", 0, annosvc.EXPIRE_WITH_HISTORY);
do_throw("setting an item annotation with EXPIRE_HISTORY should throw");

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

@ -172,12 +172,12 @@ add_task(function* test_execute()
// bug 394741 - regressed history text searches
yield PlacesTestUtils.addVisits(uri("http://mozilla.com"));
var options = histsvc.getNewQueryOptions();
options = histsvc.getNewQueryOptions();
//options.resultType = options.RESULTS_AS_VISIT;
var query = histsvc.getNewQuery();
query = histsvc.getNewQuery();
query.searchTerms = "moz";
var result = histsvc.executeQuery(query, options);
var root = result.root;
result = histsvc.executeQuery(query, options);
root = result.root;
root.containerOpen = true;
do_check_true(root.childCount > 0);
root.containerOpen = false;

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

@ -83,15 +83,15 @@ function* task_fill_history() {
print("\n\n*** TEST Fill History\n");
// We can't use "now" because our hardcoded offsets would be invalid for some
// date. So we hardcode a date.
for (var i = 0; i < containers.length; i++) {
var container = containers[i];
for (let i = 0; i < containers.length; i++) {
let container = containers[i];
var testURI = uri("http://mirror"+i+".mozilla.com/b");
yield task_add_normalized_visit(testURI, nowObj.getTime(), container.offset);
var testURI = uri("http://mirror"+i+".mozilla.com/a");
testURI = uri("http://mirror"+i+".mozilla.com/a");
yield task_add_normalized_visit(testURI, nowObj.getTime(), container.offset);
var testURI = uri("http://mirror"+i+".google.com/b");
testURI = uri("http://mirror"+i+".google.com/b");
yield task_add_normalized_visit(testURI, nowObj.getTime(), container.offset);
var testURI = uri("http://mirror"+i+".google.com/a");
testURI = uri("http://mirror"+i+".google.com/a");
yield task_add_normalized_visit(testURI, nowObj.getTime(), container.offset);
// Bug 485703 - Hide date containers not containing additional entries
// compared to previous ones.
@ -110,8 +110,8 @@ function* task_fill_history() {
var cc = root.childCount;
print("Found containers:");
var previousLabels = [];
for (var i = 0; i < cc; i++) {
var container = visibleContainers[i];
for (let i = 0; i < cc; i++) {
let container = visibleContainers[i];
var node = root.getChild(i);
print(node.title);
if (container.label)
@ -201,17 +201,17 @@ function test_RESULTS_AS_DATE_SITE_QUERY() {
result.sortingMode = options.SORT_BY_TITLE_DESCENDING;
// Check one of the days
var dayNode = root.getChild(0)
dayNode = root.getChild(0)
.QueryInterface(Ci.nsINavHistoryContainerResultNode);
dayNode.containerOpen = true;
do_check_eq(dayNode.childCount, 2);
// Hosts are still sorted by title
var site1 = dayNode.getChild(0)
site1 = dayNode.getChild(0)
.QueryInterface(Ci.nsINavHistoryContainerResultNode);
do_check_eq(site1.title, "mirror0.google.com");
var site2 = dayNode.getChild(1)
site2 = dayNode.getChild(1)
.QueryInterface(Ci.nsINavHistoryContainerResultNode);
do_check_eq(site2.title, "mirror0.mozilla.com");
@ -219,7 +219,7 @@ function test_RESULTS_AS_DATE_SITE_QUERY() {
do_check_eq(site1.childCount, 2);
// But URLs are now sorted by title descending
var site1visit = site1.getChild(0);
site1visit = site1.getChild(0);
do_check_eq(site1visit.uri, "http://mirror0.google.com/b");
site1.containerOpen = false;
@ -267,16 +267,16 @@ function test_RESULTS_AS_DATE_QUERY() {
result.sortingMode = options.SORT_BY_TITLE_DESCENDING;
// Check one of the days
var dayNode = root.getChild(0)
dayNode = root.getChild(0)
.QueryInterface(Ci.nsINavHistoryContainerResultNode);
dayNode.containerOpen = true;
do_check_eq(dayNode.childCount, 4);
// But URLs are now sorted by title descending
var visit1 = dayNode.getChild(0);
visit1 = dayNode.getChild(0);
do_check_eq(visit1.uri, "http://mirror0.mozilla.com/b");
var visit2 = dayNode.getChild(3);
visit2 = dayNode.getChild(3);
do_check_eq(visit2.uri, "http://mirror0.google.com/a");
dayNode.containerOpen = false;
@ -331,7 +331,7 @@ function test_RESULTS_AS_SITE_QUERY() {
// Bug 473157: changing sorting mode should not affect the containers
result.sortingMode = options.SORT_BY_TITLE_DESCENDING;
var siteNode = root.getChild(6)
siteNode = root.getChild(6)
.QueryInterface(Ci.nsINavHistoryContainerResultNode);
do_check_eq(siteNode.title, "mirror3.google.com");

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

@ -35,7 +35,7 @@ function run_test() {
"&sortingAnnotation=test%20anno";
do_check_eq(histsvc.queriesToQueryString([query], 1, options),
placeURI);
var options = {};
options = {};
histsvc.queryStringToQueries(placeURI, { }, {}, options);
do_check_eq(options.value.sortingAnnotation, "test anno");
do_check_eq(options.value.sortingMode, NHQO.SORT_BY_ANNOTATION_DESCENDING);

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

@ -28,12 +28,10 @@ function ellipseString(aStr, doFront)
if (aStr.length > fixedLen) {
if (doFront) {
var endStr = aStr.substr(aStr.length-fixedLen, fixedLen);
var str = "..." + endStr;
return str;
return "..." + endStr;
} else {
var frontStr = aStr.substr(0, fixedLen);
var str = frontStr + "...";
return str;
return frontStr + "...";
}
}
return aStr;

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

@ -377,7 +377,7 @@ var PrintUtils = {
if (aMessage.name == "Printing:Error") {
this.displayPrintingError(aMessage.data.nsresult,
aMessage.data.isPrinting);
return;
return undefined;
}
// If we got here, then the message we've received must involve
@ -385,7 +385,7 @@ var PrintUtils = {
if (!this._webProgressPP.value) {
// We somehow didn't get a nsIWebProgressListener to be updated...
// I guess there's nothing to do.
return;
return undefined;
}
let listener = this._webProgressPP.value;

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

@ -698,12 +698,12 @@
set innerHTML(html) {
var parser = new JSDOMParser();
var node = parser.parse(html);
for (var i = this.childNodes.length; --i >= 0;) {
for (let i = this.childNodes.length; --i >= 0;) {
this.childNodes[i].parentNode = null;
}
this.childNodes = node.childNodes;
this.children = node.children;
for (var i = this.childNodes.length; --i >= 0;) {
for (let i = this.childNodes.length; --i >= 0;) {
this.childNodes[i].parentNode = this;
}
},
@ -1088,7 +1088,7 @@
// Read any text as Text node
if (c !== "<") {
--this.currentChar;
var node = new Text();
let node = new Text();
var n = this.html.indexOf("<", this.currentChar);
if (n === -1) {
node.innerHTML = this.html.substring(this.currentChar, this.html.length);

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

@ -370,7 +370,7 @@ Readability.prototype = {
// (which will be replaced with a <p> later).
while ((next = this._nextElement(next)) && (next.tagName == "BR")) {
replaced = true;
var sibling = next.nextSibling;
let sibling = next.nextSibling;
next.parentNode.removeChild(next);
next = sibling;
}
@ -392,7 +392,7 @@ Readability.prototype = {
}
// Otherwise, make this node a child of the new <p>.
var sibling = next.nextSibling;
let sibling = next.nextSibling;
p.appendChild(next);
next = sibling;
}
@ -1141,7 +1141,7 @@ Readability.prototype = {
_getLinkDensity: function(element) {
var textLength = this._getInnerText(element).length;
if (textLength === 0)
return;
return undefined;
var linkLength = 0;

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

@ -334,7 +334,7 @@ function makeMoveToDeletedStatement(aGuid, aNow, aData, aBindingArrays) {
// TODO: Add these items to the deleted items table once we've sorted
// out the issues from bug 756701
if (!queryTerms)
return;
return undefined;
query += " SELECT guid, :timeDeleted FROM moz_formhistory WHERE " + queryTerms;
}

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

@ -347,7 +347,7 @@ function runTest() {
// Adding an attribute after the first one while on the first then going
// down and push enter. Value should be the on from the new suggestion.
doKey("down");
var datalist = document.getElementById('suggest');
datalist = document.getElementById('suggest');
var added = new Option("Foo");
datalist.insertBefore(added, datalist.children[1]);
@ -368,7 +368,7 @@ function runTest() {
case 202:
// Change the first element value attribute.
doKey("down");
var datalist = document.getElementById('suggest');
datalist = document.getElementById('suggest');
prevValue = datalist.children[0].value;
datalist.children[0].value = "foo";
expectPopup();
@ -379,7 +379,7 @@ function runTest() {
doKey("return");
checkForm("foo");
var datalist = document.getElementById('suggest');
datalist = document.getElementById('suggest');
datalist.children[0].value = prevValue;
expectPopup();
restoreForm();
@ -389,7 +389,7 @@ function runTest() {
case 204:
// Change the textContent to update the value attribute.
doKey("down");
var datalist = document.getElementById('suggest');
datalist = document.getElementById('suggest');
prevValue = datalist.children[0].getAttribute('value');
datalist.children[0].removeAttribute('value');
datalist.children[0].textContent = "foobar";
@ -401,7 +401,7 @@ function runTest() {
doKey("return");
checkForm("foobar");
var datalist = document.getElementById('suggest');
datalist = document.getElementById('suggest');
datalist.children[0].setAttribute('value', prevValue);
testNum = 299;
expectPopup();

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

@ -114,10 +114,10 @@
<!-- input with sensitive data (15 digit credit card number) -->
<form id="form16" onsubmit="return checkSubmit(16)">
<script type="text/javascript">
var form = document.getElementById('form16');
for (var i = 0; i != 10; i++)
form = document.getElementById('form16');
for (i = 0; i != 10; i++)
{
var input = document.createElement('input');
input = document.createElement('input');
input.type = 'text';
input.name = 'test' + (i + 1);
form.appendChild(input);
@ -216,10 +216,10 @@
satisfy the requirements (Luhn check fails for 16 chars) -->
<form id="form107" onsubmit="return checkSubmit(107)">
<script type="text/javascript">
var form = document.getElementById('form107');
for (var i = 0; i != 10; i++)
form = document.getElementById('form107');
for (i = 0; i != 10; i++)
{
var input = document.createElement('input');
input = document.createElement('input');
input.type = 'text';
input.name = 'test7_' + (i + 1);
form.appendChild(input);
@ -232,10 +232,10 @@
satisfy the requirements (Luhn check fails for 15 chars) -->
<form id="form108" onsubmit="return checkSubmit(108)">
<script type="text/javascript">
var form = document.getElementById('form108');
for (var i = 0; i != 10; i++)
form = document.getElementById('form108');
for (i = 0; i != 10; i++)
{
var input = document.createElement('input');
input = document.createElement('input');
input.type = 'text';
input.name = 'test8_' + (i + 1);
form.appendChild(input);
@ -330,7 +330,7 @@ function startTest() {
}
testData = ccNumbers.valid15;
for (var i = 0; i != testData.length; i++) {
for (i = 0; i != testData.length; i++) {
$_(16, "test" + (i + 1)).value = testData[i];
}
$_(17, "test1").value = "001064088";
@ -348,13 +348,13 @@ function startTest() {
$_(105, "test5").value = "\t trimTrailingAndLeadingWhitespace\t ";
$_(106, "test6").value = "00000000109181";
var testData = ccNumbers.invalid16;
for (var i = 0; i != testData.length; i++) {
testData = ccNumbers.invalid16;
for (i = 0; i != testData.length; i++) {
$_(107, "test7_" + (i + 1)).value = testData[i];
}
var testData = ccNumbers.invalid15;
for (var i = 0; i != testData.length; i++) {
testData = ccNumbers.invalid15;
for (i = 0; i != testData.length; i++) {
$_(108, "test8_" + (i + 1)).value = testData[i];
}
@ -435,7 +435,7 @@ function checkSubmit(formNum) {
}
break;
case 108:
for (var i = 0; i != ccNumbers.invalid15.length; i++) {
for (i = 0; i != ccNumbers.invalid15.length; i++) {
checkForSave("test8_" + (i + 1), ccNumbers.invalid15[i], "checking saved value");
}
break;

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

@ -58,8 +58,8 @@ var entry2 = ["entry2", "value2"];
/* ========== 1 ========== */
var testnum = 1;
var testdesc = "Initial connection to storage module"
testnum = 1;
testdesc = "Initial connection to storage module"
yield updateEntry("remove", null, null, next_test);
yield countEntries(null, null, function (num) { do_check_false(num, "Checking initial DB is empty"); next_test(); });

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

@ -28,7 +28,7 @@ function test_histogram(histogram_type, name, min, max, bucket_count) {
var h = Telemetry.newHistogram(name, "never", histogram_type, min, max, bucket_count);
var r = h.snapshot().ranges;
var sum = 0;
for(var i=0;i<r.length;i++) {
for(let i=0;i<r.length;i++) {
var v = r[i];
sum += v;
h.add(v);
@ -46,7 +46,7 @@ function test_histogram(histogram_type, name, min, max, bucket_count) {
}
// there should be exactly one element per bucket
for (var i of s.counts) {
for (let i of s.counts) {
do_check_eq(i, 1);
}
var hgrams = Telemetry.histogramSnapshots
@ -59,13 +59,13 @@ function test_histogram(histogram_type, name, min, max, bucket_count) {
// Check that booleans work with nonboolean histograms
h.add(false);
h.add(true);
var s = h.snapshot().counts;
s = h.snapshot().counts;
do_check_eq(s[0], 2)
do_check_eq(s[1], 2)
// Check that clearing works.
h.clear();
var s = h.snapshot();
s = h.snapshot();
for (var i of s.counts) {
do_check_eq(i, 0);
}

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

@ -63,7 +63,7 @@ function* runTests() {
var promiseClearFile = Task.async(function*(aFile, aURL) {
if (!aFile.exists()) {
return;
return undefined;
}
// Re-add our URL to the history so that history observer's onDeleteURI()
// is called again.

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

@ -301,7 +301,7 @@ ViewSourceChrome.prototype = {
// We require the first argument to do any loading of source.
// otherwise, we're done.
if (!window.arguments[0]) {
return;
return undefined;
}
if (typeof window.arguments[0] == "string") {

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

@ -629,7 +629,7 @@ var FindBar = {
_onKeypress(event) {
// Useless keys:
if (event.ctrlKey || event.altKey || event.metaKey || event.defaultPrevented) {
return;
return undefined;
}
// Check the focused element etc.
@ -637,7 +637,7 @@ var FindBar = {
// Can we even use find in this page at all?
if (!fastFind.can) {
return;
return undefined;
}
let fakeEvent = {};
@ -966,7 +966,7 @@ var ViewSelectionSource = {
topNode = topNode.parentNode;
}
if (!topNode)
return;
return undefined;
// serialize
const VIEW_SOURCE_CSS = "resource://gre-resources/viewsource.css";

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

@ -729,7 +729,7 @@ function onToolbarDrop(aEvent)
// The wrapper has been dragged from the toolbar.
// Get the wrapper from the toolbar document and make sure that
// it isn't being dropped on itself.
var wrapper = gToolboxDocument.getElementById("wrapper-"+draggedItemId);
let wrapper = gToolboxDocument.getElementById("wrapper-"+draggedItemId);
if (wrapper == gCurrentDragOverItem)
return;
@ -756,7 +756,7 @@ function onToolbarDrop(aEvent)
// The item has been dragged from the palette
// Create a new wrapper for the item. We don't know the id yet.
var wrapper = createWrapper("", gToolboxDocument);
let wrapper = createWrapper("", gToolboxDocument);
// Ask the toolbar to clone the item's template, place it inside the wrapper, and insert it in the toolbar.
var newItem = toolbar.insertItem(draggedItemId, gCurrentDragOverItem == toolbar ? null : gCurrentDragOverItem, wrapper);

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

@ -392,8 +392,8 @@ function testtag_tree_TreeSelection_UI(tree, testid, multiple)
// do this three times, one for each state of pageUpOrDownMovesSelection,
// and then once with the accel key pressed
for (var t = 0; t < 3; t++) {
var testidmod = (t == 2) ? " with accel" : (t == 1) ? " rev" : "";
for (let t = 0; t < 3; t++) {
let testidmod = (t == 2) ? " with accel" : (t == 1) ? " rev" : "";
var keymod = (t == 2) ? { accelKey: true } : { };
var moveselection = tree.pageUpOrDownMovesSelection;
@ -486,8 +486,8 @@ function testtag_tree_TreeSelection_UI(tree, testid, multiple)
// when selecting with the shift key, pageUpOrDownMovesSelection is ignored
// and the selection always changes
var lastidx = tree.view.rowCount - 1;
for (var t = 0; t < 2; t++) {
var testidmod = (t == 0) ? "" : " rev";
for (let t = 0; t < 2; t++) {
let testidmod = (t == 0) ? "" : " rev";
// If the top or bottom visible row is the current row, pressing shift and
// page down / page up selects one page up or one page down. Otherwise, the
@ -780,7 +780,7 @@ function testtag_tree_TreeSelection_UI_cell(tree, testid, rowInfo)
tree.treeBoxObject.scrollToRow(1);
selection.select(1);
selection.currentIndex = 1;
var expectedrow = tree.pageUpOrDownMovesSelection ? 4 : 1;
expectedrow = tree.pageUpOrDownMovesSelection ? 4 : 1;
synthesizeKeyExpectEvent("VK_PAGE_DOWN", {}, tree, "!select", "key page down");
testtag_tree_TreeSelection_State(tree, testid + "key page down" + testidmod,
expectedrow, [expectedrow],
@ -1104,42 +1104,42 @@ function testtag_tree_column_reorder()
}
// Drag the first column to each position
for (var i = 0; i < numColumns - 1; i++) {
for (let i = 0; i < numColumns - 1; i++) {
synthesizeColumnDrag(tree, i, i + 1, true);
arrayMove(reference, i, i + 1, true);
checkColumns(tree, reference, "drag first column right");
}
// And back
for (var i = numColumns - 1; i >= 1; i--) {
for (let i = numColumns - 1; i >= 1; i--) {
synthesizeColumnDrag(tree, i, i - 1, false);
arrayMove(reference, i, i - 1, false);
checkColumns(tree, reference, "drag last column left");
}
// Drag each column one column left
for (var i = 1; i < numColumns; i++) {
for (let i = 1; i < numColumns; i++) {
synthesizeColumnDrag(tree, i, i - 1, false);
arrayMove(reference, i, i - 1, false);
checkColumns(tree, reference, "drag each column left");
}
// And back
for (var i = numColumns - 2; i >= 0; i--) {
for (let i = numColumns - 2; i >= 0; i--) {
synthesizeColumnDrag(tree, i, i + 1, true);
arrayMove(reference, i, i + 1, true);
checkColumns(tree, reference, "drag each column right");
}
// Drag each column 5 to the right
for (var i = 0; i < numColumns - 5; i++) {
for (let i = 0; i < numColumns - 5; i++) {
synthesizeColumnDrag(tree, i, i + 5, true);
arrayMove(reference, i, i + 5, true);
checkColumns(tree, reference, "drag each column 5 to the right");
}
// And to the left
for (var i = numColumns - 6; i >= 5; i--) {
for (let i = numColumns - 6; i >= 5; i--) {
synthesizeColumnDrag(tree, i, i - 5, false);
arrayMove(reference, i, i - 5, false);
checkColumns(tree, reference, "drag each column 5 to the left");
@ -1235,14 +1235,14 @@ function synthesizeColumnDrag(aTree, aMouseDownColumnNumber, aMouseUpColumnNumbe
}
if (aMouseUpColumnNumber > aMouseDownColumnNumber) {
for (var i = aMouseDownColumnNumber; i <= aMouseUpColumnNumber; i++) {
var move = columns[i].element;
for (let i = aMouseDownColumnNumber; i <= aMouseUpColumnNumber; i++) {
let move = columns[i].element;
synthesizeMouse(move, offsetX, 3, { type: "mousemove"});
}
}
else {
for (var i = aMouseDownColumnNumber; i >= aMouseUpColumnNumber; i--) {
var move = columns[i].element;
for (let i = aMouseDownColumnNumber; i >= aMouseUpColumnNumber; i--) {
let move = columns[i].element;
synthesizeMouse(move, offsetX, 3, { type: "mousemove"});
}
}

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

@ -24,7 +24,7 @@ var gTreeUtils = {
for (var i = 0; i < rc; ++i) {
var min = { }; var max = { };
selection.getRangeAt(i, min, max);
for (var j = min.value; j <= max.value; ++j) {
for (let j = min.value; j <= max.value; ++j) {
aDeletedItems.push(aItems[j]);
aItems[j] = null;
}
@ -33,7 +33,7 @@ var gTreeUtils = {
var nextSelection = 0;
for (i = 0; i < aItems.length; ++i) {
if (!aItems[i]) {
var j = i;
let j = i;
while (j < aItems.length && !aItems[j])
++j;
aItems.splice(i, j - i);

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

@ -1199,7 +1199,7 @@
var ourFieldValues = {};
var otherFieldValues = {};
for (var field of fieldsToSwap) {
for (let field of fieldsToSwap) {
ourFieldValues[field] = this[field];
otherFieldValues[field] = aOtherBrowser[field];
}
@ -1222,7 +1222,7 @@
aOtherBrowser.detachFormFill();
}
for (var field of fieldsToSwap) {
for (let field of fieldsToSwap) {
this[field] = otherFieldValues[field];
aOtherBrowser[field] = ourFieldValues[field];
}

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

@ -673,7 +673,7 @@
<body>
<![CDATA[
if (aField == this.yearField) {
var oldDate = this.date;
let oldDate = this.date;
this._dateValue.setFullYear(aValue);
if (oldDate != this.date) {
this._dateValue.setDate(0);
@ -681,7 +681,7 @@
}
}
else if (aField == this.monthField) {
var oldDate = this.date;
let oldDate = this.date;
this._dateValue.setMonth(aValue);
if (oldDate != this.date) {
this._dateValue.setDate(0);

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

@ -799,7 +799,7 @@
<parameter name="aMessage"/>
<body><![CDATA[
if (aMessage.target != this._browser) {
return;
return undefined;
}
switch (aMessage.name) {
case "Findbar:Mouseup":
@ -1099,7 +1099,7 @@
// finder.searchString will never get updated which in turn means
// there would never be findAgain events because of the logic below.
if (!this._dispatchFindEvent("again", aFindPrevious))
return;
return undefined;
// user explicitly requested another search, so do it even if we think it'll fail
this._findFailedString = null;

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

@ -250,7 +250,7 @@
event.initEvent("select", true, true);
this.dispatchEvent(event);
var event = document.createEvent("Events");
event = document.createEvent("Events");
event.initEvent("ValueChange", true, true);
this.dispatchEvent(event);
@ -515,7 +515,7 @@
event.initEvent("select", true, true);
this.dispatchEvent(event);
var event = document.createEvent("Events");
event = document.createEvent("Events");
event.initEvent("ValueChange", true, true);
this.dispatchEvent(event);

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

@ -327,7 +327,7 @@
if (!canvas)
canvas = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
const XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
var content = this.firstChild;
let content = this.firstChild;
if (!content ||
content.namespaceURI != XULNS ||
content.localName != "browser")
@ -361,7 +361,7 @@
else if (canvas) {
canvas.parentNode.removeChild(canvas);
this._blockingCanvas = null;
var content = this.firstChild;
let content = this.firstChild;
if (content)
content.collapsed = false;
}

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

@ -1071,12 +1071,12 @@
.getService(Components.interfaces.nsIScriptSecurityManager);
if (this.type == "child" && window.opener &&
secMan.isSystemPrincipal(window.opener.document.nodePrincipal)) {
var psvc = Components.classes["@mozilla.org/preferences-service;1"]
let psvc = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch);
var pdocEl = window.opener.document.documentElement;
if (pdocEl.instantApply) {
var panes = this.preferencePanes;
for (var i = 0; i < panes.length; ++i)
let panes = this.preferencePanes;
for (let i = 0; i < panes.length; ++i)
panes[i].writePreferences(true);
}
else {
@ -1088,12 +1088,12 @@
var id = window.location.href + "#childprefs";
var childPrefs = pdoc.getElementById(id);
if (!childPrefs) {
var childPrefs = pdoc.createElement("preferences");
childPrefs = pdoc.createElement("preferences");
currentPane.appendChild(childPrefs);
childPrefs.id = id;
}
var panes = this.preferencePanes;
for (var i = 0; i < panes.length; ++i) {
let panes = this.preferencePanes;
for (let i = 0; i < panes.length; ++i) {
var preferences = panes[i].preferences;
for (var j = 0; j < preferences.length; ++j) {
// Try to find a preference element for the same preference.
@ -1124,11 +1124,11 @@
}
}
else {
var panes = this.preferencePanes;
let panes = this.preferencePanes;
for (var i = 0; i < panes.length; ++i)
panes[i].writePreferences(false);
var psvc = Components.classes["@mozilla.org/preferences-service;1"]
let psvc = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService);
psvc.savePrefFile(null);
}

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

@ -357,7 +357,7 @@
var suppressSelect = this._suppressOnSelect;
this._suppressOnSelect = true;
this.clearSelection();
for (var i = 1; i < ids.length; i++) {
for (let i = 1; i < ids.length; i++) {
var selectedItem = document.getElementById(ids[i]);
if (selectedItem)
this.addItemToSelection(selectedItem);
@ -394,12 +394,12 @@
// (applies after a template rebuild, if last-selected was not set)
if (this.selectedItems) {
let itemIds = [];
for (i = this.selectedCount - 1; i >= 0; i--) {
for (let i = this.selectedCount - 1; i >= 0; i--) {
let selectedItem = this.selectedItems[i];
itemIds.push(selectedItem.id);
this.selectedItems.remove(selectedItem);
}
for (i = 0; i < itemIds.length; i++) {
for (let i = 0; i < itemIds.length; i++) {
let selectedItem = document.getElementById(itemIds[i]);
if (selectedItem) {
this.selectedItems.append(selectedItem);
@ -419,7 +419,7 @@
// cf. listbox constructor:
// select items according to their attributes
var children = this.children;
for (var i = 0; i < children.length; ++i) {
for (let i = 0; i < children.length; ++i) {
if (children[i].getAttribute("selected") == "true")
this.selectedItems.append(children[i]);
}

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

@ -184,7 +184,7 @@
case event.DOM_VK_RIGHT:
if (event.metaKey && event.altKey && !event.shiftKey && !event.ctrlKey)
if (this.tabs && this._handleMetaAltArrows) {
var offset = window.getComputedStyle(this, "")
offset = window.getComputedStyle(this, "")
.direction == "ltr" ? 1 : -1;
this.tabs.advanceSelectedTab(offset, true);
event.preventDefault();

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

@ -850,7 +850,7 @@
// The getParentIndex test above ensures that the children
// are already populated and ready.
if (cellSelType && !this.view.isSelectable(c , currentColumn)) {
var col = this._getNextColumn(c, false);
let col = this._getNextColumn(c, false);
if (col) {
this.view.selection.currentColumn = col;
}
@ -864,7 +864,7 @@
}
if (cellSelType) {
var col = this._getNextColumn(row, false);
let col = this._getNextColumn(row, false);
if (col) {
this.view.selection.currentColumn = col;
this.treeBoxObject.ensureCellIsVisible(row, col);

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

@ -545,7 +545,7 @@ this issue</a> for more detail.
Shinichiro Hamaji<br>
Gregor Hohpe<br>
<script type=text/javascript>
var lm = new Date(document.lastModified);
lm = new Date(document.lastModified);
document.write(lm.toDateString());
</script>
</address>

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

@ -39,7 +39,7 @@ this.BrowserUtils = {
//if already in safe mode restart in safe mode
if (Services.appinfo.inSafeMode) {
appStartup.restartInSafeMode(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);
return;
return undefined;
}
appStartup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);
},

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

@ -401,7 +401,7 @@ ConnectionData.prototype = Object.freeze({
return this._barrier.wait().then(() => {
if (!this._dbConn) {
return;
return undefined;
}
return this._finalize();
});

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

@ -13,7 +13,7 @@ var countAfter = 0;
function onBeforeSendHeaders(details)
{
if (details.url != URL) {
return;
return undefined;
}
countBefore++;

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

@ -205,7 +205,7 @@ HelperApps.prototype = {
if (typeInfo) {
var bundle = document.getElementById("strings");
if (aProperty.EqualsNode(this._handleAutoArc)) {
var handler = this.GetTarget(aSource, this._handlerPropArc, true);
let handler = this.GetTarget(aSource, this._handlerPropArc, true);
if (handler) {
handler = handler.QueryInterface(Components.interfaces.nsIRDFResource);
return gRDF.GetLiteral(!(this.getLiteralValue(handler.Value, "alwaysAsk") == "true"));
@ -226,7 +226,7 @@ HelperApps.prototype = {
return gRDF.GetLiteral(typeInfo.description);
}
else if (aProperty.EqualsNode(this._fileHandlerArc)) {
var handler = this.GetTarget(aSource, this._handlerPropArc, true);
let handler = this.GetTarget(aSource, this._handlerPropArc, true);
if (handler) {
handler = handler.QueryInterface(Components.interfaces.nsIRDFResource);
if (this.getLiteralValue(handler.Value, "saveToDisk") == "true") {

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

@ -248,7 +248,7 @@ function callProviderAsync(aProvider, aMethod, ...aArgs) {
let callback = aArgs[aArgs.length - 1];
if (!(aMethod in aProvider)) {
callback(undefined);
return;
return undefined;
}
try {
return aProvider[aMethod].apply(aProvider, aArgs);
@ -256,7 +256,7 @@ function callProviderAsync(aProvider, aMethod, ...aArgs) {
catch (e) {
reportProviderError(aProvider, aMethod, e);
callback(undefined);
return;
return undefined;
}
}

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

@ -1915,10 +1915,11 @@ var gCategories = {
return;
}
var item;
if (view.type == "search")
var item = this._search;
item = this._search;
else
var item = this.get(aId);
item = this.get(aId);
if (item) {
item.hidden = false;
@ -3150,7 +3151,7 @@ var gDetailView = {
if (pending != AddonManager.PENDING_NONE) {
this.node.removeAttribute("notification");
var pending = null;
pending = null;
const PENDING_OPERATIONS = ["enable", "disable", "install", "uninstall",
"upgrade"];
for (let op of PENDING_OPERATIONS) {
@ -3181,7 +3182,7 @@ var gDetailView = {
document.getElementById("detail-error").textContent = gStrings.ext.formatStringFromName(
"details.notification.unsignedAndDisabled", [this._addon.name, gStrings.brandShortName], 2
);
var errorLink = document.getElementById("detail-error-link");
let errorLink = document.getElementById("detail-error-link");
errorLink.value = gStrings.ext.GetStringFromName("details.notification.unsigned.link");
errorLink.href = Services.urlFormatter.formatURLPref("app.support.baseURL") + "unsigned-addons";
errorLink.hidden = false;
@ -3208,7 +3209,7 @@ var gDetailView = {
"details.notification.softblocked",
[this._addon.name], 1
);
var warningLink = document.getElementById("detail-warning-link");
let warningLink = document.getElementById("detail-warning-link");
warningLink.value = gStrings.ext.GetStringFromName("details.notification.softblocked.link");
warningLink.href = this._addon.blocklistURL;
warningLink.hidden = false;
@ -3218,7 +3219,7 @@ var gDetailView = {
"details.notification.outdated",
[this._addon.name], 1
);
var warningLink = document.getElementById("detail-warning-link");
let warningLink = document.getElementById("detail-warning-link");
warningLink.value = gStrings.ext.GetStringFromName("details.notification.outdated.link");
warningLink.href = Services.urlFormatter.formatURLPref("plugins.update.url");
warningLink.hidden = false;
@ -3228,7 +3229,7 @@ var gDetailView = {
"details.notification.vulnerableUpdatable",
[this._addon.name], 1
);
var errorLink = document.getElementById("detail-error-link");
let errorLink = document.getElementById("detail-error-link");
errorLink.value = gStrings.ext.GetStringFromName("details.notification.vulnerableUpdatable.link");
errorLink.href = this._addon.blocklistURL;
errorLink.hidden = false;
@ -3238,7 +3239,7 @@ var gDetailView = {
"details.notification.vulnerableNoUpdate",
[this._addon.name], 1
);
var errorLink = document.getElementById("detail-error-link");
let errorLink = document.getElementById("detail-error-link");
errorLink.value = gStrings.ext.GetStringFromName("details.notification.vulnerableNoUpdate.link");
errorLink.href = this._addon.blocklistURL;
errorLink.hidden = false;

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

@ -1179,7 +1179,7 @@
if (pending != AddonManager.PENDING_NONE) {
this.removeAttribute("notification");
var pending = null;
pending = null;
const PENDING_OPERATIONS = ["enable", "disable", "install",
"uninstall", "upgrade"];
for (let op of PENDING_OPERATIONS) {

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

@ -275,7 +275,7 @@ function sanitizeUpdateURL(aUpdate, aRequest, aHashPattern, aHashString) {
function parseRDFManifest(aId, aUpdateKey, aRequest, aManifestData) {
if (aManifestData.documentElement.namespaceURI != PREFIX_NS_RDF) {
throw Components.Exception("Update manifest had an unrecognised namespace: " + xml.documentElement.namespaceURI);
return;
return undefined;
}
function EM_R(aProp) {

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

@ -2885,11 +2885,11 @@ this.XPIProvider = {
updateSystemAddons: Task.async(function*() {
let systemAddonLocation = XPIProvider.installLocationsByName[KEY_APP_SYSTEM_ADDONS];
if (!systemAddonLocation)
return;
return undefined;
// Don't do anything in safe mode
if (Services.appinfo.inSafeMode)
return;
return undefined;
// Download the list of system add-ons
let url = Preferences.get(PREF_SYSTEM_ADDON_UPDATE_URL, null);
@ -5385,7 +5385,7 @@ AddonInstall.prototype = {
this.ownsTempFile = true;
yield this._createLinkedInstalls(files.filter(f => f.file != file));
return;
return undefined;
}
catch (e) {
// _createLinkedInstalls will log errors when it tries to process this
@ -6886,7 +6886,7 @@ AddonWrapper.prototype = {
let addon = addonFor(this);
if (this.type == "experiment") {
logger.warn("Setting applyBackgroundUpdates on an experiment is not supported.");
return;
return addon.applyBackgroundUpdates;
}
if (val != AddonManager.AUTOUPDATE_DEFAULT &&

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

@ -45,10 +45,11 @@ function search(aRemoteSearch, aCallback) {
EventUtils.synthesizeKey("VK_RETURN", { }, gManagerWindow);
wait_for_view_load(gManagerWindow, function() {
let filter;
if (aRemoteSearch)
var filter = gManagerWindow.document.getElementById("search-filter-remote");
filter = gManagerWindow.document.getElementById("search-filter-remote");
else
var filter = gManagerWindow.document.getElementById("search-filter-local");
filter = gManagerWindow.document.getElementById("search-filter-local");
EventUtils.synthesizeMouseAtCenter(filter, { }, gManagerWindow);
executeSoon(aCallback);

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

@ -218,7 +218,7 @@ add_test(function() {
ok(!settings[1].hasAttribute("first-row"), "Not the first row");
Services.prefs.setIntPref("extensions.inlinesettings1.boolint", 0);
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[1], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[1], "anonid", "input");
isnot(input.checked, true, "Checkbox should have initial value");
EventUtils.synthesizeMouseAtCenter(input, { clickCount: 1 }, gManagerWindow);
is(input.checked, true, "Checkbox should have updated value");
@ -229,7 +229,7 @@ add_test(function() {
ok(!settings[2].hasAttribute("first-row"), "Not the first row");
Services.prefs.setIntPref("extensions.inlinesettings1.integer", 0);
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[2], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[2], "anonid", "input");
is(input.value, "0", "Number box should have initial value");
input.select();
EventUtils.synthesizeKey("1", {}, gManagerWindow);
@ -242,7 +242,7 @@ add_test(function() {
ok(!settings[3].hasAttribute("first-row"), "Not the first row");
Services.prefs.setCharPref("extensions.inlinesettings1.string", "foo");
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[3], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[3], "anonid", "input");
is(input.value, "foo", "Text box should have initial value");
input.select();
EventUtils.synthesizeKey("b", {}, gManagerWindow);
@ -255,7 +255,7 @@ add_test(function() {
is(Services.prefs.getCharPref("extensions.inlinesettings1.string"), "bar/", "String pref should have been updated");
ok(!settings[4].hasAttribute("first-row"), "Not the first row");
var input = settings[4].firstElementChild;
input = settings[4].firstElementChild;
is(input.value, "1", "Menulist should have initial value");
input.focus();
EventUtils.synthesizeKey("b", {}, gManagerWindow);
@ -364,7 +364,7 @@ add_test(function() {
ok(!settings[1].hasAttribute("first-row"), "Not the first row");
Services.prefs.setIntPref("extensions.inlinesettings3.radioInt", 5);
var radios = settings[1].getElementsByTagName("radio");
radios = settings[1].getElementsByTagName("radio");
isnot(radios[0].selected, true, "Correct radio button should be selected");
is(radios[1].selected, true, "Correct radio button should be selected");
isnot(radios[2].selected, true, "Correct radio button should be selected");
@ -375,7 +375,7 @@ add_test(function() {
ok(!settings[2].hasAttribute("first-row"), "Not the first row");
Services.prefs.setCharPref("extensions.inlinesettings3.radioString", "juliet");
var radios = settings[2].getElementsByTagName("radio");
radios = settings[2].getElementsByTagName("radio");
isnot(radios[0].selected, true, "Correct radio button should be selected");
is(radios[1].selected, true, "Correct radio button should be selected");
isnot(radios[2].selected, true, "Correct radio button should be selected");
@ -446,7 +446,7 @@ add_test(function() {
is_element_hidden(node, "Unsupported settings should not be visible");
ok(!node.hasAttribute("first-row"), "Hidden row is not the first row");
var button = gManagerWindow.document.getElementById("detail-prefs-btn");
button = gManagerWindow.document.getElementById("detail-prefs-btn");
is_element_hidden(button, "Preferences button should not be visible");
gCategoryUtilities.openType("extension", run_next_test);
@ -608,13 +608,13 @@ add_test(function() {
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[0], "anonid", "input");
is(input.checked, false, "Checkbox should have initial value");
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[1], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[1], "anonid", "input");
is(input.checked, true, "Checkbox should have initial value");
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[2], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[2], "anonid", "input");
is(input.value, "12", "Number box should have initial value");
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[3], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[3], "anonid", "input");
is(input.value, "bar/", "Text box should have initial value");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[5], "anonid", "input");
@ -659,12 +659,12 @@ add_test(function() {
isnot(radios[0].selected, true, "Correct radio button should be selected");
is(radios[1].selected, true, "Correct radio button should be selected");
var radios = settings[1].getElementsByTagName("radio");
radios = settings[1].getElementsByTagName("radio");
isnot(radios[0].selected, true, "Correct radio button should be selected");
isnot(radios[1].selected, true, "Correct radio button should be selected");
is(radios[2].selected, true, "Correct radio button should be selected");
var radios = settings[2].getElementsByTagName("radio");
radios = settings[2].getElementsByTagName("radio");
isnot(radios[0].selected, true, "Correct radio button should be selected");
isnot(radios[1].selected, true, "Correct radio button should be selected");
is(radios[2].selected, true, "Correct radio button should be selected");

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

@ -214,7 +214,7 @@ add_test(function() {
ok(!settings[1].hasAttribute("first-row"), "Not the first row");
Services.prefs.setIntPref("extensions.inlinesettings1.boolint", 0);
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[1], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[1], "anonid", "input");
isnot(input.checked, true, "Checkbox should have initial value");
EventUtils.synthesizeMouseAtCenter(input, { clickCount: 1 }, gManagerWindow);
is(input.checked, true, "Checkbox should have updated value");
@ -225,7 +225,7 @@ add_test(function() {
ok(!settings[2].hasAttribute("first-row"), "Not the first row");
Services.prefs.setIntPref("extensions.inlinesettings1.integer", 0);
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[2], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[2], "anonid", "input");
is(input.value, "0", "Number box should have initial value");
input.select();
EventUtils.synthesizeKey("1", {}, gManagerWindow);
@ -238,7 +238,7 @@ add_test(function() {
ok(!settings[3].hasAttribute("first-row"), "Not the first row");
Services.prefs.setCharPref("extensions.inlinesettings1.string", "foo");
var input = gManagerWindow.document.getAnonymousElementByAttribute(settings[3], "anonid", "input");
input = gManagerWindow.document.getAnonymousElementByAttribute(settings[3], "anonid", "input");
is(input.value, "foo", "Text box should have initial value");
input.select();
EventUtils.synthesizeKey("b", {}, gManagerWindow);
@ -248,7 +248,7 @@ add_test(function() {
is(Services.prefs.getCharPref("extensions.inlinesettings1.string"), "bar", "String pref should have been updated");
ok(!settings[4].hasAttribute("first-row"), "Not the first row");
var input = settings[4].firstElementChild;
input = settings[4].firstElementChild;
is(input.value, "1", "Menulist should have initial value");
input.focus();
EventUtils.synthesizeKey("b", {}, gManagerWindow);
@ -358,7 +358,7 @@ add_test(function() {
ok(!settings[1].hasAttribute("first-row"), "Not the first row");
Services.prefs.setIntPref("extensions.inlinesettings3.radioInt", 5);
var radios = settings[1].getElementsByTagName("radio");
radios = settings[1].getElementsByTagName("radio");
isnot(radios[0].selected, true, "Correct radio button should be selected");
is(radios[1].selected, true, "Correct radio button should be selected");
isnot(radios[2].selected, true, "Correct radio button should be selected");
@ -369,7 +369,7 @@ add_test(function() {
ok(!settings[2].hasAttribute("first-row"), "Not the first row");
Services.prefs.setCharPref("extensions.inlinesettings3.radioString", "juliet");
var radios = settings[2].getElementsByTagName("radio");
radios = settings[2].getElementsByTagName("radio");
isnot(radios[0].selected, true, "Correct radio button should be selected");
is(radios[1].selected, true, "Correct radio button should be selected");
isnot(radios[2].selected, true, "Correct radio button should be selected");
@ -440,7 +440,7 @@ add_test(function() {
is_element_hidden(node, "Unsupported settings should not be visible");
ok(!node.hasAttribute("first-row"), "Hidden row is not the first row");
var button = gManagerWindow.document.getElementById("detail-prefs-btn");
button = gManagerWindow.document.getElementById("detail-prefs-btn");
is_element_hidden(button, "Preferences button should not be visible");
gCategoryUtilities.openType("extension", run_next_test);

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

@ -121,7 +121,7 @@ add_test(function() {
info("Changing sort order");
EventUtils.synthesizeMouseAtCenter(priceSorter, { }, gManagerWindow);
var items = Array.filter(list.childNodes, function(e) {
items = Array.filter(list.childNodes, function(e) {
return e.tagName == "richlistitem";
});

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше