Merge mozilla-inbound to mozilla-central. a=merge
authorDorel Luca <dluca@mozilla.com>
Mon, 03 Sep 2018 00:29:40 +0300
changeset 489567 634b562ae2c3af1c07e12cca895796cc501f343d
parent 489554 88b606c56fedc9027c0c07f39e13ff18b71b298b (diff)
parent 489566 766ddd82a829064d4dc62c1178140e39136fb931 (current diff)
child 489568 ce85e9d3f366766c061cf893fda5c9689bf05b0c
child 489576 8a18c6a79fb95d0bcba8c4ec02c81ef63bcd112a
push id9738
push useraciure@mozilla.com
push dateMon, 03 Sep 2018 16:13:51 +0000
treeherdermozilla-beta@f5841408a66c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmerge
milestone63.0a1
first release with
nightly linux32
634b562ae2c3 / 63.0a1 / 20180902220539 / files
nightly linux64
634b562ae2c3 / 63.0a1 / 20180902220539 / files
nightly mac
634b562ae2c3 / 63.0a1 / 20180902220539 / files
nightly win32
634b562ae2c3 / 63.0a1 / 20180902220539 / files
nightly win64
634b562ae2c3 / 63.0a1 / 20180902220539 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Merge mozilla-inbound to mozilla-central. a=merge
--- a/browser/components/moz.build
+++ b/browser/components/moz.build
@@ -47,16 +47,17 @@ DIRS += [
     'preferences',
     'privatebrowsing',
     'resistfingerprinting',
     'search',
     'sessionstore',
     'shell',
     'syncedtabs',
     'uitour',
+    'urlbar',
     'translation',
 ]
 
 DIRS += ['build']
 
 if CONFIG['NIGHTLY_BUILD']:
     DIRS += ['payments']
 
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/.eslintrc.js
@@ -0,0 +1,31 @@
+"use strict";
+
+module.exports = {
+  rules: {
+    "mozilla/var-only-at-top-level": "error",
+    "require-jsdoc": ["error", {
+        "require": {
+            "FunctionDeclaration": true,
+            "MethodDefinition": true,
+            "ClassDeclaration": true,
+            "ArrowFunctionExpression": true,
+            "FunctionExpression": true
+        }
+    }],
+    "valid-jsdoc": ["error", {
+      prefer: {
+        return: "returns",
+      },
+      preferType: {
+        Boolean: "boolean",
+        Number: "number",
+        String: "string",
+        Object: "object",
+        bool: "boolean",
+      },
+      requireParamDescription: false,
+      requireReturn: false,
+      requireReturnDescription: false,
+    }],
+  }
+};
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/moz.build
@@ -0,0 +1,11 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+with Files("**"):
+    BUG_COMPONENT = ("Firefox", "Address Bar")
+
+EXTRA_JS_MODULES += [
+]
+
+XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/tests/unit/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/xpcshell-test"
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/tests/unit/test_QueryContext.js
@@ -0,0 +1,10 @@
+/* Any copyright is dedicated to the Public Domain.
+   http://creativecommons.org/publicdomain/zero/1.0/ */
+
+"use strict";
+
+// XXX Bug 1487125 will fill out this test.
+
+add_task(function test_constructor() {
+  Assert.ok(true);
+});
new file mode 100644
--- /dev/null
+++ b/browser/components/urlbar/tests/unit/xpcshell.ini
@@ -0,0 +1,5 @@
+[DEFAULT]
+head =
+firefox-appdir = browser
+
+[test_QueryContext.js]