mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Backed out changeset f4c33a37fe6d (bug 1395890) for failing browser-chrome's browser/components/extensions/test/browser/browser_ext_find.js. r=backout on a CLOSED TREE
This commit is contained in:
parent
9920f1b72a
commit
48545a66e9
@ -3,7 +3,6 @@
|
||||
|
||||
function frameScript() {
|
||||
function getSelectedText() {
|
||||
// eslint-disable-next-line mozilla/no-cpows-in-tests
|
||||
let frame = this.content.frames[0].frames[1];
|
||||
let Ci = Components.interfaces;
|
||||
let docShell = frame.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
@ -136,3 +135,4 @@ add_task(async function testDuplicatePinnedTab() {
|
||||
is(message.data.rect.top, top, `rect.top: - Expected: ${message.data.rect.top}, Actual: ${top}`);
|
||||
is(message.data.rect.left, left, `rect.left: - Expected: ${message.data.rect.left}, Actual: ${left}`);
|
||||
});
|
||||
|
||||
|
@ -82,10 +82,10 @@ module.exports = {
|
||||
"no-fallthrough": "error",
|
||||
|
||||
// Disallow use of multiline strings (use template strings instead).
|
||||
"no-multi-str": "error",
|
||||
"no-multi-str": "warn",
|
||||
|
||||
// Disallow multiple empty lines.
|
||||
"no-multiple-empty-lines": ["error", {"max": 2}],
|
||||
"no-multiple-empty-lines": ["warn", {"max": 2}],
|
||||
|
||||
// Disallow usage of __proto__ property.
|
||||
"no-proto": "error",
|
||||
@ -99,7 +99,7 @@ module.exports = {
|
||||
"no-throw-literal": "error",
|
||||
|
||||
// Disallow padding within blocks.
|
||||
"padded-blocks": ["error", "never"],
|
||||
"padded-blocks": ["warn", "never"],
|
||||
|
||||
// Require use of the second argument for parseInt().
|
||||
"radix": "error",
|
||||
|
@ -39,7 +39,7 @@ module.exports = {
|
||||
// devtools coding style.
|
||||
|
||||
// Rules from the mozilla plugin
|
||||
"mozilla/no-aArgs": "error",
|
||||
"mozilla/no-aArgs": "warn",
|
||||
"mozilla/no-cpows-in-tests": "error",
|
||||
"mozilla/no-single-arg-cu-import": "error",
|
||||
// See bug 1224289.
|
||||
@ -48,7 +48,7 @@ module.exports = {
|
||||
// directory for details. We reject requires using explicit
|
||||
// subdirectories of this directory.
|
||||
"mozilla/reject-some-requires": ["error", "^devtools/shared/platform/(chome|content)/"],
|
||||
"mozilla/var-only-at-top-level": "error",
|
||||
"mozilla/var-only-at-top-level": "warn",
|
||||
|
||||
// Rules from the React plugin
|
||||
"react/display-name": "error",
|
||||
@ -57,7 +57,7 @@ module.exports = {
|
||||
"react/no-did-update-set-state": "error",
|
||||
"react/no-direct-mutation-state": "error",
|
||||
"react/no-unknown-property": "error",
|
||||
"react/prefer-es6-class": ["error", "never"],
|
||||
"react/prefer-es6-class": ["warn", "never"],
|
||||
"react/prop-types": "error",
|
||||
"react/sort-comp": ["error", {
|
||||
order: [
|
||||
|
@ -23,8 +23,8 @@ module.exports = {
|
||||
// Rules from the mozilla plugin
|
||||
"mozilla/balanced-listeners": "error",
|
||||
"mozilla/no-aArgs": "error",
|
||||
"mozilla/no-cpows-in-tests": "error",
|
||||
"mozilla/var-only-at-top-level": "error",
|
||||
"mozilla/no-cpows-in-tests": "warn",
|
||||
"mozilla/var-only-at-top-level": "warn",
|
||||
|
||||
"valid-jsdoc": ["error", {
|
||||
"prefer": {
|
||||
@ -75,7 +75,7 @@ module.exports = {
|
||||
// Disallow use of multiple spaces (sometimes used to align const values,
|
||||
// array or object items, etc.). It's hard to maintain and doesn't add that
|
||||
// much benefit.
|
||||
"no-multi-spaces": "error",
|
||||
"no-multi-spaces": "warn",
|
||||
|
||||
// No expressions where a statement is expected
|
||||
"no-unused-expressions": "error",
|
||||
@ -93,7 +93,7 @@ module.exports = {
|
||||
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never"}],
|
||||
|
||||
// ++ and -- should not need spacing
|
||||
"space-unary-ops": ["error", {"nonwords": false, "words": true, "overrides": {"typeof": false}}],
|
||||
"space-unary-ops": ["warn", {"nonwords": false, "words": true, "overrides": {"typeof": false}}],
|
||||
|
||||
// Disallow using variables outside the blocks they are defined (especially
|
||||
// since only let and const are used, see "no-var").
|
||||
@ -188,7 +188,7 @@ module.exports = {
|
||||
"no-labels": ["error", {"allowLoop": true}],
|
||||
|
||||
// Disallow use of multiline strings (use template strings instead).
|
||||
"no-multi-str": "error",
|
||||
"no-multi-str": "warn",
|
||||
|
||||
// Disallow multiple empty lines.
|
||||
"no-multiple-empty-lines": [1, {"max": 2}],
|
||||
@ -256,7 +256,7 @@ module.exports = {
|
||||
"one-var": "off",
|
||||
|
||||
// Disallow padding within blocks.
|
||||
"padded-blocks": ["error", "never"],
|
||||
"padded-blocks": ["warn", "never"],
|
||||
|
||||
// Don't require quotes around object literal property names.
|
||||
"quote-props": "off",
|
||||
|
@ -2,37 +2,37 @@
|
||||
|
||||
module.exports = {
|
||||
"rules": {
|
||||
"mozilla/no-aArgs": "error",
|
||||
"mozilla/reject-importGlobalProperties": "error",
|
||||
"mozilla/var-only-at-top-level": "error",
|
||||
"mozilla/no-aArgs": "warn",
|
||||
"mozilla/reject-importGlobalProperties": "warn",
|
||||
"mozilla/var-only-at-top-level": "warn",
|
||||
"block-scoped-var": "error",
|
||||
"camelcase": "error",
|
||||
"camelcase": "warn",
|
||||
"comma-dangle": "off",
|
||||
"complexity": ["error", {"max": 20}],
|
||||
"curly": "error",
|
||||
"dot-location": ["error", "property"],
|
||||
"indent": ["error", 2, {"SwitchCase": 1}],
|
||||
"max-len": ["error", 80, 2, {"ignoreUrls": true}],
|
||||
"dot-location": ["warn", "property"],
|
||||
"indent": ["warn", 2, {"SwitchCase": 1}],
|
||||
"max-len": ["warn", 80, 2, {"ignoreUrls": true}],
|
||||
"max-nested-callbacks": ["error", 3],
|
||||
"new-cap": ["error", {"capIsNew": false}],
|
||||
"new-parens": "error",
|
||||
"no-extend-native": "error",
|
||||
"no-fallthrough": "error",
|
||||
"no-inline-comments": "error",
|
||||
"no-inline-comments": "warn",
|
||||
"no-mixed-spaces-and-tabs": "error",
|
||||
"no-multi-spaces": "error",
|
||||
"no-multi-str": "error",
|
||||
"no-multiple-empty-lines": ["error", {"max": 1}],
|
||||
"no-multi-spaces": "warn",
|
||||
"no-multi-str": "warn",
|
||||
"no-multiple-empty-lines": ["warn", {"max": 1}],
|
||||
"no-return-assign": "error",
|
||||
"no-sequences": "error",
|
||||
"no-shadow": "error",
|
||||
"no-shadow": "warn",
|
||||
"no-throw-literal": "error",
|
||||
"no-unused-vars": "error",
|
||||
"padded-blocks": ["error", "never"],
|
||||
"quotes": ["error", "double", "avoid-escape"],
|
||||
"semi": ["error", "always"],
|
||||
"semi-spacing": ["error", {"before": false, "after": true}],
|
||||
"space-in-parens": ["error", "never"],
|
||||
"padded-blocks": ["warn", "never"],
|
||||
"quotes": ["warn", "double", "avoid-escape"],
|
||||
"semi": ["warn", "always"],
|
||||
"semi-spacing": ["warn", {"before": false, "after": true}],
|
||||
"space-in-parens": ["warn", "never"],
|
||||
"strict": ["error", "global"],
|
||||
"yoda": "error"
|
||||
}
|
||||
|
@ -59,8 +59,8 @@ module.exports = {
|
||||
|
||||
"rules": {
|
||||
"mozilla/import-content-task-globals": "error",
|
||||
"mozilla/import-headjs-globals": "error",
|
||||
"mozilla/mark-test-function-used": "error",
|
||||
"mozilla/import-headjs-globals": "warn",
|
||||
"mozilla/mark-test-function-used": "warn",
|
||||
"mozilla/no-arbitrary-setTimeout": "error"
|
||||
}
|
||||
};
|
||||
|
@ -49,7 +49,7 @@ module.exports = {
|
||||
|
||||
rules: {
|
||||
"mozilla/import-content-task-globals": "error",
|
||||
"mozilla/import-headjs-globals": "error",
|
||||
"mozilla/mark-test-function-used": "error"
|
||||
"mozilla/import-headjs-globals": "warn",
|
||||
"mozilla/mark-test-function-used": "warn"
|
||||
}
|
||||
};
|
||||
|
@ -45,8 +45,8 @@ module.exports = {
|
||||
|
||||
"rules": {
|
||||
"mozilla/import-content-task-globals": "error",
|
||||
"mozilla/import-headjs-globals": "error",
|
||||
"mozilla/mark-test-function-used": "error",
|
||||
"mozilla/import-headjs-globals": "warn",
|
||||
"mozilla/mark-test-function-used": "warn",
|
||||
"no-shadow": "error"
|
||||
}
|
||||
};
|
||||
|
@ -67,8 +67,8 @@ module.exports = {
|
||||
},
|
||||
|
||||
rules: {
|
||||
"mozilla/import-headjs-globals": "error",
|
||||
"mozilla/mark-test-function-used": "error",
|
||||
"mozilla/import-headjs-globals": "warn",
|
||||
"mozilla/mark-test-function-used": "warn",
|
||||
"mozilla/no-arbitrary-setTimeout": "error",
|
||||
"mozilla/no-useless-run-test": "error",
|
||||
"no-shadow": "error"
|
||||
|
Loading…
Reference in New Issue
Block a user