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

591824 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes d8d3951cb5 Bug 1445197 - part 1: Create an application panel for DevTools;r=Honza,nchevobbe,sole
Register a new application panel, disabled by default, with no icon, no shortcut
and hidden from the devtools options.

Set devtools.application.enabled to true to enable it.

MozReview-Commit-ID: L5PXZVDCRlF

--HG--
extra : rebase_source : 465dd27241e81ee2f35794ce01cf0d06939e58f6
2018-03-14 21:21:02 +01:00
Dorel Luca 8ee8fc461e Backed out 2 changesets (bug 1317581) for Browser chrome failures on toolkit/components/extensions/test/browser/browser_ext_themes_arrowpanels.js. CLOSED TREE
Backed out changeset 5cc146254899 (bug 1317581)
Backed out changeset 963466173a74 (bug 1317581)
2018-04-18 18:54:38 +03:00
Xidorn Quan 018214f00b Bug 1452542 part 7 - Replace some uses of nsCSSPropList.h and nsCSSPropAliasList.h with ServoCSSPropList.h. r=emilio
MozReview-Commit-ID: 5TVYITjAYy7

--HG--
extra : rebase_source : 66b132aed72fa58ba8be1fa7aacd1c9035845458
2018-04-17 16:57:04 +10:00
Xidorn Quan ddcc60ec27 Bug 1452542 part 6 - Replace uses of PythonCSSProps.h with the data file generated from Servo. r=froydnj
Some content in Makefile.in is removed because after this change, the
scripts no longer invoke the preprocessor and thus don't have unknown
dependencies anymore outside what is provided in their inputs array.

The order of exports.PREFERENCES in properties-db changes because the
data file has shorthands placed after longhands. The only usage of it
is in test_css-properties-db.js which doesn't care about the order.

MozReview-Commit-ID: AMjzTRf2HYN

--HG--
extra : rebase_source : f9db0659a81bea28b335806ac70e23dc0d36e493
2018-04-17 14:40:12 +10:00
Xidorn Quan 4eca80828d Bug 1452542 part 5 - Generate property list from Servo data. r=emilio,froydnj
With this change, we first generate a data file ServoCSSPropList.py from
Servo data, and then use this data to generate ServoCSSPropList.h.

This change itself serves as a checkpoint with a runtime check that all
information generated from Servo side matches what we have in the Gecko
side. Following patches will start replacing uses of nsCSSPropList.h
with either the data file or the header file.

The reason that it generates data file rather than header directly is
that, many users of PythonCSSProps.h invokes C++ preprocessor manually
to extract data from nsCSSPropList.h without passing in search paths,
so it is non-trivial to replace the use of nsCSSPropList.h there with
a generated header. Generating a Python data file would hopefully
simplify those users rather than adding more complexity to them.

I also thought about generating JSON rather than plain Python file, but
JSON doesn't allow trailing comma in array, which makes it less pretty
to generate via mako template.

MozReview-Commit-ID: CwK2oL88r6F

--HG--
extra : rebase_source : 926cca8548d42ecb0dd364ea5c52a46a4973e819
2018-04-16 14:08:20 +10:00
Xidorn Quan 77184169de Bug 1452542 part 4 - Have ENABLED_IN flags in nsCSSPropList.h match those in Servo side. r=emilio
MozReview-Commit-ID: 48t5u1D5rZX

--HG--
extra : rebase_source : 2040c6eb9bef18f39c591ddf364e0b7a9d948996
2018-04-11 13:46:08 +10:00
Xidorn Quan 2b130b95d1 Bug 1452542 part 3 - Use snake_case naming for nsCSSPropertyID of alias as well. r=emilio
MozReview-Commit-ID: 242ms8wBDIU

--HG--
extra : rebase_source : 548378fc6c8380bf5ca0ecb68e9b7bd624f77236
2018-04-11 13:44:30 +10:00
Xidorn Quan ca68696433 Bug 1452542 part 2 - Sort nsCSSPropAliasList.h in alphabetic order so that we can list them in Servo side. r=dholbert,emilio
MozReview-Commit-ID: GmrjJHI8fqw

--HG--
extra : rebase_source : 1a1100eae07fc35118323766fc7aa00eb64f7317
2018-04-11 13:42:13 +10:00
Xidorn Quan 5ae4ee5e04 Bug 1452542 part 1 - Fix the order in nsCSSPropList.h. r=emilio
MozReview-Commit-ID: GnzDsJb7KlB

--HG--
extra : rebase_source : a976749cafa2011f4121d51c6ac39bf93c487da4
2018-04-11 13:38:44 +10:00
Jared Wein ff0a2e0137 Bug 1317581 - Clean up some duplicated colors in the DateTimePicker. r=dao
MozReview-Commit-ID: IOAgaoeJ53J

--HG--
extra : rebase_source : 3cdc5c3eca6a5d1324e90de80d82231df8a3a26d
2018-04-10 14:26:49 -04:00
Jared Wein 7ee1860850 Bug 1317581 - DateTimePicker should support high contrast mode on Windows. r=dao
MozReview-Commit-ID: DEBBjcgHIyH

--HG--
extra : rebase_source : 9b52b15a0af9a56ad724dd578884856d4d5e7e20
2018-03-22 13:01:28 -04:00
Daniel Stenberg 8d35551b70 bug 1454941 - revert CP wait fix from bug 1451150 r=valentin
... but keep the logic that avoids re-initialization.

MozReview-Commit-ID: 2XQCRaM6U4B

--HG--
extra : rebase_source : e7291b3c7b26d39dcfde445212dd4f10b63ec98d
2018-04-18 15:21:14 +02:00
Alessio Placitelli 4121e64310 Bug 1452551 - Initialize the Telemetry core in GeckoView. r=esawin,gfritzsche,jchen
This additionally introduces a new pref (toolkit.telemetry.isGeckoViewMode)
to discriminate, at runtime, between Fennec and GV in JavaScript code.
Moreover, this disables TelemetryController initialization from content
processes, which was left enabled.

MozReview-Commit-ID: 7VoDorxAhvD

--HG--
extra : rebase_source : b16a5c870c073f62175a5f9c2bf8db30032c55bd
2018-04-11 13:11:27 +02:00
Jan-Erik Rediger b9e99a5b72 Bug 1448945 - Document support for adding events in artifact builds. r=chutten
MozReview-Commit-ID: 1e8hF3DyfDj

--HG--
extra : rebase_source : 958f044042aec5122e2fd87a23b5f048feff6d8d
2018-04-10 13:55:48 +02:00
Jan-Erik Rediger 751561f5e4 Bug 1448945 - Add test coverage for loading dynamic inbuilt events on startup. r=chutten
MozReview-Commit-ID: Dpl4GUSZePf

--HG--
extra : rebase_source : 1bb936317a7e4ae2e94b953ffd3f854ae93e89ad
2018-04-10 13:39:10 +02:00
Jan-Erik Rediger 632d73d2a9 Bug 1448945 - Allow underscore in category, method and extra keys of event. r=chutten
According to the documnetation[1] category and method are identifiers,
thus an underscore is allowed. It's less clear for extra keys, but
underscores are already used there.

The documentation is adjusted accordingly.

[1]: https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/collection/events.html#limits

MozReview-Commit-ID: 9pUsDNXCY8m

--HG--
extra : rebase_source : 5f3a3f1a9d8172cfb9695c17bd04e11836a65c93
2018-04-10 13:05:39 +02:00
Jan-Erik Rediger 8aee79fc46 Bug 1448945 - Load dynamic inbuilt event probes on startup. r=chutten
MozReview-Commit-ID: 3eyqkcV6LWM

--HG--
extra : rebase_source : 8d23c35ef6c63bda652f1100de4aa54b04cfdbe4
2018-04-09 15:26:09 +02:00
Jan-Erik Rediger 32b432e9fb Bug 1448945 - Add test coverage for dynamic builtin events. r=chutten
MozReview-Commit-ID: AFZPTBM7QqQ

--HG--
extra : rebase_source : a0052a271d66414fabd652ffb95a1be40ac472cd
2018-04-09 15:07:58 +02:00
Jan-Erik Rediger 11b35b780f Bug 1448945 - Generate JSON definitions for dynamic builtin events. r=chutten,froydnj
This patch enables the build system to generate the JSON definition
file that is loaded, on developer builds, when Firefox starts and
is built from artifact builds.

MozReview-Commit-ID: 1nSQi7exRtL

--HG--
extra : rebase_source : 666dbe99effb8ecc9e90a43241297c79c1a6c510
2018-04-09 15:07:14 +02:00
Jan-Erik Rediger efc236f670 Bug 1448945 - Enable snapshotting dynamic builtin events. r=chutten
This additionally adds the memory consumption of dynamic builtin events
to the memory reporting.

MozReview-Commit-ID: LopWWPnWkBc

--HG--
extra : rebase_source : 36468d02ccb19217b44e6c29e0df291fba4459d0
2018-04-09 15:06:30 +02:00
Jan-Erik Rediger c4ce7a9169 Bug 1448945 - Enable recording events in artifact builds without rebuilding Firefox. r=chutten
This patch enables the Firefox Telemetry core to register and record
to dynamic builtin scalars.

MozReview-Commit-ID: 8FeAgmmsQXw

--HG--
extra : rebase_source : f5eddb24bb8c16b75a49850568efd38141eb6a5a
2018-04-09 15:04:49 +02:00
Gijs Kruitbosch baf8e40f33 Bug 1453421 - stop findbar from looping over every single property, r=mikedeboer
MozReview-Commit-ID: KsrzhUZ167g

--HG--
extra : rebase_source : 564798860ce9df4cb1ab694e186f3f481edc6cd1
2018-04-18 12:02:35 +01:00
Gijs Kruitbosch e669847128 Bug 1447341 - stop querying prefs for fake protocols we use internally, r=nwgh
MozReview-Commit-ID: EXUupEKlsSM

--HG--
extra : rebase_source : 9df3048e6c24a6d9f8b38196903fe5d8450dbe01
2018-04-17 15:48:13 +01:00
Gijs Kruitbosch e932bbd4a3 Bug 1447341 - include blob, moz-extension and page-icon in list of known schemes, r=nwgh
MozReview-Commit-ID: HYiBCJ868nC

--HG--
extra : rebase_source : 57b3f39ebf41f4cad2719fc1f2b412e8dde6e491
2018-04-17 15:41:40 +01:00
Gijs Kruitbosch 5037a2426e Bug 1447341 - make page-icon protocol handler support weak referencing, r=mak
MozReview-Commit-ID: EpPJl89Gi1v

--HG--
extra : rebase_source : 011d65bfe28514449fb279b1c50e69de3e109e61
2018-04-17 15:40:25 +01:00
Gijs Kruitbosch 1dbd3f74c6 Bug 1447341 - don't try to get a protocol handler for empty schemes, r=valentin
MozReview-Commit-ID: 3wJBC9TQsoV

--HG--
extra : rebase_source : d6581efc9c2cb75c51837c310a6f09cc88e14e64
2018-04-17 15:38:36 +01:00
Gijs Kruitbosch 82f83be436 Bug 1447341 - make blob: protocol handler support nsISupportsWeakReference, r=baku
MozReview-Commit-ID: 1UqdssdVs3b

--HG--
extra : rebase_source : 9551b408a579662b13a79c8e4b3c7f683b46f40a
2018-04-17 15:36:25 +01:00
Rob Wood 4af496d7f2 Bug 1454466 - Move raptor in-tree; r=ahal
MozReview-Commit-ID: AkqbROfvmbu

--HG--
extra : rebase_source : bf30030a333852d6d81c4278e91b1ac9fef237fe
2018-04-16 17:15:38 -04:00
Nicolas Chevobbe 9e1fe9b067 Bug 1451021 - Migrate PropertyIteratorActor to protocol.js; r=ochameau.
MozReview-Commit-ID: 1yTtcO92HWU

--HG--
extra : rebase_source : 0822c4d3033ab3cd97f7b4793f77565ea17f9706
2018-04-10 09:44:38 +02:00
David Teller 00d8ff0043 Bug 1439855 - Make BinSource work with multipart tokenizer;r=arai,efaust
Note that BinSource-auto.{h, cpp} and BinToken.h are auto-generated from BinSource.{yaml, webidl}.

This patch contains the following changes:
- updates to the webidl specifications;
- adapt BinSource.* to the new tokenizer API;
- split BinASTParser across BinASTParserBase and BinASTParser<Tok>.

The effect is that we may now use the BinASTParser with both the (updated) tester tokenizer
and the (new) multipart tokenizer.

MozReview-Commit-ID: HCF2m3qDTFH

--HG--
extra : rebase_source : 6a59b102182e50a782ca56f2df57d3053c608668
2018-04-05 14:31:40 +02:00
David Teller 8cebf95a05 Bug 1439855 - Extend JS shell parse command to allow forcing full parsing;r=arai
This is useful mostly for benchmarking.

MozReview-Commit-ID: ZzWA6fxCGN

--HG--
extra : rebase_source : a50be777140f36bcc2741640bc9951bae4419dcd
2018-04-05 14:31:39 +02:00
David Teller 3b3526a01c Bug 1439855 - Extend JS shell binParse with ability to pick a tokenizer;r=arai
MozReview-Commit-ID: 9EQY36O9wQo

--HG--
extra : rebase_source : d7ffed8e4cb1488eddd53b81ba98fb9668d9034a
2018-04-05 14:31:39 +02:00
David Teller fbabebc2ae Bug 1439855 - Bunch of macros shared among BinAST files;r=arai
MozReview-Commit-ID: 6q27OFhLlc6

--HG--
extra : rebase_source : e1b4d2c4649a8036f34a0be448004b83db127815
2018-04-05 14:31:39 +02:00
David Teller 7c2dd88aa6 Bug 1439855 - Fast lookup for BinAST string constants, shared among parsers;r=arai
BinAST parsers need to perform frequent lookup for string values, e.g. once for each `let`, `var`, `const`,
 `+`, `-`, `instanceof` (string enums), as well as a number of startup lookups for string values such as
"LiteralNullExpression", etc. (ast table)

This patch introduces zero-copy lookup tables for both of these. These tables are shared among instances of parsers in a JSRuntime.

MozReview-Commit-ID: 75BasAxLoha

--HG--
extra : rebase_source : 3a06aca851d38b500f026d8726be66e4a5dedc37
2018-04-05 14:31:39 +02:00
David Teller a67fca5027 Bug 1439855 - Splitting the BinTokenReaderTester in two;r=arai
As a preliminary step for introducing the BinTokenReaderMultipart, we start by splitting the BinTokenReaderTester in two.

Also, we change a bit the API of the BinTokenReaderTester to uniformize with the BinTokenReaderMultipart.

MozReview-Commit-ID: 4SlHaqEAZMk

--HG--
extra : rebase_source : 1b2b0ada2cb8ea9c26715cd56b2340517403ede2
2018-04-05 14:31:39 +02:00
David Teller d86bf9df5f Bug 1439855 - Extending BinAST parser generator with support for multipart tokenizer;r=jorendorff
Changes:

- instead of parsing string enums by string matching, we go through a new `enum class` `BinVariant`, whose handling is part of the tokenizer;
- we now generate this `enum class`.

MozReview-Commit-ID: FnzG772RZam

--HG--
extra : rebase_source : d61e4855f904259e66ff2dbd765ebbb1ee597d7d
2018-04-05 14:31:39 +02:00
David Teller 0282c0ad9e Bug 1439855 - Introduce BinAST multipart tokenizer;r=arai
This introduces a new tokenizer for the BinAST parser: the multipart tokenizer.

The format used by the multipart tokenizer is described here: https://binast.github.io/binjs-ref/binjs_io/multipart/index.html

While the details of the format may still change, this is the tokenizer we intend to ship.

We only implement the `identity; ` compression scheme. For the moment, there are no plans to implement other compression schemes.

MozReview-Commit-ID: 8WUa3QX5GWt

--HG--
extra : rebase_source : 984f98c488048144ed38f9644682f947b776a686
2018-04-05 14:31:40 +02:00
David Teller 4411aac81a Bug 1439855 - Tests for BinAST multipart tokenizer (data);r=arai
MozReview-Commit-ID: KlzxtGmCYVD

--HG--
extra : rebase_source : 4376f3a2f32ab937df71d0b3cb1866476cff25aa
2018-04-05 12:16:30 +02:00
David Teller 6f4887aa4f Bug 1439855 - Tests for multipart tokenizer;r=arai
MozReview-Commit-ID: 7V2BWAcpA1D

--HG--
extra : rebase_source : c8d8020e950ffaa826583c24ebc342085a9af280
2018-04-12 15:13:22 +02:00
Kartikaya Gupta 0ded9995cb Bug 1451469 - Complete hooking up of the sampler thread. r=botond,nical
This makes the APZ sampler thread be the render backend thread whenever
webrender is being used (not just when async scene building is enabled).

MozReview-Commit-ID: L9lmopd3pe7

--HG--
extra : rebase_source : a23793bf704a0bf3bc7ba6568ecfe5faa5720415
2018-04-16 17:39:26 -04:00
Kartikaya Gupta 5f5df795ef Bug 1451469 - Set the sample time on APZSampler. r=botond,nical
When sampling APZ transforms from rust code, we will need a timestamp at
which to sample the transforms. It's not obvious what the right
timestamp is to use here, and this will almost certainly be revisited
when we are hooking up OMTA in bug 1453360. For now we just stash the
most recent composite timestamp on the APZSampler and use that when
sampling. This seems to work fine.

MozReview-Commit-ID: KinsXO9tEJH

--HG--
extra : rebase_source : ffce8a9ac6720eea8583b03a613545ac5e9b48bf
2018-04-16 17:39:26 -04:00
Kartikaya Gupta adaebffdd8 Bug 1451469 - Add a TransactionWrapper class. r=nical
The TransactionBuilder class comes with a bunch of baggage (it
automatically allocates/deallocates a transaction under the hood) which
we will want to avoid for the RB callbacks into APZ. This patch adds a
lightweight TransactionWrapper class that APZ can use to provide the
async transform info and that will be simpler to use in the callback
from rust code.

MozReview-Commit-ID: 1ywhx4TIzGd

--HG--
extra : rebase_source : 0ac4356554db24806d03b44f5384f9b7341d4255
2018-04-16 17:39:26 -04:00
Kartikaya Gupta dceb9fc63c Bug 1451469 - Run deferred tasks on the controller thread. r=botond
Deferred tasks currently run as part of the sampling process, in
AdvanceAnimations. However, deferred tasks also sometimes need to acquire
the APZ tree lock for stuff. Acquiring the tree lock is not going to be
allowed on the render backend thread (which is the sampler thread when
WR is enabled), so we need to bump these tasks to another thread. The
controller thread is safe for this purpose.

MozReview-Commit-ID: AP3bnGF5UjL

--HG--
extra : rebase_source : 6fd81dfa488d1cada9941299e60a3d660a38895b
2018-04-16 17:39:26 -04:00
Kartikaya Gupta 7f792713ce Bug 1451469 - Allow WR sampling without the tree lock. r=botond
For webrender, we need to be able to sample the async transforms from nodes
and thumbs without holding the tree lock, since the sampling happens on
the render backend thread, and holding the tree lock would be a
threading violation. We can use the mApzcMap to sample the node
transforms, but for the thumbs we need to introduce another data
structure. This data structure packages up all the information from
the HitTestingTreeNodes that we need for the computation and stores it
protected by the map lock. This allows us to compute the transforms
safely while just holding the map lock.

MozReview-Commit-ID: BDMEbE78NnH

--HG--
extra : rebase_source : 754ceca695b5b3e1c87b1b2bde753d1775107e5f
2018-04-16 17:39:14 -04:00
Kartikaya Gupta 7a77234e86 Bug 1451469 - Add the plumbing to hook up the sampler callbacks. r=nical
MozReview-Commit-ID: GhCKVFXKfjX

--HG--
extra : rebase_source : 77d4cbf542f939c77322a505beb8af6c3ad16602
2018-04-16 17:39:14 -04:00
Kartikaya Gupta 6186818885 Bug 1451469 - Implement the guts of the WR sampler thread registration. r=botond
This lets the APZSampler know which thread is the actual sampler thread.
This is only really used for the thread assertions, but might be useful
for debugging and such as well.

Note that since this behaviour is not dependent on any prefs (unlike the
updater thread, which is only the scene builder thread when the async
scene building pref is enabled), we don't hook it up to the rust code
just yet; that will happen in the last patch.

MozReview-Commit-ID: DrrJOyFA65D

--HG--
extra : rebase_source : 61e8e75ae16f95fe5ce95fa42a3dff501979ab9e
2018-04-16 17:39:14 -04:00
Kartikaya Gupta ee76c6b413 Bug 1451469 - Maintain a map from WrWindowId to APZSampler. r=botond
MozReview-Commit-ID: Bfkfs6FTOQ6

--HG--
extra : rebase_source : 0ca8d3b9452b9ece36eadf2bd2b1bb1c0783756d
2018-04-16 17:39:13 -04:00
Dorel Luca 0eedeeda32 Merge mozilla-central to autoland. CLOSED TREE 2018-04-18 14:07:45 +03:00
Dorel Luca c4fec6222b Backed out changeset 897bbf35e781 (bug 1453580) for XPCShell failure on services/sync/tests/unit/test_syncedtabs.js. CLOSED TREE 2018-04-18 14:06:34 +03:00
Coroiu Cristina 374b919ce6 Merge inbound to mozilla-central a=merge 2018-04-18 13:44:22 +03:00