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

633261 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini 1e6e235109 Bug 1522083 - Enable noopener by default for area and anchor elements with target=_blank and no rel attribute set, r=ehsan 2019-01-29 08:25:42 +01:00
Kris Maglione e161bf3b8e Bug Bug 1478124: Follow-up: Really fix MSVC build. r=bloody-msvc 2019-01-28 22:32:55 -08:00
Kris Maglione 47205b1e9a Bug Bug 1478124: Follow-up: Fix MSVC build. r=bloody-msvc CLOSED TREE
--HG--
extra : amend_source : 8a74e79aed4ed074c4c21f8b33584fef1902f5f0
2019-01-28 22:28:07 -08:00
Kris Maglione b6f3861e4c Bug 1478124: Part 8f - Update NSS module to use a static component manifest. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D15045

--HG--
extra : rebase_source : 47c36eb7349ab88b138ae3b12f62f45c5da7cb63
extra : absorb_source : 418e5b8b3e43e21c5e0523207f4174cdfbe857ed
extra : histedit_source : 02aa49d053b8a3fdd5a47e46c0d59500d4558570
2018-12-18 18:55:40 -08:00
Kris Maglione cf4ef5fd24 Bug 1478124: Part 8e - Update XPCOM module to use a static component manifest. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15043

--HG--
extra : rebase_source : 91ea45ed8699df8492a62268ffa672c360222b68
extra : absorb_source : f480bf52dfe4bf9c256d00db07b3f34b3ba932f1
extra : histedit_source : 65168d0307dbd1928155e8cce8a0d45ef077f0de
2018-12-18 20:28:14 -08:00
Kris Maglione 7e2aa1f145 Bug 1478124: Part 8d - Update netwerk module to use a static component manifest. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D15042

--HG--
rename : netwerk/protocol/res/SubstitutingProtocolHandler.h => netwerk/protocol/res/SubstitutingURL.h
extra : rebase_source : 48e3108ef67fa02e5aae2acad84dc4fd78179bf3
extra : absorb_source : 95d208ffaa1d2037b04f65b59378dd3315adb9b5
extra : histedit_source : 97e70bc165f37ef5138ba10d29fd8754899bb1c2
2018-12-16 18:36:32 -08:00
Kris Maglione 8bf963d6c9 Bug 1478124: Part 8c - Update Layout module to use a static component manifest. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D15041

--HG--
extra : rebase_source : c47e59edd348b0ff940b4f7adb930c149b4dd396
extra : absorb_source : 85dae58fbfef8db874fb1de6fcb5ba52c9998a30
extra : histedit_source : 7de01c654e4cbbc31026b12fd9b34578e9c31bc9
2019-01-23 15:45:56 -08:00
Kris Maglione 586d1722ec Bug 1478124: Part 8b - Update DocShell module to use a static component manifest. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D15040

--HG--
extra : rebase_source : 4de6207229742168f534f618fe4881f19e3135c9
extra : absorb_source : 63106bea2b2a9c9a90e2d8cd08429b5de0f2cd09
extra : histedit_source : 02a263131b092b1d1ac4901f1a37a1b842b3103f
2018-12-16 17:27:58 -08:00
Kris Maglione d20f7f8e72 Bug 1478124: Part 8a - Update toolkit module to use a static component manifest. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15039

--HG--
extra : rebase_source : 55c387662960d82986a2a0205d3b8e451304db4b
extra : absorb_source : bd201f3bcf08f70480f19a22bfb7a8bd9cb015a1
extra : histedit_source : ec13a9b248801ab36baa275e566765734e6f3717
2018-12-16 16:03:00 -08:00
Kris Maglione 38ac4b836c Bug 1478124: Part 7 - Add docs for static component manifests. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15038

--HG--
extra : rebase_source : 2a7af7cfe895f8735f776347d6b9f62f0b61814f
extra : absorb_source : c876cfdad94e262d7252e79a8ec2c170601a5a32
extra : histedit_source : 5fe3c56ccfbcb1e42f342d99f78c70396601f907
2018-12-18 14:15:21 -08:00
Kris Maglione 73670788c7 Bug 1478124: Part 6 - Add helpers for creating/inspecting static modules. r=froydnj
The static XPCOM manifest format makes it easy to define a component in a
single place, without separate contract ID and CID macro definitions in
headers, and variable constants in module files. Without any other changes,
however, those macros are still required in order to create instances of or
retrieve services for the component.

This patch solves that problem by allowing component definitions to include an
explicit component name, and adding helpers for each named component to
Components.h:

  mozilla::components::<Name>::CID() to retrieve its class ID.

  mozilla::components::<Name>::Create() to create a new instance.

  mozilla::components::<Name>::Service() to retrieve its service instance.

These getters have the benefit of doing full compile-time sanity checking,
with no possibilty of using a mistyped contract ID string, or a macro constant
which has gotten out of sync with the component entry.

Moreover, when possible, these getters are optimized to operate on module
entries directly, without going through expensive hash lookups or virtual
calls.

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

--HG--
extra : rebase_source : db7fe00fe80677a6a42d8136fd4505a02e330495
extra : absorb_source : ec11e22825befcd6fa4e96ffa81cd1c1b23e3bef
extra : histedit_source : 650e8e98235df5d757f3fa725bad390e9c094c34
2018-12-15 14:17:27 -08:00
Kris Maglione a1fd8ba309 Bug 1478124: Part 5 - Add AutoIDString helper, and use where appropriate. r=froydnj
We have tons of code in the component manager which stringifies nsIDs so that
it can print the result. The standard stringification process is pretty
bloated, and makes the code difficult to update. And, frankly, I mostly just
got tired of copying it around.

This patch adds a helper which stringifies a nsID to a nsAutoCString, which
can be used as a temporary value in a single statement, rather than requiring
a separate local variable and function call for each operation.

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

--HG--
extra : rebase_source : 4a1971289bbf6abb42da30d024b30a81f7a0ca06
extra : absorb_source : 11318729edd01e7fc6bdbcc66346fdbf23e385ba
extra : histedit_source : c9a16f6e23c391813cfc3ce3fc82c835db0c46d6
2018-12-18 20:57:10 -08:00
Kris Maglione 43481fed07 Bug 1478124: Part 4b - Support loading components from static lookup tables. r=froydnj
This patch essentially creates a separate, static component database for
statically-defined CID and contract ID entries, and gives it precedence over
the runtime DB. It combines the two separate databases by updating existing
code to use lookup functions which understand both databases, and then access
all entries through wrappers which defer to the appropriate underlying type.

Static component entries require no runtime relocations, and require no
writable data allocation aside from one pointer-sized BSS entry per CID, and
one bit of BSS per contract ID.

To achieve this, all strings in the static lookup tables are stored as indexes
into a static string table, all constructor functions live in a switch
statement which compiles to a relative jump table, and all writable data for
static entries is accessed by indexed lookups into BSS arrays.

We also avoid creating nsIFactory entries for static components when possible
by adding a CreateInstance method to nsFactoryEntry and the corresponding
entry wrapper to directly call the appropriate constructor method, and only
create a factory object when required by external code.

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

--HG--
extra : rebase_source : 8d02ff3b67b8078d1ac837d8c12f54786155c6b6
extra : absorb_source : 0fe36ca220c9270e634abf5b1f320a01878e0ce7
extra : histedit_source : 51521ceae2c1b3e4e8bf63d4ed1e2e67e9468780
2018-12-18 20:30:13 -08:00
Kris Maglione f6ce24cfbc Bug 1478124: Part 4a - Add XPCOM_MANIFESTS moz.build variable for XPCOM component manifests. r=froydnj
This aggregates a list of all static component manifests in the tree, and
writes them out to a `manifests-lists.json` file, which is read by the codegen
scripts in the next patch.

It slightly abuses the IDL lists machinery, given that these aren't
technically IDL files. But the semantics are similar enough that it seemed
like the best option.

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

--HG--
extra : rebase_source : 7e8148f5f6c0d830db92571700289b1eb841e140
extra : histedit_source : cab2c81128d17fa289d4b8ed653cad2599263e35
2018-12-12 18:29:57 -08:00
Kris Maglione 2b2a2a06e7 Bug 1478124: Part 3 - Add a lookup table for ProcessMatchesSelector. r=froydnj
Currently, when we build the component registry at startup, we exclude any
entry with a process selector which doesn't match the current process. When we
switch to static lookup tables, however, that check is going to have to happen
for every lookup, since we can't alter the table at runtime.

That may not matter much, given how expensive the rest of the component lookup
code is relative to ProcessMatchesSelector, but it's also easy and cheap
enough to generate a lookup table for all possible ProcessSelector values, and
do a quick index check instead.

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

--HG--
extra : rebase_source : fa6c764c2acd68dbe620e5a0779c6c58724ea209
2018-12-18 14:48:53 -08:00
Kris Maglione d3b05e8dad Bug 1478124: Part 2 - Factor out common GetService code. r=froydnj
The current implementations of GetService are slightly different for contract
IDs than they are for CIDs, but I'm pretty sure that's unintentional.

This patch factors out the common parts of the two implementations, which
should prevent them from diverging in the future, and avoids the need to make
the same changes in multiple places in the following patches.

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

--HG--
extra : rebase_source : 591d854d604dc7597dbfe5438bfbd0af98224c5b
2018-12-14 14:42:27 -08:00
Kris Maglione f1f3101eb5 Bug 1478124: Part 1 - Update component mocks to replace and restore components sanely. r=froydnj
For static components, I don't intend to allow removing or replacing CID
entries, only contract ID entries. And I would generally prefer, when
restoring overrides of those classes, to not create a new dynamic factory
entry for the contract ID.

We already have the ability to mock components without either of those issues,
but registering a new CID entry for the mock (without unregistering the
original), and then restoring the original by calling `registerFactory` with a
null factory object.

This patch updates our existing mocks to behave that way, and paves the way
for the rest of the patches.

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

--HG--
extra : rebase_source : 61ef2435d764c2d9daee6a16515eb0efd94a6454
2018-12-19 15:49:48 -08:00
Randell Jesup 0df3232aca Bug 1523333: add setTimeout/Interval profiler markers for all uses r=mstange 2019-01-28 23:52:35 -05:00
Lee Salzman 56444ece80 Bug 1512010 - snap text positions without device transform in local raster space. r=gw 2019-01-28 22:23:00 -05:00
Kris Maglione 4f0a4ba33f Bug 1514594: Follow-up: Fix more Mac bustage in the same script. r=bustage 2019-01-28 19:14:34 -08:00
Kris Maglione 68225e25a5 Bug 1514594: Follow-up: Fix damp talos tests. r=bustage
--HG--
extra : rebase_source : 7a73f8ba9f5d28728b550e41c43e0f64adf88466
2019-01-28 18:28:06 -08:00
Jason Laster 5f1d658b76 Bug 1523386 - Update debugger frontend (release 121). r=dwalsh 2019-01-28 21:01:17 -05:00
Brian Hackett 4ff11b64ac Bug 1523386 - [release 121] Use flow in src/components tests (#7815). r=dwalsh 2019-01-28 21:01:16 -05:00
Brian Hackett 6a108618ac Bug 1523386 - [release 121] [tests] Add flow types to remaining src/utils unit tests. (#7809). r=dwalsh 2019-01-28 21:01:15 -05:00
Nicolas Chevobbe f16d70465a Bug 1523386 - [release 121] Fix Frames.css hover/focus (#7805). r=dwalsh 2019-01-28 21:01:15 -05:00
Brian Hackett 00a47abe41 Bug 1523386 - [release 121] Refactor src/utils/pause unit tests. (#7798). r=dwalsh 2019-01-28 21:01:14 -05:00
Shivam Singhal 5f46269771 Bug 1523386 - [release 121] remove --icon-size CSS variable (#7801). r=dwalsh 2019-01-28 21:01:13 -05:00
Jaril 476cb1d183 Bug 1523386 - [release 121] corrected selectors for pane toggle buttons (#7802). r=dwalsh 2019-01-28 21:01:12 -05:00
Jason Laster c39344de02 Bug 1523386 - [release 121] [DebugLine] line is not cleared (#7779). r=dwalsh 2019-01-28 21:01:11 -05:00
Anshul 0d6e63e879 Bug 1523386 - [release 121] strict flow and remove some unused code in project search (#7669). r=dwalsh 2019-01-28 21:01:10 -05:00
Aayush Joglekar 9376828bbe Bug 1523386 - [release 121] Fixes Line Highlight Bug (#7768). r=dwalsh 2019-01-28 21:01:09 -05:00
Brian Hackett 2fdfcfa4f3 Bug 1523386 - [release 121] [Workers] Fix a couple bugs with windowless worker debugging. (#7776). r=dwalsh 2019-01-28 21:01:08 -05:00
derek-li 2de0ebc766 Bug 1523386 - [release 121] [XHR Breakpoints] Clicking text toggles breakpoint (#7766). r=dwalsh 2019-01-28 21:01:07 -05:00
Pradeep Gangwar 4b7f197296 Bug 1523386 - [release 121] Change max-width boundaries for verticalLayoutBreakpoint (#7781). r=dwalsh 2019-01-28 21:01:06 -05:00
David Walsh a55e596bf4 Bug 1523386 - [release 121] [Evaluations] Use jsterm directly for console logging (#7753). r=dwalsh 2019-01-28 21:01:06 -05:00
R.Ganesh ebd3447d1f Bug 1523386 - [release 121] Remove sanitize inputs (#7767). r=dwalsh 2019-01-28 21:01:05 -05:00
Jason Laster d6ea402092 Bug 1523386 - [release 121] [flow] Fix types with firefox commands (#7751). r=dwalsh 2019-01-28 21:01:04 -05:00
Konrad Kruk c2bb783f96 Bug 1523386 - [release 121] Respect enable extenstions setting in Sources and QuickOpenModal (#7705). r=dwalsh 2019-01-28 21:01:02 -05:00
Brian Hackett 5f0bf41d9d Bug 1523386 - [release 121] Distinguish between condition and log value in breakpoints (#7749). r=dwalsh 2019-01-28 21:01:01 -05:00
Hubert Boma Manilla 6ba3f76565 Bug 1523386 - [release 121] put log points behind a flag (#7761). r=dwalsh 2019-01-28 21:01:00 -05:00
Jason Laster 55a9ccfec2 Bug 1523386 - [release 121] Update editor context menus (#7719). r=dwalsh 2019-01-28 21:00:59 -05:00
Kris Maglione 1d42d81c07 Bug 1514594: Follow-up: Fix pageloader talos tests. r=bustage 2019-01-28 17:51:05 -08:00
Kris Maglione 65d4fdd47b Bug 1514594: Follow-up: Fix merge bustage in another test. r=bustage 2019-01-28 17:31:01 -08:00
Kris Maglione 678976229b Bug 1514594: Follow-up: Fix Mac merge bustage. r=bustage 2019-01-28 17:27:32 -08:00
Kris Maglione 48936b7fa4 Bug 1514594: Follow-up: Fix ESLint bustage on merge from autoland. r=bustage 2019-01-28 17:19:37 -08:00
Kris Maglione 21610fa4cc Bug 1514594: Follow-up: Fix merge bustage in test. r=bustage 2019-01-28 17:15:36 -08:00
Sebastian Hengst b78e4e8667 Merge mozilla-central to mozilla-inbound
--HG--
rename : browser/components/urlbar/tests/legacy/browser_urlbar_search_no_speculative_connect_with_client_cert.js => browser/components/urlbar/tests/browser/browser_urlbar_speculative_connect_not_with_client_cert.js
2019-01-29 02:55:55 +02:00
Kris Maglione fb4e709471 Bug 1514594: Follow-up: Fix ESLint error. r=bustage CLOSED TREE
--HG--
extra : amend_source : d3daee4392d23a2f512a5d1da7b85ac1ece4e44f
2019-01-28 16:30:26 -08:00
Sebastian Hengst 90f4b6640c Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 01:33:28 +02:00
Razvan Maries c88bd55f59 Merge mozilla-inbound to mozilla-central a=merge 2019-01-28 23:46:39 +02:00