Commit Graph

6078 Commits

Author SHA1 Message Date
Marco Bonardo
c8b95a9017 Bug 1493193 - Add an initial UrlbarProvidersManager implementation. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D6508

--HG--
rename : browser/components/urlbar/tests/unit/test_QueryContext.js => browser/components/urlbar/tests/unit/test_providerOpenTabs.js
rename : browser/components/urlbar/tests/unit/test_QueryContext.js => browser/components/urlbar/tests/unit/test_providersManager.js
extra : moz-landing-system : lando
2018-09-28 14:18:04 +00:00
Brian Grinstead
eaaac5ca03 Bug 1460982 - Convert <searchbar> to a Custom Element;r=adw
Differential Revision: https://phabricator.services.mozilla.com/D5912

--HG--
rename : browser/components/search/content/search.xml => browser/components/search/content/searchbar.js
extra : moz-landing-system : lando
2018-09-27 23:09:55 +00:00
Tom Prince
bced66e3b0 Bug 1493997: [mozharness] Ensure that MOZ_TOOLCHAINS isn't specified if mach isn't available; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D6800

--HG--
extra : moz-landing-system : lando
2018-09-25 18:26:10 +00:00
Andrew Halberstadt
9d5e499a90 Bug 1448417 - [mozlint] Remove ability to specify globs in an 'include' directive, r=egao
There is only a single linter (test-disable.yml) that uses a glob in any
include path, and that usage is easily replaced by using the 'extensions' key
instead.

Since globs in include directives aren't very useful, let's disallow them. This
will allow us to simplify the 'filterpaths' logic quite substantially and make
future refactorings in this area easier.

Differential Revision: https://phabricator.services.mozilla.com/D6798

--HG--
extra : moz-landing-system : lando
2018-09-25 18:30:23 +00:00
Mark Banner
3043f2a053 Bug 1482435 - Separate out nodejs finding logic from configure and use it for ESLint. r=firefox-build-system-reviewers,gps
This extracts the current logic for finding nodejs into its own module in mozbuild. Configure and ESLint then use it.

For ESLint, this will change the first location it looks for nodejs to be the .mozbuild directory.

Differential Revision: https://phabricator.services.mozilla.com/D6430

--HG--
extra : moz-landing-system : lando
2018-09-25 18:15:51 +00:00
Margareta Eliza Balazs
ffe6eaf2f0 Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
Andi-Bogdan Postelnicu
4d4386fe8f Bug 1493672 - Configuration file should also contain a minimum clang-tidy version. r=janx
Differential Revision: https://phabricator.services.mozilla.com/D6665

--HG--
extra : moz-landing-system : lando
2018-09-25 07:51:39 +00:00
Gabriele Svelto
1b38644136 Bug 1493365 - Reduce the amount of memory consumed when reading symbol files r=ted
When reworking the script each entry holding a function name was replaced by a
dictionary holding both the function name and its size. This significantly
increased memory consumption as using a full-fledged dictionary for only two
fields is very space inefficient. This patch uses a named tuple instead of a
dictionary for every entry, reducing memory consumption by almost four times.

Differential Revision: https://phabricator.services.mozilla.com/D6603

--HG--
extra : moz-landing-system : lando
2018-09-24 20:43:37 +00:00
Gurzau Raul
79c1eec12d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-25 01:10:22 +03:00
Nathan Froyd
c104528264 Bug 1493282 - improve hashtable usage in profiler buffer entries; r=mstange
We have several APIs that enable us to avoid redundant hash table
lookups; we should be using them here.
2018-09-24 14:41:06 -04:00
Mark Banner
9b1b5e2821 Bug 1493654 - Upgrade eslint-plugin-html to 4.0.6 to pick up performance fix. r=mossop
Also upgrade eslint and eslint-plugin-react whilst we're here.

Differential Revision: https://phabricator.services.mozilla.com/D6659

--HG--
extra : moz-landing-system : lando
2018-09-24 15:33:56 +00:00
Andreea Pavel
62ce7b988d Merge mozilla-inbound to mozilla-central. a=merge 2018-09-22 12:34:50 +03:00
Christoph Diehl
34620c6b05 [mq]: Bug 1493078 2018-09-21 20:16:50 +02:00
Gabriele Svelto
e9f4d4c3af Bug 1470223 - Prefer FUNC entries to PUBLIC entries when fixing symbols r=ted
This patch changes the way we search symbols when fixing up a stack.
Previously we would find the closest PUBLIC or FUNC entry lower than a given
address. Because of how symbol files were processed we preferred PUBLIC
entries to FUNC ones. Now we look first for the function that contains the
address (obtained from the FUNC entries) then if none is available we look for
the closest, lower PUBLIC entry.

Differential Revision: https://phabricator.services.mozilla.com/D5033

--HG--
extra : moz-landing-system : lando
2018-09-21 12:50:32 +00:00
arthur.iakab
1c139aa20a Merge mozilla-central to autoland 2018-09-21 12:52:46 +03:00
Margareta Eliza Balazs
21588b2a98 Merge inbound to mozilla-central. a=merge 2018-09-21 12:39:35 +03:00
Andreea Pavel
1e26da737a Bug 1483780 - additional patch to sanitizer-less-4 r=test-fix 2018-09-21 07:13:52 +03:00
Gurzau Raul
5777753954 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-21 07:15:29 +03:00
Nicolas Ouellet-Payeur
b5b19652b2 Bug 462674 - URLBar: Autocomplete "about:" URLs r=mak
Pages that are whitelisted for displaying on about:about can be
autocompleted in the URL bar.

MozReview-Commit-ID: BYhWUImyiJH

Differential Revision: https://phabricator.services.mozilla.com/D3072

--HG--
extra : moz-landing-system : lando
2018-09-21 00:31:02 +00:00
Olli Pettay
b05284f24f Bug 1492395 - Make event markers in profiler timeline per event, not per event listener, r=mstange
--HG--
extra : rebase_source : 53b205eabc2f318cdaa91e91bd1bad0c27d8a5dd
2018-09-21 02:03:04 +03:00
Thomas P.
fde56b2dde Bug 1483780: enable sanitizer-less libfuzzer builds r=froydnj 2018-09-20 21:21:38 +00:00
Andreea Pavel
a6ba34f2ad Backed out 2 changesets (bug 1483780) for build bustages on a CLOSED TREE
Backed out changeset 2b0a42c589c5 (bug 1483780)
Backed out changeset 48d133cbafd3 (bug 1483780)
2018-09-21 05:43:03 +03:00
Thomas P.
c047fdb3fb Bug 1483780: enable sanitizer-less libfuzzer builds r=froydnj
--HG--
extra : histedit_source : b7caa42560c3d8e7ba1dbf61fcacfe0698790801
2018-09-20 21:21:38 +00:00
Andi-Bogdan Postelnicu
8218d8a740 Bug 1492770 - Activate google-* checkers that make sense to our code. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D6391

--HG--
extra : moz-landing-system : lando
2018-09-20 15:29:32 +00:00
Andi-Bogdan Postelnicu
fb4dc15757 Bug 1480089 - pass all of the test files to to our static-analysis pipeline. r=janx
Differential Revision: https://phabricator.services.mozilla.com/D4659

--HG--
extra : moz-landing-system : lando
2018-09-20 07:38:27 +00:00
Drew Willcoxon
4ad9038141 Bug 1489282 - Create a UrlbarPreferences module that can be used across all urlbar components r=mak
This factors out the `Prefs` object from UnifiedComplete.js into UrlbarPreferences.jsm and makes required changes so it's not tied to consts and other identifiers local to UnifiedComplete.js. It adds another new module, UrlbarUtils.jsm, for storing consts that both UrlbarPreferences and UnifiedComplete use.

In order to preserve blame as much as possible, I used `hg cp` to copy UnifiedComplete.js to UrlbarPreferences.jsm, and then I removed all the non-Prefs code before making other changes, so this patch looks bigger than it really is. (Maybe I wasn't actually so successful in preserving a lot of blame.)

Differential Revision: https://phabricator.services.mozilla.com/D5626

--HG--
rename : toolkit/components/places/UnifiedComplete.js => browser/components/urlbar/UrlbarPrefs.jsm
extra : moz-landing-system : lando
2018-09-18 20:06:27 +00:00
Nazım Can Altınova
98bd5a2953 Bug 1475553 - Add type field to all markers that doesn't have before r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D5138

--HG--
extra : moz-landing-system : lando
2018-09-17 19:01:03 +00:00
Alex Gaynor
e142879416 Bug 1490777 -- don't log a warning in IPC fuzzing if a shmem segment was removed; r=posidron
Differential Revision: https://phabricator.services.mozilla.com/D5898

--HG--
extra : moz-landing-system : lando
2018-09-15 13:06:02 +00:00
Mark Banner
e749f1b196 Bug 1469384 - Allow no-useless-removeEventListener to not throw if only one argument is given to an addEventListener call. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D5882

--HG--
extra : moz-landing-system : lando
2018-09-14 17:05:09 +00:00
shindli
0c0c6fddd8 Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout
--HG--
rename : taskcluster/docker/static-analysis-build/Dockerfile => taskcluster/docker/infer-build/Dockerfile
2018-09-14 16:35:23 +03:00
Robert Bartlensky
af9de513f7 Bug 1479503: Check infer in ./mach static-analysis autotest. r=nalexander
Adds infer to ./mach static-analysis autotest.

Differential Revision: https://phabricator.services.mozilla.com/D5692

--HG--
rename : taskcluster/docker/infer-build/Dockerfile => taskcluster/docker/static-analysis-build/Dockerfile
extra : moz-landing-system : lando
2018-09-13 20:58:03 +00:00
Mike Hommey
feacd37eba Bug 1490845 - Avoid fuzzer symbols being hidden r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D5729

--HG--
extra : moz-landing-system : lando
2018-09-13 22:36:11 +00:00
Csoregi Natalia
7ed619163e Backed out changeset 081d8311be59 (bug 1479503) for build bustage - java not found. CLOSED TREE
--HG--
rename : taskcluster/docker/static-analysis-build/Dockerfile => taskcluster/docker/infer-build/Dockerfile
2018-09-12 13:16:06 +03:00
Robert Bartlensky
b4ebd25931 Bug 1479503: Check infer in ./mach static-analysis autotest. r=nalexander
Adds infer to ./mach static-analysis autotest.

Differential Revision: https://phabricator.services.mozilla.com/D4547

--HG--
rename : taskcluster/docker/infer-build/Dockerfile => taskcluster/docker/static-analysis-build/Dockerfile
extra : moz-landing-system : lando
2018-09-12 09:34:30 +00:00
Gerald Squelart
b51e0fd0cc Bug 1489944 - Fixed some std::move warnings - r=froydnj
> dom/media/gmp/CDMStorageIdProvider.cpp(63,10):  warning:
> local variable 'storageId' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/DisplayItemClip.cpp(581,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/DisplayItemClipChain.cpp(88,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/nsDisplayList.cpp(179,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> gfx/thebes/gfxWindowsPlatform.cpp(454,10):  warning:
> moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
Will remove std::move().

> gfx/thebes/gfxFontEntry.cpp(245,20):  warning:
> local variable 'name' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> netwerk/cookie/nsCookieService.cpp(4460,10):  warning:
> local variable 'path' will be copied despite being returned by name [-Wreturn-std-move]
GetPathFromURI() result is stored in an nsAutoCString, so it might as well return that type.

> toolkit/components/extensions/WebExtensionPolicy.cpp(462,12):  warning:
> local variable 'result' will be copied despite being returned by name [-Wreturn-std-move]
> toolkit/components/extensions/WebExtensionPolicy.cpp(475,10):  warning:
> local variable 'result' will be copied despite being returned by name [-Wreturn-std-move]
`result` may be empty or may be arbitrarily long, so I'll use nsCString inside the function.

> toolkit/xre/CmdLineAndEnvUtils.h(349,10):  warning:
> moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
Returning an UniquePtr, will remove std::move().
Also will `return s` instead of `return nullptr` when `(!s)`, to avoid extra construction which could also prevent elision (not entirely sure, but it's at least not worse!); and it's clearer that the two `return`s return the same already-constructed on-stack object.

> tools/profiler/core/shared-libraries-win32.cc(111,10):  warning:
> local variable 'version' will be copied despite being returned by name [-Wreturn-std-move]
nsPrintfCString -> nsCString, will add std::move().

> xpcom/glue/FileUtils.cpp(179,10):  warning:
> local variable 'fullName' will be copied despite being returned by name [-Wreturn-std-move]
> xpcom/glue/FileUtils.cpp(209,10):  warning:
> local variable 'path' will be copied despite being returned by name [-Wreturn-std-move]
nsAuto{,C}String -> ns{,C}String, will add std::move().

This allowed removals of 'AllowCompilerWarnings' from layout/painting,
netwerk/cookie, and toolkit/components/extensions.

Differential Revision: https://phabricator.services.mozilla.com/D5425

--HG--
extra : moz-landing-system : lando
2018-09-10 15:51:48 +00:00
Robert Helmer
7d4c15f217 Bug 1465251 - use PrioEncoder to encode Telemetry values for pilot project r=kmag
Use PrioEncoder to encode a few already-included histograms, so we can compare results on the Telemetry server side.

Differential Revision: https://phabricator.services.mozilla.com/D5088

--HG--
extra : moz-landing-system : lando
2018-09-09 00:23:52 +00:00
Mike Hommey
f1afe5ceec Bug 1489340 - Remove xpcom/typelib r=froydnj
Nothing is using the xpt module anymore, which means we can remove it,
as well as the runtests.py script that runs its test, and the
integration of those tests in the build system.

Depends on D5221

Differential Revision: https://phabricator.services.mozilla.com/D5223

--HG--
extra : moz-landing-system : lando
2018-09-07 13:55:38 +00:00
Sylvestre Ledru
41b4041464 Bug 1489449 - Add prio and other thirdparty libs to the list of thirdparty code r=janx
Differential Revision: https://phabricator.services.mozilla.com/D5247

--HG--
extra : moz-landing-system : lando
2018-09-07 12:08:25 +00:00
Mark Banner
ee2e573e9a Bug 1487125 - Create a basic UrlbarController object for the address bar rewrite. r=mak,dao
This creates a basic object with minimal search functionality. It currently uses a dummy ProvidersManager that can be replaced once we get the real one.

There are two test files, the unit one is aiming to test at a unit level - stubbing out the manager, and checking the functionality works correctly.

The second is for checking integration with the providers manager, and it does the right things when linked together. For now, this has just a simple check that uses the dummy ProvidersManager for the case of returning a single result matching the URL.

Depends on D4566

Differential Revision: https://phabricator.services.mozilla.com/D4973

--HG--
extra : moz-landing-system : lando
2018-09-06 19:54:21 +00:00
Marco Bonardo
8f1401cf22 Bug 1478582 - Bug 14785825 - Move address bar model tokenization to a module. r=adw
This is a first stab at the new tokenizer.
It's not expected to be perfect yet, but good enough to be modified and replace the existing code in unifiedComplete with just a few modifications.
It's mostly intended to start setting up a code and tests structure.

Differential Revision: https://phabricator.services.mozilla.com/D2838

--HG--
extra : moz-landing-system : lando
2018-09-06 15:12:10 +00:00
Coroiu Cristina
ee08c248cc Backed out changeset c291d6d95022 (bug 1478582) for browser-chome failures at browser/base/content/test/static/browser_all_files_referenced.js 2018-09-06 17:26:22 +03:00
Marco Bonardo
7d48aaf18e Bug 1478582 - Bug 14785825 - Move address bar model tokenization to a module. r=adw
This is a first stab at the new tokenizer.
It's not expected to be perfect yet, but good enough to be modified and replace the existing code in unifiedComplete with just a few modifications.
It's mostly intended to start setting up a code and tests structure.

Differential Revision: https://phabricator.services.mozilla.com/D2838

--HG--
extra : moz-landing-system : lando
2018-09-05 23:38:17 +00:00
Tiberius Oros
81171b2595 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-06 01:29:33 +03:00
Sylvestre Ledru
e148db5ea3 Bug 1488687 - Enable braces around statements clang-tidy checker r=Ehsan
This will be enabled only at review phase.
If the warning is ignored in phabricator, nothing will happen.

This should be enforced as it is part of the Mozilla coding style:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Control_Structures

Differential Revision: https://phabricator.services.mozilla.com/D5014

--HG--
extra : moz-landing-system : lando
2018-09-05 14:07:58 +00:00
André Bargull
ed962c63e5 Bug 1485066 - Part 8: Rename JS_EncodeString to JS_EncodeStringToLatin1. r=Waldo 2018-09-05 06:05:03 -07:00
André Bargull
e4d1d98f88 Bug 1485066 - Part 1: Remove JSAutoByteString. r=Waldo 2018-09-05 02:25:42 -07:00
Jan Keromnes
11dd9afb58 Bug 1486410 - Bug 1466427 - Enable new clang-tidy 7.0 checks. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D4210

--HG--
extra : moz-landing-system : lando
2018-09-04 11:55:19 +00:00
Mark Banner
c6885f5391 Bug 1488445 - Remove and replace obsolete ESLint rules. r=mossop
This removes a number of references to rules that are now deprecated or removed from ESLint.

- no-native-reassign is replaced with no-global-assign
- no-spaced-func is replaced with func-call-spacing (where enabled)

Depends on D4944

Differential Revision: https://phabricator.services.mozilla.com/D4946

--HG--
extra : moz-landing-system : lando
2018-09-04 18:08:43 +00:00
Mark Banner
56437d9aed Bug 1488445 - Change the ESLint configuration to extend from eslint:recommended. r=mossop
This enables the following extra rules over the current configuration:

- for-direction
- no-compare-neg-zero
- no-new-symbol
- no-this-before-super

Other rules that are in eslint:recommended but not in our configuration are turned off for now.

Differential Revision: https://phabricator.services.mozilla.com/D4944

--HG--
extra : moz-landing-system : lando
2018-09-04 18:08:41 +00:00
Coroiu Cristina
83cdfe7284 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00