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

1620 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight 0e20ed96ec Bug 961019 - Remove nsIClassInfo::MAIN_THREAD_ONLY. r=peterv,necko-reviewers
XPConnect has been single threaded for a long time, so this
flag doesn't do anything.

Differential Revision: https://phabricator.services.mozilla.com/D168442
2023-02-01 21:45:44 +00:00
serge-sans-paille da45a5a7c1 Bug 1811934 - Have nsID::ToString() return an managed string instead of a raw pointer r=xpcom-reviewers,nika
And use nsID::ToProvidedString(...) method when suitable.

This naturally fixes a memory leak in dom/fetch/FetchParent.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D167606
2023-01-31 16:44:04 +00:00
Norisz Fay 73c377bc06 Backed out changeset 7d4b830c1cf6 (bug 1811934) for causing wpt failures on pointerevent_pointerrawupdate_in_pointerlock.html CLOSED TREE 2023-01-31 21:44:59 +02:00
serge-sans-paille 2dfe139f78 Bug 1811934 - Have nsID::ToString() return an managed string instead of a raw pointer r=xpcom-reviewers,nika
And use nsID::ToProvidedString(...) method when suitable.

This naturally fixes a memory leak in dom/fetch/FetchParent.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D167606
2023-01-31 16:44:04 +00:00
Sylvestre Ledru 1f8d23143a Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D165559
2022-12-28 09:52:44 +00:00
Makoto Kato a628865b23 Bug 1805127 - Don't use AndroidBridge to get release version. r=geckoview-reviewers,calu
Actually, we can get Android release version from JNI generator, so it is
unnecessary to use `AndroidBridge` to get it.

Also, this cleans up unused AndroidBridge functions.

Differential Revision: https://phabricator.services.mozilla.com/D164431
2022-12-13 11:57:06 +00:00
Nika Layzell bca0a6965b Bug 1793463 - Part 4: Generate static components entries for protocols, r=necko-reviewers,xpcom-reviewers,valentin,kmag
This adds a new set of options to static components.conf files to allow
specifying the protocol flags and default ports of a protocol handler, and
generates a separate table just for this purpose.

This will be used in the next part as part of replacing the existing protocol
handler lookup infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D162803
2022-12-01 15:43:19 +00:00
Marian-Vasile Laza 7492025127 Backed out 7 changesets (bug 1793463) for causing bustages on nsIOService.cpp. CLOSED TREE
Backed out changeset 47c3acb30de2 (bug 1793463)
Backed out changeset 71afe900eb17 (bug 1793463)
Backed out changeset d168599a269e (bug 1793463)
Backed out changeset d0f18d300818 (bug 1793463)
Backed out changeset a116e6f089f2 (bug 1793463)
Backed out changeset eba1123c8b56 (bug 1793463)
Backed out changeset 68a3eb8a3057 (bug 1793463)
2022-12-01 02:30:02 +02:00
Nika Layzell 90f7562d95 Bug 1793463 - Part 4: Generate static components entries for protocols, r=necko-reviewers,xpcom-reviewers,valentin,kmag
This adds a new set of options to static components.conf files to allow
specifying the protocol flags and default ports of a protocol handler, and
generates a separate table just for this purpose.

This will be used in the next part as part of replacing the existing protocol
handler lookup infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D162803
2022-11-30 18:13:42 +00:00
Marco Castelluccio 2784a97322 Bug 1790816 - Reformat xpcom/ with isort. r=mccr8 DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162640
2022-11-22 13:37:48 +00:00
Kagami Sascha Rosylight fac20df060 Bug 1796085 - Part 1: Define MOZ_BACKGROUNDTASKS macro globally r=smaug,necko-reviewers,application-update-reviewers,nalexander,valentin
There are 10+ separate macro definition for this, we can do it globally instead.

Differential Revision: https://phabricator.services.mozilla.com/D156911
2022-10-19 12:04:08 +00:00
Andrew McCreight cc63625045 Bug 1792437, part 2 - Remove nsIModule. r=xpcom-reviewers,nika
I think some prior XPCOM component work removed the uses of this.

Differential Revision: https://phabricator.services.mozilla.com/D158210
2022-09-27 22:16:29 +00:00
Andrew McCreight c954e90d57 Bug 1792437, part 1 - Mark some xpcom/components interfaces builtinclass. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D158209
2022-09-27 22:16:29 +00:00
Nika Layzell 2d7346701a Bug 1789902 - Part 1: Support accessing XPCOM static components from Rust, r=xpcom-reviewers,barret
This will allow us to replace some of the uses of Services.py with the
non-deprecated static components getters.

Differential Revision: https://phabricator.services.mozilla.com/D156890
2022-09-13 13:47:13 +00:00
Emilio Cobos Álvarez 42b7f1a58c Bug 1780788 - Use abstract strings as in-arguments for ipdl. r=nika,necko-reviewers,media-playback-reviewers,alwu,dragana
This prevents copies and avoids the hack we have to avoid this, which
right now is using nsDependent{C,}String.

Non-virtual actors can still use `nsString` if they need to on the
receiving end.

Differential Revision: https://phabricator.services.mozilla.com/D152519
2022-07-25 20:19:48 +00:00
Andi-Bogdan Postelnicu 72ba7fb691 Bug 1519636 - Reformat recent changes to the Google coding style. r=media-playback-reviewers,alwu
Updated with clang-format version 14.0.5 (taskcluster-cAkeFEZXQmihHYDO8Y4hRw)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D151003
2022-07-14 08:10:07 +00:00
Kris Maglione 850421ecb6 Bug 1774686 - Remove obsolete "binary compatibility" stub methods. r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149567
2022-07-11 15:40:43 +00:00
Kris Maglione 12faebc6e9 Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-30 09:12:19 +00:00
Kris Maglione 0a4ce6199e Bug 1773770: Part 9 - Migrate widget component content proxies to static registration. r=mccr8
Several widget contracts use different implementations in the parent and
content processes. Since the static registration system builds its hashtable
at compile time rather than runtime, it doesn't support different contract IDs
per process. It could make the decision at lookup time, but given how rarely
it's needed, I don't think it would be worth the complexity.

This patch updates the widget components that need different implementations
in the parent and content process to register separate contracts for each
implementation, and a third stub contract which forwards to the appropriate
implementation depending on which process it's used in. The implementation
entries restrict their usage to the process they are meant to be used in.

Differential Revision: https://phabricator.services.mozilla.com/D149436
2022-06-30 09:12:18 +00:00
Kris Maglione df4aae4dd3 Bug 1773770: Part 8 - Migrate Cocoa widget module to static component registration. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D149435
2022-06-30 09:12:18 +00:00
Kris Maglione ae5e26145b Bug 1773770: Part 7 - Migrate PowerManagerService to static component registration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149434
2022-06-30 09:12:17 +00:00
Kris Maglione 197caa5c79 Bug 1773770: Part 5 - Migrate necko category entries to static registration. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D149433
2022-06-30 09:12:17 +00:00
Kris Maglione a8a76125b8 Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-30 09:12:16 +00:00
Kris Maglione 9746256032 Bug 1773770: Part 3 - Migrate XRE module to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149431
2022-06-30 09:12:16 +00:00
Kris Maglione 7a2e2d4aa7 Bug 1773770: Part 2 - Migrage KeyValueStore to static component registration. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D149430
2022-06-30 09:12:16 +00:00
Kris Maglione ce5a40d75a Bug 1773770: Part 1 - Remove defunct layout module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149429
2022-06-30 09:12:15 +00:00
Mozilla Releng Treescript 82769fbd14 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-06-27 15:55:43 +00:00
Noemi Erli ff26b8a5d0 Backed out 11 changesets (bug 1773770) because shouldn't have been landed during a soft freeze CLOSED TREE
Backed out changeset ede55d570d1e (bug 1773770)
Backed out changeset d5374ef362c2 (bug 1773770)
Backed out changeset 26e47956508b (bug 1773770)
Backed out changeset c78f0c4c8f3f (bug 1773770)
Backed out changeset 9089a97bcb26 (bug 1773770)
Backed out changeset 17894f5b3b41 (bug 1773770)
Backed out changeset 986a64a9e6b4 (bug 1773770)
Backed out changeset 7a63d8676bf0 (bug 1773770)
Backed out changeset 38e7b99ffbed (bug 1773770)
Backed out changeset e9ad07c96ab2 (bug 1773770)
Backed out changeset 2a8f65417b66 (bug 1773770)
2022-06-24 20:03:43 +03:00
Kris Maglione 2e6a978eec Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-24 07:10:19 +00:00
Kris Maglione d1688d3ec7 Bug 1773770: Part 9 - Migrate widget component content proxies to static registration. r=mccr8
Several widget contracts use different implementations in the parent and
content processes. Since the static registration system builds its hashtable
at compile time rather than runtime, it doesn't support different contract IDs
per process. It could make the decision at lookup time, but given how rarely
it's needed, I don't think it would be worth the complexity.

This patch updates the widget components that need different implementations
in the parent and content process to register separate contracts for each
implementation, and a third stub contract which forwards to the appropriate
implementation depending on which process it's used in. The implementation
entries restrict their usage to the process they are meant to be used in.

Differential Revision: https://phabricator.services.mozilla.com/D149436
2022-06-24 07:10:18 +00:00
Kris Maglione ec68cbb32e Bug 1773770: Part 8 - Migrate Cocoa widget module to static component registration. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D149435
2022-06-24 07:10:17 +00:00
Kris Maglione fc1c2b1b04 Bug 1773770: Part 7 - Migrate PowerManagerService to static component registration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149434
2022-06-24 07:10:17 +00:00
Kris Maglione 04a1bd3551 Bug 1773770: Part 5 - Migrate necko category entries to static registration. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D149433
2022-06-24 07:10:17 +00:00
Kris Maglione 4bd7eb42a2 Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-24 07:10:16 +00:00
Kris Maglione 29aac4ac21 Bug 1773770: Part 3 - Migrate XRE module to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149431
2022-06-24 07:10:16 +00:00
Kris Maglione a7dfec363a Bug 1773770: Part 2 - Migrage KeyValueStore to static component registration. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D149430
2022-06-24 07:10:16 +00:00
Kris Maglione 3b276e743a Bug 1773770: Part 1 - Remove defunct layout module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149429
2022-06-24 07:10:15 +00:00
criss 6abc242b8d Backed out 11 changesets (bug 1773770) for causing mochitest failures on test_bug466599.xhtml. CLOSED TREE
Backed out changeset d35762c3242d (bug 1773770)
Backed out changeset 0501c85d3f58 (bug 1773770)
Backed out changeset cdd28e0e3434 (bug 1773770)
Backed out changeset a48829529dd0 (bug 1773770)
Backed out changeset c3fcdd7e88e5 (bug 1773770)
Backed out changeset 8f334c5dc0cd (bug 1773770)
Backed out changeset 337e76b67647 (bug 1773770)
Backed out changeset 71f539b482ba (bug 1773770)
Backed out changeset b996cbbbc2f5 (bug 1773770)
Backed out changeset a6ddc3cdc9ba (bug 1773770)
Backed out changeset c8d7da3cf2ac (bug 1773770)
2022-06-24 08:12:40 +03:00
Kris Maglione 8636bacdcd Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-24 00:47:46 +00:00
Kris Maglione b973622a94 Bug 1773770: Part 9 - Migrate widget component content proxies to static registration. r=mccr8
Several widget contracts use different implementations in the parent and
content processes. Since the static registration system builds its hashtable
at compile time rather than runtime, it doesn't support different contract IDs
per process. It could make the decision at lookup time, but given how rarely
it's needed, I don't think it would be worth the complexity.

This patch updates the widget components that need different implementations
in the parent and content process to register separate contracts for each
implementation, and a third stub contract which forwards to the appropriate
implementation depending on which process it's used in. The implementation
entries restrict their usage to the process they are meant to be used in.

Differential Revision: https://phabricator.services.mozilla.com/D149436
2022-06-24 00:47:45 +00:00
Kris Maglione 00c2a2d33f Bug 1773770: Part 8 - Migrate Cocoa widget module to static component registration. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D149435
2022-06-24 00:47:44 +00:00
Kris Maglione 41bf38fd96 Bug 1773770: Part 7 - Migrate PowerManagerService to static component registration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149434
2022-06-24 00:47:44 +00:00
Kris Maglione 3d617d9036 Bug 1773770: Part 5 - Migrate necko category entries to static registration. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D149433
2022-06-24 00:47:44 +00:00
Kris Maglione 36eea502fb Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-24 00:47:43 +00:00
Kris Maglione 27f3cba873 Bug 1773770: Part 3 - Migrate XRE module to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149431
2022-06-24 00:47:43 +00:00
Kris Maglione e3abe6253a Bug 1773770: Part 2 - Migrage KeyValueStore to static component registration. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D149430
2022-06-24 00:47:42 +00:00
Kris Maglione 0d8489ee70 Bug 1773770: Part 1 - Remove defunct layout module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149429
2022-06-24 00:47:42 +00:00
Marian-Vasile Laza 7dd26a3f65 Backed out 11 changesets (bug 1773770) for causing bc failures on browser_xpcom_graph_wait.js. CLOSED TREE
Backed out changeset 72ace9ee39ae (bug 1773770)
Backed out changeset e8a3a040b4c4 (bug 1773770)
Backed out changeset 4ff5f4f0f5d1 (bug 1773770)
Backed out changeset f96e9664168d (bug 1773770)
Backed out changeset b6a696897ca8 (bug 1773770)
Backed out changeset 1b8ad6be2dce (bug 1773770)
Backed out changeset 7e3a1a32a88d (bug 1773770)
Backed out changeset 6dbe5fa1ad4f (bug 1773770)
Backed out changeset 86e09dcdadde (bug 1773770)
Backed out changeset 1ee8d852d9d5 (bug 1773770)
Backed out changeset c99e93023059 (bug 1773770)
2022-06-24 03:25:34 +03:00
Kris Maglione ca338cab57 Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-23 23:05:38 +00:00
Kris Maglione fe9734c5db Bug 1773770: Part 9 - Migrate widget component content proxies to static registration. r=mccr8
Several widget contracts use different implementations in the parent and
content processes. Since the static registration system builds its hashtable
at compile time rather than runtime, it doesn't support different contract IDs
per process. It could make the decision at lookup time, but given how rarely
it's needed, I don't think it would be worth the complexity.

This patch updates the widget components that need different implementations
in the parent and content process to register separate contracts for each
implementation, and a third stub contract which forwards to the appropriate
implementation depending on which process it's used in. The implementation
entries restrict their usage to the process they are meant to be used in.

Differential Revision: https://phabricator.services.mozilla.com/D149436
2022-06-23 23:05:36 +00:00