Граф коммитов

547761 Коммитов

Автор SHA1 Сообщение Дата
Manish Goregaokar 989d68bb1d servo: Merge #17803 - servo: Move FontComputationData to the end of ServoComputedValues to make size check easier, make it NonZero (from Manishearth:servo-fontcomputation); r=emilio
We fail bindgen layout tests on 32 bit because FontComputationData does not accurately reflect the size/alignment of the rust-side replacement.

We move it to the end so that alignment is more straightforward, and
use a NonZero enum so that the representation can be more accurately
handled on the C++ side.

r=emilio https://bugzilla.mozilla.org/show_bug.cgi?id=1382190

Source-Repo: https://github.com/servo/servo
Source-Revision: a64f085ee0cc3d526dd7531ce132c32c2e10b3f5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2581c78c4b627ff65def07226ea1976819d63a83
2017-07-20 10:33:43 -07:00
Wes Kocher 1bf802d260 Backed out 3 changesets (bug 1358670) for flake8 failures a=backout
Backed out changeset ab3693949c72 (bug 1358670)
Backed out changeset e04b9716ebad (bug 1358670)
Backed out changeset 0c5cf70baa50 (bug 1358670)

MozReview-Commit-ID: 2kVtLMvs9En
2017-07-20 11:20:00 -07:00
Nicholas Nethercote 7d699f9fa4 Bug 1382099 - Remove MOZ_WIDGET_GONK from memory/. r=glandium.
--HG--
extra : rebase_source : 641de85945cb2f0ccdb9d6f5207bdd22b597b318
2017-07-19 18:39:00 +10:00
Nicholas Nethercote 76360b4793 Bug 1382099 - Remove MOZ_WIDGET_GONK from mozglue/. r=glandium.
--HG--
extra : rebase_source : be872a2272b731523fdad5ee52ffcd40d87729c5
2017-07-19 18:38:54 +10:00
Nicholas Nethercote 20df43a549 Bug 1382099 - Remove MOZ_WIDGET_GONK from toolkit/. r=glandium.
--HG--
extra : rebase_source : 709744b24104b463c8dc4cbe215d2250e7c1a9f5
2017-07-19 18:38:48 +10:00
Jeff Gilbert 537fa49680 Bug 1382358 - Allow unusual/spurious glsl versions in non-DEBUG builds. - r=kvark
MozReview-Commit-ID: GbJb9ankCGl
2017-07-19 18:04:03 -07:00
Shane Caraveo 64c2485f68 Bug 1380426 - Make nsStreamListenerWrapper use NS_DECL_THREADSAFE_ISUPPORTS. r=dragana
--HG--
extra : rebase_source : fdcfe1dcce0dd4c4f5c554685afcdc995b680cae
2017-07-19 19:25:43 -04:00
Shane Caraveo 6dc579b239 Bug 1380426 - Make nsWebRequestListener use NS_DECL_THREADSAFE_ISUPPORTS. r=kmag
--HG--
extra : rebase_source : ac8bc977087b7701084b06171c8601151841fb31
2017-07-19 19:25:43 -04:00
JW Wang 67a23f8462 Bug 1377044 - default "media.seekToNextFrame.enabled" to true since bug 1276272 is already fixed. r=kikuo
MozReview-Commit-ID: 4DZ4Mr2lhrn

--HG--
extra : rebase_source : 6e158f7654a909cf5dbac7b3df6719d489af6674
2017-07-19 10:59:59 +08:00
Nick Alexander e3e9c413f0 Bug 1382774 - Configure android-gradle-dependencies to use jcenter instead of central. r=sebastian
The nexus.xml included in this patch is the result of starting Nexus
and manually adding the jcenter proxy repository using the Nexus web
administration interface (all in a Docker container).  I know of no
way to do this configuration incrementally without the web interface.
The diff between new and the default generated configuration is a
single new <repository>..</repository> element.

MozReview-Commit-ID: 2Bg5qX41pHB

--HG--
extra : rebase_source : c945acabcedd98439a0ca0e26251bab1a41de197
extra : source : 9b794a7fc266da1ae81afd795f91e72d04bbc992
2017-07-18 17:59:57 -07:00
Nick Alexander c3b258c6db Bug 1382774 - Pre: Don't fail |mach android gradle-dependencies|. r=sebastian
MozReview-Commit-ID: CI2Kqb1kceP

--HG--
extra : rebase_source : a6e1f2e957ea56f7dde754f9eaa102d4a8edbbfc
extra : source : 9c1dc421214744d219ab18173086a02ed9bbdb50
2017-07-19 12:54:10 -07:00
Sylvestre Ledru 8444ac4824 Bug 1383020 - Add braces to avoid some -Wdangling-else warnings r=jesup
ASSERT_NE can be on several lines

MozReview-Commit-ID: 1SfOdXmeXAf

--HG--
extra : rebase_source : cb0126ee0646192e110edb639858dce665acd093
2017-07-21 13:13:42 +02:00
cku 27356c8da4 Bug 1382257 - Correct returning value of PaintBorderWithStyleBorder. r=mstange
We overwrites DrawResult returning from
nsCSSBorderImageRenderer::CreateBorderImageRenderer by the returning value of
DrawBorderImage, which is not right.

MozReview-Commit-ID: 1EeqU5hLyln

--HG--
extra : rebase_source : a78aa841795afa830b66da650a619f46230b10dd
2017-07-21 09:50:36 +08:00
gasolin 3752705ad3 Bug 1371540 - Should add the Library tour in the onBoarding overlay;r=flod,mossop,rexboy
MozReview-Commit-ID: xPtSZfrzS4

--HG--
extra : rebase_source : 4aadfa9744e28b2e96d48d6c5f65429c2e99e5fa
2017-07-18 14:35:51 +08:00
Gregory Szorc ecb4b6b396 Bug 1381613 - Populate a repository-less index route for "trunk" repos; r=dustin
There are a few places where we walk commit ancestry looking for things
attached to a specific revision. Because the repository name is attached
to the index path and because a revision can exist in multiple
repositories, we often have to perform N index lookups to find a result
for a specific revision. This is inefficient.

To facilitate faster index lookups by revision, we introduce a new route
that doesn't contain the repository name. In theory, we should be able
to do this globally - for all repos. However, the configuration of
tasks can vary significantly by repo. So e.g. a linux64 build on
"central" is sufficiently different from a linux64 build on "beta" or
"release." For that reason, this commit takes the conservative
approach and only defines a shared route for repositories with a similar
configuration: the "trunk" repositories.

MozReview-Commit-ID: 8rIgUbzW4eL

--HG--
extra : rebase_source : 301ed36424e0c69c25e63121809afb96ca327edc
extra : source : 543c503f745c89360398fd3207ddaea5c262a807
2017-07-19 18:24:12 -07:00
Chenxia Liu b743cc4898 Bug 1377295 - Use old Top Sites pinned sites in AS panel. r=mcomella
MozReview-Commit-ID: 6i3Cam8un45

--HG--
extra : rebase_source : 12dcbc18f7d41110b54cc79e2e1357fa906e0309
2017-07-18 18:43:35 -07:00
jwu bd2aad8d07 Bug 1366671 - Part 2: Support empty screen in private tabs panel. r=walkingice
MozReview-Commit-ID: 6I7y68DO9g2

--HG--
extra : rebase_source : 1589ee946186da1383f7621a3930bdc1d0b24982
extra : source : 2f97e0c082939dcf3b9128a418e8fa4c83dbd40f
2017-07-19 18:25:00 +08:00
jwu 2ee7d7fee6 Bug 1366671 - Part 1: Duplicate empty screen resoueces for Photon. r=walkingice
MozReview-Commit-ID: DB4zjDLyXBX

--HG--
rename : mobile/android/app/src/main/res/drawable-hdpi/tip_addsearch.png => mobile/android/app/src/australis/res/drawable-hdpi/tip_addsearch.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/tip_addsearch.png => mobile/android/app/src/australis/res/drawable-xhdpi/tip_addsearch.png
rename : mobile/android/app/src/main/res/layout/preference_search_tip.xml => mobile/android/app/src/australis/res/layout/preference_search_tip.xml
rename : mobile/android/app/src/main/res/layout/private_tabs_panel.xml => mobile/android/app/src/australis/res/layout/private_tabs_panel.xml
extra : rebase_source : 5bf062f0ae01691f60257c9dc40ba9f2cc5d3c1a
extra : source : b46039adc5d181fd8f388aa2b895a4bfac082f6b
2017-07-18 18:22:05 +08:00
Edouard Oger 383d9e6921 Bug 1382299 - Wait until Sync is finished before updating Send to Device menu. r=markh
MozReview-Commit-ID: BkBLanxtqJt

--HG--
extra : rebase_source : 1ff822c4767ef71cd5087dc0d279bb00260feca1
2017-07-19 13:48:37 -04:00
Gregory Szorc 2e6b49383d Bug 1377216 - Use configure-derived VCS info to find repository; r=glandium
For reasons I can't explain, Windows builds are failing intermittently
because they are unable to locate the `hg` binary when running
some SpiderMonkey test processes. These processes use
mozversioncontrol.get_repository_from_env() to locate the
current repository.

We now store VCS info in configure. This makes it available to anything
running in a build system context.

This commit teaches mozversioncontrol.get_repository_from_env()
to import the "buildconfig" module to locate VCS info. If the module
can be imported, it is the sole source of VCS info. Otherwise, we
fall back to the existing detection mechanisms.

This should get rid of the intermittent failure. If it doesn't,
it is still a step in the right direction because it will allow
build system processes to consistently use a well-defined VCS
binary.

MozReview-Commit-ID: DMxXheJLRqH

--HG--
extra : rebase_source : a9c599934c8c08da1fbb92a9105f5c7cba0867b3
2017-07-18 15:46:47 -07:00
Gregory Szorc 1e4d4f7e0f Bug 1377216 - Use substs for resolving path to Mercurial and Git; r=glandium
We now store HG or GIT in substs. We don't need to search for
binary paths.

MozReview-Commit-ID: 8sSgPNLok9M

--HG--
extra : rebase_source : bc51087bcb9f2a723e27f240dd06a88540f6d8a8
2017-07-14 17:23:34 -07:00
Gregory Szorc d32f8a188a Bug 1377216 - Use substs for determining checkout type; r=glandium
We now have a variable in config.status for recording the checkout
type. These helper functions for determining if we're Mercurial or Git
can now be one-liners.

As a bonus, we no longer do I/O as part of this function.

MozReview-Commit-ID: HT9sbOhDEkf

--HG--
extra : rebase_source : 8b53b5f50d14c0bdd4ef3dc7b190314af80a76f0
2017-07-14 17:22:14 -07:00
Gregory Szorc c310ba24a6 Bug 1377216 - Discover version control info in configure; r=glandium
For reasons unknown to me, Windows CI is periodically failing to find
the Mercurial binary.

In addition, we've also reimplemented various VCS logic throughout
the build system. There is room to cut down on code complexity by
e.g. recording VCS info in configure instead of determining it
at run-time.

Also, for forensic purposes it is sometimes desirable to know which
VCS tool is in use by a build and which version of that tool is being
used.

This commit adds VCS type detection, binary searching, and version
resolution to configure.

substs now contains VCS_CHECKOUT_TYPE, HG, and GIT, which can be
consulted by downstream consumers.

If the Mercurial or Git versions could not be resolved, all variables
are not set. Otherwise, VCS_CHECKOUT_TYPE and one of HG or GIT is set.

If MOZ_AUTOMATION is set, we require that the VCS info be resolved.
This helps prevents weirdness in automation due to unexpected
environment configuration.

MozReview-Commit-ID: AMLy0Hfx5rD

--HG--
extra : rebase_source : edef9165d32dc47308a14b0fbabce3c1d3d28176
2017-07-18 18:07:29 -07:00
Gregory Szorc c29efbaf05 Bug 1377216 - Accept environment variables to check_cmd_output; r=glandium
And include code to work around a bug on older Python versions.

MozReview-Commit-ID: 4pBnMQQJOGB

--HG--
extra : rebase_source : 6f7c5784230bd37b3496b9bb1781e8d342f741b4
2017-07-18 18:06:03 -07:00
Gregory Szorc 22586623b5 Bug 1377216 - Unset MOZ_AUTOMATION when building SpiderMonkey from package; r=glandium
We're about to make MOZ_AUTOMATION more strict about things like having
a source checkout.

The whole point of build-sm-package.sh is to verify that SpiderMonkey
can be built outside of Mozilla's source repo and automation from a
standalone package. Since the presence of MOZ_AUTOMATION can influence
so much behavior in the build system, unset it so that the job
tests a !Mozilla environment more accurately.

MozReview-Commit-ID: EMfyLKfY0uU

--HG--
extra : rebase_source : 3632a9abf9fac3f916ed9043f30d4b6aa4abb390
2017-07-18 17:39:27 -07:00
J. Ryan Stinnett caec720392 Bug 1382090 - Test both prefs and build for Stylo in about:support. r=bholley
Avoid the confusing state of "Stylo: true (disabled by build)" by also checking
the build constant _and_ the pref / env var together.

MozReview-Commit-ID: jTK66cWcyv

--HG--
extra : rebase_source : 54e158ed4f3dbde27e410aa0a59fcac44c383db3
2017-07-19 16:32:40 -05:00
Mike Conley cdc93c59ba Bug 1363361 - Disable browser_windowopen_reflows.js on Linux and Win 8 x64 for frequent failures. r=florian
Bug 1381521 and bug 1380465 were opened to investigate and re-enable these tests.

MozReview-Commit-ID: KbiDfqfF0ht

--HG--
extra : rebase_source : c5479538c35a9698c214d463fb59d7ded4128e13
2017-07-14 15:33:57 -04:00
Mike Conley b1e4494633 Bug 1363361 - Adjust browser_appmenu_reflows.js now that we're using nsIDOMWindowUtils to dirty the frame tree. r=florian
MozReview-Commit-ID: JrpZyMXaLxY

--HG--
extra : rebase_source : d7209c99935839f41195256c3906de51c136bebe
2017-07-11 10:25:05 -07:00
Isaac Schemm 94d1d5b78a Bug 1377765 - Apply calendar height workaround from bug 1245692 to Android 5.0.x. r=maliu
--HG--
extra : rebase_source : ecce67f881aa1c97fbe96025bb0a40c735c74581
2017-07-08 08:54:00 -04:00
Ehsan Akhgari fb9c30f56a Bug 1382343 - Improve the hash function used in hashIdDerivedFromPtr() to rely on HashGeneric(); r=fitzgen 2017-07-19 20:39:17 -04:00
Ehsan Akhgari a5d0162238 Bug 1382269 - Backout changeset 648169abf928 (bug 1356181) to remove the expired FORM_ISINDEX_USED telemetry probe 2017-07-19 20:39:17 -04:00
Wes Kocher b5bcc4905e Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: CBL7SUEUGKV
2017-07-19 17:29:56 -07:00
Wes Kocher 56c014ca6b Merge autoland to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9RON7kHON0g
2017-07-19 16:32:03 -07:00
Wes Kocher f361e1638d Backed out 13 changesets (bug 1366294) for leaking base::Histogram::FactoryGet a=backout CLOSED TREE
Backed out changeset f2d79c13799a (bug 1366294)
Backed out changeset b722d638f6ed (bug 1366294)
Backed out changeset aee317b1445d (bug 1366294)
Backed out changeset 14f9f9521d4f (bug 1366294)
Backed out changeset beb5f00c4b19 (bug 1366294)
Backed out changeset 72635bc1ba25 (bug 1366294)
Backed out changeset c387459a798b (bug 1366294)
Backed out changeset 476daf9a5846 (bug 1366294)
Backed out changeset e7ce6a06c131 (bug 1366294)
Backed out changeset 1cc736607aab (bug 1366294)
Backed out changeset 175c3ccb0015 (bug 1366294)
Backed out changeset 96b594816a21 (bug 1366294)
Backed out changeset 57400dd449ad (bug 1366294)

MozReview-Commit-ID: J6PyVMGwJ74
2017-07-19 12:49:46 -07:00
Wes Kocher be756f4791 Backed out changeset c21ec4c07f82 (bug 1374748) for breaking mac talos a=backout CLOSED TREE
MozReview-Commit-ID: KdVT2hZEj9V
2017-07-19 12:46:23 -07:00
Chris H-C fe6f06412f bug 1366294 - Part 13 - Fix telemetry-using tests. r=Dexter
Some tests were using "secret" APIs to get at telemetry knowledge from various
processes in various ways. Adjust them so that they work with the new ways of
doing things.

MozReview-Commit-ID: 2iBL00HVGyg
2017-07-19 14:28:05 -04:00
Chris H-C cc6cce9d00 bug 1366294 - Part 12 - Clean up after onesself. r=gfritzsche
Without the StatisticsRecorder cleaning up after us we need to now manually
delete the Histograms we create.

MozReview-Commit-ID: 8jrPPBQmU0Z
2017-07-19 14:28:00 -04:00
Chris H-C 0299782caf bug 1366294 - Part 11 - Fix OSX Build. r=gfritzsche
MozReview-Commit-ID: DSljXr8ZRhy
2017-07-19 14:27:55 -04:00
Chris H-C 0b1fa68b4d bug 1366294 - Part 10 - Nail down count histogram semantics. r=gfritzsche
Previously we assumed count histograms were always present in payloads.
This was an erroneous assumption as count histograms were only 0 if they were
session histograms, or if they were from subsession histograms from subsessions
_after_ a subsession when they held a non-0 value.

So let's just treat count histograms as normal histograms from now on, without
any of this "sometimes 0" nonsense. This simplifies the code, tests, and our
understanding... and _should_ have few/zero downstream effects since the
existing behaviour was so poorly-understood (though exactly tested).

MozReview-Commit-ID: BH108ksygGw
2017-07-19 14:27:51 -04:00
Chris H-C 43659711de bug 1366294 - Part 9 - Fix Windows Build. r=gfritzsche
MozReview-Commit-ID: 8P2W8fD2xNi
2017-07-19 14:27:44 -04:00
Chris H-C f861b5fd74 bug 1366294 - Part 8 - Include a message on telemetry testfails. r=gfritzsche
I just added some short identifiable messages to help identify which part of
the test failed.

MozReview-Commit-ID: 3AX2iucGiRx
2017-07-19 14:27:39 -04:00
Chris H-C f8c98f8101 bug 1366294 - Part 7 - Use keyed histogram snaphots to build payloads. r=gfritzsche
TelemetrySession's getKeyedHistograms asks for each keyed histogram
individually. This is inefficient and doesn't work well with the storage
refactor.

So, plumb through a subsession keyed histogram snapshot API and convert
TelemetrySession over to using it.

MozReview-Commit-ID: Af9dTqw99UA
2017-07-19 14:27:27 -04:00
Chris H-C 2deec510ba bug 1366294 - Part 6 - Update test_TelemetryHistograms for new snapshots format r=gfritzsche
MozReview-Commit-ID: FN6y1zTqFt4
2017-07-19 14:27:22 -04:00
Chris H-C bb4128e1fa bug 1366294 - Part 5 - Send appropriately-structured Telemetry data to JS r=gfritzsche
Previously we were doing bad string manipulation nonsense. Now when asked for
snapshots C++ can return a properly-formated Object tree.

MozReview-Commit-ID: HAvIbgzUvMU
2017-07-19 14:27:16 -04:00
Chris H-C 52f84e096b bug 1366294 - Part 4 - Small cleanups to previous patches. r=gfritzsche
MozReview-Commit-ID: 7PioVNfUUNZ
2017-07-19 14:27:09 -04:00
Georg Fritzsche c7cb5fcaa6 Bug 1366294 - Part 3 - Refactor TelemetryHistogram storage. r=chutten
Previously we used the base::StatisticsRecorder object for storage by name.
This is keyed by histogram name, which doesn't match our storage reality anymore.
Instead we use a name to refer to a set of histogram instances that record data from different processes, as well as separating session and subsession data.

In this re-write, we instead introduce the following lookup paths (managed in TelemetryHistogram.cpp):
- Main storage:
  - (histogramId, processId, sessionOrSubsession) -> Histogram*
  - (histogramId, processId) -> KeyedHistogram* (this handles subsessions internally)
- Lookup:
  - (histogramName) -> histogramId
  - (HistogramID) -> bool (is recording enabled for this histogram?)

This is wrapped with a few lookup functions.

This also allows us to keep HistogramIDs in the JS histogram instances now, instead of pointers to Histogram instances.
That means Histogram instance life-time management is now properly contained inside TelemetryHistogram.cpp.

MozReview-Commit-ID: 5yijGv7mc89
2017-07-19 14:27:06 -04:00
Georg Fritzsche 3d975a580b Bug 1366294 - Part 2 - Cleanup Chromium Histogram code. r=chutten
- A histogram name identifies a set of histogram instances, for which storage and lookup will be handled in TelemetryHistogram.cpp.
  So we remove the names from histogram code.
- Various unused macros in the header are removed.
- Remaining traces of StatisticsRecorder are removed from the Histogram class code.
- Some unused methods are dropped that were about printing histograms to ASCII etc.

MozReview-Commit-ID: BF2rLSpKOJ8
2017-07-19 14:27:02 -04:00
Georg Fritzsche 2932617587 Bug 1366294 - Part 1 - Remove base::StatisticsRecorder. r=chutten
The Chromium IPC histogram code used the StatisticsRecorder object for storage.
This is keyed by histogram name, which doesn't match our storage reality anymore.
Instead we use a name to refer to a set of histogram instances that record data from different processes, as well as separating session and subsession data.
Consequently we need to rewrite this storage, which means StatisticsRecorder is not used anymore.

MozReview-Commit-ID: 1LC7YubpKaD
2017-07-19 14:26:56 -04:00
Aaron Klotz 24cb1e1776 Bug 1379643: When running under sandbox level >= 3, parent should retain IStream of marshaled interface to be destroyed later; r=jimm
MozReview-Commit-ID: Egb6Yahdbxm

--HG--
extra : rebase_source : a59cfdfdbd1203b89822e68765bd5a0f35b67ada
2017-07-19 12:07:45 -06:00
Josh Matthews 1faafe6c32 servo: Merge #17787 - Store COW strings in CSS parser errors when possible (from jdm:invalidvalue); r=SimonSapin
This should be a straightforward performance improvement in pages with lots of CSS property values that the parser does not understand.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because there's no functional difference.

Source-Repo: https://github.com/servo/servo
Source-Revision: b70cbeb84caf5ec4a90a900fc5d4082989044acd

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 18e9fcafa9b8e8137b3991331effc2a629ff3e88
2017-07-19 10:08:14 -07:00