Commit Graph

651357 Commits

Author SHA1 Message Date
Oriol Brufau
4be85f2295 Bug 1392760 - Avoid exponential behavior when inspecting nested proxies. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28214

--HG--
extra : moz-landing-system : lando
2019-05-14 06:46:30 +00:00
dlee
d7daa3c130 Bug 1542744 - P3. Run the same prefixset testcases for different configuration. r=gcp
This patch does the following:
1. Run the same prefixset tests when
  * browser.safebrowsing.prefixset.max_array_size = 0
  * browser.safebrowsing.prefixset.max_array_size = UINT32_MAX

  This makes sure both of the methods to store prefixset are tested by existing testcases

2. Refine gtest with test fixture
3. Add TinySet and LargeSet testcases

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

--HG--
extra : moz-landing-system : lando
2019-05-10 17:40:11 +00:00
dlee
8370cfe1bf Bug 1542744 - P2. Improve performance of MakePrefixSet by using different algorithm according to the number of prefixes. r=gcp
The goal of this patch is to reduce the number of memory reallocation during
|MakePrefixSet|[1].

Here is the number of nsTArray memory reallocation occur during |MakePrefixSet|
(test in my local platform):
googpub-phish-proto: 58k times
goog-malware-proto: 9k times
goog-unwanted-proto: 25k times
goog-badbinurl-proto: 6k times

This patch improves the performance by:
1. For tables whose prefixes are less than 128*1024(malware, unwanted,
badinurl).

Store prefixes directly without dividing allocation into smaller chunks.
Because the maximum size to store all the prefixes in a single array for
these tables will be less than 512k, we can avoid Bug 1046038.

This simplifies the internal prefixset data structure generation and total
memory usage is also saved:
goog-malware-proto  : 437K -> 163k
goog-unwanted-proto : 658k -> 446k
goog-badbinurl-proto: 320k -> 110k

The single largest allocated continuous memory size is:
goog-malware-proto  : 86k -> 163k
goog-unwanted-proto : 86k -> 446k
goog-badbinurl-proto: 77k -> 110k

A further improvement can be done for this part is for tables with fewer
prefixes, we can use an one-dimension delta array to reduce the size of a
single continuous memory allocation.

2. For tables with more prefixes:

According to experiment, when prefixes are more than 400k
the delta arrays have very high chance that are full, in the case of
phishing table, we can estimate the capacity accurately before
applying delta algorithm.

The shortcoming of this part is when prefixes are between 130k~400k,
the capacity estimation is not accurate.

[1] https://searchfox.org/mozilla-central/rev/b2015fdd464f598d645342614593d4ebda922d95/toolkit/components/url-classifier/nsUrlClassifierPrefixSet.cpp#99

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

--HG--
extra : moz-landing-system : lando
2019-05-14 21:05:41 +00:00
dlee
59923e57ab Bug 1542744 - P1. Remove calculating checksum for mIndexDelta array. r=gcp
The checksum calculating code is used to find the root cause of a crash
bug during update(Bug 1362761). Since the algorithm will be update in
these series of patches, we don't need to keep it.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 08:35:06 +00:00
Ryan VanderMeulen
8f5477d25e Bug 1313741 - Use AppConstants in DOM and XPConnect tests instead of manual detection. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D30973

--HG--
extra : moz-landing-system : lando
2019-05-14 21:01:05 +00:00
Narcis Beleuzu
3e08d898d0 Backed out changeset bfa4ce8a0ef6 (bug 1551339) for bustages on vixl/MozAssembler-vixl.cpp . CLOSED TREE 2019-05-14 23:58:26 +03:00
Mathieu Leplatre
64e548abb4 Bug 1549730 - Add guardrails for Remote Settings preferences r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D31043

--HG--
extra : moz-landing-system : lando
2019-05-14 20:45:03 +00:00
Joel Maher
ff22bbc199 Bug 1550826 - add initial support for osx mojave 10.14 to our CI. r=ahal
add initial support for osx mojave 10.14 to our CI.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 18:33:12 +00:00
Jim Mathies
596063b9b7 Bug 1541186 - Switch to using TYPE_MOZILLA_NONMAINTHREAD for MediaManager. r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D25925

--HG--
extra : moz-landing-system : lando
2019-05-01 18:16:55 +00:00
Mathieu Leplatre
78ecdc82c5 Bug 1546912 - Dedicated signature tests for Remote Settings r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D30650

--HG--
rename : services/common/tests/moz.build => services/settings/test/unit/moz.build
rename : services/common/tests/unit/test_blocklist_signatures.js => services/settings/test/unit/test_remote_settings_signatures.js
rename : services/common/tests/unit/test_blocklist_signatures/collection_signing_ee.pem.certspec => services/settings/test/unit/test_remote_settings_signatures/collection_signing_ee.pem.certspec
rename : services/common/tests/unit/test_blocklist_signatures/collection_signing_int.pem.certspec => services/settings/test/unit/test_remote_settings_signatures/collection_signing_int.pem.certspec
rename : services/common/tests/unit/test_blocklist_signatures/collection_signing_root.pem.certspec => services/settings/test/unit/test_remote_settings_signatures/collection_signing_root.pem.certspec
rename : services/common/tests/unit/test_blocklist_signatures/moz.build => services/settings/test/unit/test_remote_settings_signatures/moz.build
extra : moz-landing-system : lando
2019-05-13 17:04:26 +00:00
Sean Stangl
a59e6c161c Bug 1551339 - Update VIXL to recent Utils and Globals files. r=nbp
This is preliminary work to allowing encoding of JSCVTFP, the instruction that exists on new AArch64 devices that greatly speeds up websites that use floating-point math.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 16:16:20 +00:00
Tom Ritter
c3fd97897f Bug 1550866 - Support try syntax '-p foo,bar,bob -u all[all]' to run Tier 2 tests on all platforms specified r=catlee
Differential Revision: https://phabricator.services.mozilla.com/D30720

--HG--
extra : moz-landing-system : lando
2019-05-14 19:53:44 +00:00
Henrik Skupin
dceb981485 Bug 1528236 - [raptor] Use opt-out mechanism for setting test specific preferences. r=perftest-reviewers,stephendonner
Due to missing class abstractions for Gecko- and non-Gecko based
browsers it's currently sub-optimal to define when preferences
as defined by tests will be set.

Given that by default we run Gecko-based applications other
browsers should opt-out from setting test preferences.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 19:32:27 +00:00
Henrik Skupin
22364e41eb Bug 1528236 - [raptor] Fix root permission failures for device tuning. r=perftest-reviewers,stephendonner
Differential Revision: https://phabricator.services.mozilla.com/D30922

--HG--
extra : moz-landing-system : lando
2019-05-14 19:29:53 +00:00
Henrik Skupin
1fb0816fdd Bug 1528236 - [raptor] Environment variables should not be set via extra args. r=perftest-reviewers,rwood
Differential Revision: https://phabricator.services.mozilla.com/D29333

--HG--
extra : moz-landing-system : lando
2019-05-14 19:32:15 +00:00
Henrik Skupin
33461df3ea Bug 1528236 - [raptor] Update profile building code to align with mochitests. r=perftest-reviewers,rwood
Differential Revision: https://phabricator.services.mozilla.com/D29332

--HG--
extra : moz-landing-system : lando
2019-05-14 19:32:13 +00:00
Henrik Skupin
d93887ea36 Bug 1528236 - [raptor] Use constructor for initialization of raptor instances. r=perftest-reviewers,rwood
The patch tries to reduce the amount of initialization code
to call when creating a new Raptor class.

Initializing the ADBDevice already in the constructor of the
RaptorAndroid class is currently not possible because it would
mean that a device is immediately created but the "adb" binary
is not available for python test jobs. This has to be fixed later.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 19:32:11 +00:00
Henrik Skupin
c1ba84a470 Bug 1528236 - [raptor] Allow Raptor to run the tests all at once. r=perftest-reviewers,stephendonner,rwood
Differential Revision: https://phabricator.services.mozilla.com/D31047

--HG--
extra : moz-landing-system : lando
2019-05-14 19:32:01 +00:00
Henrik Skupin
d529cab0f1 Bug 1528236 - [raptor] Remove test root folder during clean-up. r=perftest-reviewers,rwood
Differential Revision: https://phabricator.services.mozilla.com/D29330

--HG--
extra : moz-landing-system : lando
2019-05-14 19:31:57 +00:00
Henrik Skupin
908e40dddf Bug 1528236 - [raptor] Refactor handling of remote profiles. r=perftest-reviewers,rwood
Differential Revision: https://phabricator.services.mozilla.com/D29329

--HG--
extra : moz-landing-system : lando
2019-05-14 19:30:11 +00:00
Geoff Brown
2e23a14e8b Bug 1535287 - Cleanup remaining clipboard subsuite entries in manifest; r=ahal
I assume these were accidentally missed in bug 1546459.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 19:15:26 +00:00
Boris Zbarsky
d24853373a Bug 1551647. Stop using [array] in nsIProperties. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D31110

--HG--
extra : moz-landing-system : lando
2019-05-14 18:46:13 +00:00
Florens Verschelde
cdb0ff84d7 Bug 1550040 - Add warning icon to contrast warning badge; r=yzen,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D30459

--HG--
extra : moz-landing-system : lando
2019-05-14 19:05:48 +00:00
Alexandre Poirot
2797f9402a Bug 1548102 - Coordinate Page.frameNavigated and Runtime.executionContextDestroyed/Created events. r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D30237

--HG--
extra : moz-landing-system : lando
2019-05-14 15:18:51 +00:00
Boris Zbarsky
0bca73c99e Bug 1551103. Stop using [array] in nsIServiceWorkerManager. r=asuth
Though I do wonder whether we could just remove the unused data byte arg and
simplify the code...

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

--HG--
extra : moz-landing-system : lando
2019-05-14 17:24:24 +00:00
Boris Zbarsky
c8eeaf68de Bug 1551099. Stop using [array] in nsISDBResults. r=asuth
Though given that getAsArray is unused and untested, maybe we should just
remove it?

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

--HG--
extra : moz-landing-system : lando
2019-05-14 17:23:54 +00:00
Kartikaya Gupta
e95d575f7f Bug 1545968 - Produce artifacts with the rust stdlib src and analysis data for consumption by searchfox. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28283

--HG--
extra : moz-landing-system : lando
2019-05-14 17:31:05 +00:00
Kartikaya Gupta
e23526209c Bug 1545968 - Update repack_rust.py to include rust stdlib src and analysis data. r=glandium
This makes the rust toolchain artifacts contain the rust stdlib as well,
for use by searchfox. It does bring up the size of the toolchain
artifact slightly - rustc.tar.xz file for the Linux/rust 1.34 job for
example goes from 270483672 bytes to 273803148 bytes (1.23% larger) and
the equivalent android tarball goes from 230503888 to 235698736 bytes
(2.25% larger).

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

--HG--
extra : moz-landing-system : lando
2019-05-14 17:30:55 +00:00
Mark Striemer
50fb137a2c Bug 1550521 - Remove private browsing help message with settings hidden r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D30747

--HG--
extra : moz-landing-system : lando
2019-05-14 17:36:10 +00:00
Nihanth Subramanya
9b711db77f Bug 1551206 - Introduce new Protections Panel behind a pref. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D30921

--HG--
rename : browser/components/controlcenter/content/panel.inc.xul => browser/components/controlcenter/content/identityPanel.inc.xul
extra : moz-landing-system : lando
2019-05-14 16:17:07 +00:00
Tom Tung
5a873324c6 Bug 1535298 - Capture and ignore the exception for not having a host from a principal URI; r=janv,johannh
Protocols, likes about:, moz-extension, ... etc, don't have a host. Thus, an
exception will be returned if they are accessed. To avoid from that, this patch
catches this bug a try-catch.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 16:49:03 +00:00
Sean Feng
476bb2dc86 Bug 1531917 - Add Telemetry for bfcache hit and miss r=bdekoz,smaug
Differential Revision: https://phabricator.services.mozilla.com/D30212

--HG--
extra : moz-landing-system : lando
2019-05-14 15:27:55 +00:00
Sean Feng
04337d74c3 Bug 1531917 - Add Telemetry for how pages use bfcache r=jesup,bdekoz,smaug
Differential Revision: https://phabricator.services.mozilla.com/D30211

--HG--
extra : moz-landing-system : lando
2019-05-14 16:21:09 +00:00
Christoph Walcher
d396718f90 Bug 1530138 - Added resend option in WebConsole r=nchevobbe,Honza
Added resend option in WebConsole

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

--HG--
extra : moz-landing-system : lando
2019-05-14 12:47:08 +00:00
Nathan Froyd
85925b5be6 Bug 1547196 - remove rustup wrapper from rustc as well as cargo; r=glandium
Having `rustc` be `rustup`'s wrapper for `rustc` means that we may
silently honor `rustup`'s override mechanisms.  We noticed this first on
OS X, where we use the "real" `cargo` but `rustup`'s `rustc` wrapper,
and problems ensued when `cargo` thought it was using one version of
`rustc`, but actually wound up using something different.

It seems better to avoid silently interposing `rustup`'s toolchain
override mechanisms everywhere, rather than having to special-case OS
X.  So let's factor out a general mechanism for removing the wrappers
`rustup` provides and use that for both `rustc` and `cargo`.  The tests
need adjusting because we weren't triggering the unwrapping cases
before; we don't yet test the case where we really do need to unwrap.
That test can be left for a future patch.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 05:43:19 +00:00
Lee Salzman
7e2009d661 Bug 1508626 - add assertions to diagnose why the font loader is running after shutdown. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D30979

--HG--
extra : moz-landing-system : lando
2019-05-14 16:14:26 +00:00
Cosmin Sabou
9541ce1990 Merge mozilla-central to autoland. 2019-05-14 19:06:24 +03:00
Dão Gottwald
ab75aa85ac Bug 1515589 - Implement newlines="stripsurroundingwhitespace" behavior directly in UrlbarInput. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D31064

--HG--
extra : moz-landing-system : lando
2019-05-14 16:01:18 +00:00
Cosmin Sabou
1b1356216c Merge mozilla-inbound to mozilla-central. a=merge 2019-05-14 18:59:38 +03:00
Liang-Heng Chen
5b2c95ad56 Bug 1551410 - Part 1: increment loop index; r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D31045

--HG--
extra : moz-landing-system : lando
2019-05-14 15:36:55 +00:00
Belén Albeza
3ef458c297 Bug 1540689 - Update documentation links in the new about:debugging. r=jdescottes,daisuke,Ola
Differential Revision: https://phabricator.services.mozilla.com/D30491

--HG--
extra : moz-landing-system : lando
2019-05-14 13:17:27 +00:00
Vlad Baicu
1e92dbe339 Bug 1534451 - Send Mobile Activation Telemetry ping. r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D29668

--HG--
extra : moz-landing-system : lando
2019-05-14 12:28:51 +00:00
Drew Willcoxon
2045ab37b1 Bug 1485288 - Fix intermittent browser/base/content/test/urlbar/browser_urlbarStop.js by waiting for URLBarSetURI to be called by using a progress listener. r=mak
When the load is stopped, tabbrowser calls URLBarSetURI [1] and then calls onStateChange [2] on its progress listeners. That's the URLBarSetURI call that updates the urlbar value in this case. So to properly wait until the urlbar value has been updated, add our own progress listener in the test.

[1] https://searchfox.org/mozilla-central/rev/cc280c4be94ff8cf64a27cc9b3d6831ffa49fa45/browser/base/content/tabbrowser.js#5036
[2] https://searchfox.org/mozilla-central/rev/cc280c4be94ff8cf64a27cc9b3d6831ffa49fa45/browser/base/content/tabbrowser.js#5071

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

--HG--
extra : moz-landing-system : lando
2019-05-14 09:37:30 +00:00
Andrew McCreight
5e90fec424 Bug 1550893 - Fix the implicit builtinclassness for some Windows widget interfaces. r=bobowen
nsITaskbarTabPreview has a notxpcom method, so it has always been
treated as builtinclass. This just makes it explicit.

The same thing is true for nsIPrintSettingsWin, but as far as I can
tell it is never actually used from JS, so I just removed the
scriptable tag.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 08:19:10 +00:00
Andrew McCreight
ebf511b850 Bug 1551335 - Update comment on RemoteOuterWindowProxy. r=peterv
The second patch in bug 1518202 made it so that the reference to the
browsing context is declared to the cycle collector after all.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 09:13:20 +00:00
Nathan Froyd
1396262e0e Bug 1550868 - enforce a minimum version of clang-cl; r=glandium
We've not been checking the clang-cl version in use.  This lack of
checking is bad, for a couple of reasons:

* Released versions of clang-cl differ drastically in their robustness;
* Only the most recent version of clang-cl supports aarch64.

We should check for a minimum version of clang-cl, just like our other
supported compilers.  As a bonus, we can then start depending on
features that we know appear in the particular minimum clang-cl
version.  (The current patch is motivated by `/clang:` command-line
support, but one could pick other things.)

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

--HG--
extra : moz-landing-system : lando
2019-05-14 14:22:55 +00:00
Edgar Chen
2617857bc6 Bug 1551264 - Move user-initiated flag for form submission from HTMLFormElement to HTMLFormSubmission; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30945

--HG--
extra : moz-landing-system : lando
2019-05-14 12:41:19 +00:00
Honza Bambas
4534b7e9ee Bug 1548804 - Remove origin suffix isolation for proxy credentials when setting authentication cache entry, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D30911

--HG--
extra : moz-landing-system : lando
2019-05-14 13:40:30 +00:00
arthur.iakab
13d576fff0 Bug 1551384 Re-enable navigate-window.https.html on Linux sw-e10s r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D31061

--HG--
extra : moz-landing-system : lando
2019-05-14 13:07:51 +00:00
Yura Zenevich
b8d8b8136d Bug 1550542 - make a sentence about no checks found less confusing. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D30596

--HG--
extra : moz-landing-system : lando
2019-05-14 12:27:53 +00:00