serge-sans-paille
8a0a0f7524
Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato
...
MOZ_RUNINIT => initialized at runtime
MOZ_CONSTINIT => initialized at compile time
MOZ_GLOBINIT => initialized either at runtime or compile time, depending on template parameter, macro parameter etc
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.
Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-30 11:05:24 +00:00
serge-sans-paille
e54774d573
Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
...
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.
Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-28 08:21:19 +00:00
Alexandru Marc
191ccbe7fe
Backed out changeset d92f391b3b0c (bug 1922838) for backing out bug 1915351
2024-10-25 16:42:33 +03:00
serge-sans-paille
53068cdf31
Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
...
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.
Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 09:06:01 +00:00
Alexandru Marc
83543f20f2
Backed out changeset 448597bce69d (bug 1922838) for causing build bustages. CLOSED TREE
2024-10-24 11:37:49 +03:00
serge-sans-paille
c7a369b29a
Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
...
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.
Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 07:38:30 +00:00
Peter Van der Beken
839abe8af7
Bug 1900930 - Add WouldReportJSException() calls. r=dom-core,farre,necko-reviewers,kershaw
...
TypedArray::Create will put exceptions on the ErrorResult, so signal that we're
dealing with them in various callsites.
Differential Revision: https://phabricator.services.mozilla.com/D214794
2024-08-21 08:43:09 +00:00
Stanca Serban
11cd73d7a7
Backed out 6 changesets (bug 1900930) for causing xpcshell assertion failures in ErrorResult.h. CLOSED TREE
...
Backed out changeset 5234a13894b2 (bug 1900930)
Backed out changeset 638842494167 (bug 1900930)
Backed out changeset 36695bae43ed (bug 1900930)
Backed out changeset 23ab72aa4589 (bug 1900930)
Backed out changeset c89109c12d59 (bug 1900930)
Backed out changeset 2d3f52edb98a (bug 1900930)
2024-07-25 13:53:53 +03:00
Peter Van der Beken
bfe8e50a07
Bug 1900930 - Add WouldReportJSException() calls. r=dom-core,farre
...
TypedArray::Create will put exceptions on the ErrorResult, so signal that we're
dealing with them in various callsites.
Differential Revision: https://phabricator.services.mozilla.com/D214794
2024-07-25 07:40:41 +00:00
Tim Huang
226c880153
Bug 1885936 - Part 1: Introduce a chrome only function for getting all gamepads. r=cmartin,webidl,emilio
...
To collect the gamepad information on the user device, we introduce a
chrome only function called RequestAllGamepads to Navigator. The
function will return a promise which resolves when we get all gamepads
info from the parent process.
Note that we cannot rely on The existing navigator.getGamepads()
function because it cannot allow us collecting gamepads info
without the user interacts with the gamepads.
Differential Revision: https://phabricator.services.mozilla.com/D207979
2024-05-15 16:48:58 +00:00
Tamas Szentpeteri
6ccd0d4113
Backed out 4 changesets (bug 1885936) for causing bpnu bustages related to Gamepad. CLOSED TREE
...
Backed out changeset 935c80ed4a38 (bug 1885936)
Backed out changeset 6cc4da44b050 (bug 1885936)
Backed out changeset 03205a0f59e6 (bug 1885936)
Backed out changeset 93619e887bb7 (bug 1885936)
2024-05-15 16:58:13 +03:00
Tim Huang
6ecd5103bf
Bug 1885936 - Part 1: Introduce a chrome only function for getting all gamepads. r=cmartin,webidl,emilio
...
To collect the gamepad information on the user device, we introduce a
chrome only function called RequestAllGamepads to Navigator. The
function will return a promise which resolves when we get all gamepads
info from the parent process.
Note that we cannot rely on The existing navigator.getGamepads()
function because it cannot allow us collecting gamepads info
without the user interacts with the gamepads.
Differential Revision: https://phabricator.services.mozilla.com/D207979
2024-05-15 11:43:31 +00:00
Peter Van der Beken
2c8bf85445
Bug 1640839 - Add IPC serializer for WebIDL enums. r=mccr8,jgilbert,media-playback-reviewers,dom-storage-reviewers,janv,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201339
2024-03-02 07:50:22 +00:00
Natalia Csoregi
8c2521e9d5
Backed out 13 changesets (bug 1640839) for causing bustage on Element.cpp CLOSED TREE
...
Backed out changeset 179ceb82c9e5 (bug 1640839)
Backed out changeset 73f498a821f0 (bug 1640839)
Backed out changeset dc2d3d0e0365 (bug 1640839)
Backed out changeset ddc989ac0509 (bug 1640839)
Backed out changeset e595bb3feea8 (bug 1640839)
Backed out changeset c85aca04e27f (bug 1640839)
Backed out changeset 98e8e3a4047a (bug 1640839)
Backed out changeset 59ef180517db (bug 1640839)
Backed out changeset af2f5e293662 (bug 1640839)
Backed out changeset 89aa6d9dc598 (bug 1640839)
Backed out changeset 67b722a722f9 (bug 1640839)
Backed out changeset 24a9665c6ced (bug 1640839)
Backed out changeset d93f199385e9 (bug 1640839)
2024-03-01 18:23:08 +02:00
Peter Van der Beken
a0448e7053
Bug 1640839 - Add IPC serializer for WebIDL enums. r=mccr8,jgilbert,media-playback-reviewers,dom-storage-reviewers,janv,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201339
2024-03-01 14:31:12 +00:00
Mike Hommey
8fe7f2fff9
Bug 1882943 - Add missing header for Tainted. r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D203220
2024-03-01 09:53:37 +00:00
Tom Schuster
761ca4cf49
Bug 1680982 - Implement Linux/Unix Gamepad support using evdev. r=stransky
...
Based on work by: Val Packett <val@packett.cool> and coolreader18
<coolreader18@gmail.com>.
Differential Revision: https://phabricator.services.mozilla.com/D197865
2024-01-11 20:15:22 +00:00
Peter Van der Beken
44a577eec3
Bug 1849037 - Add ErrorResult to TypedArray::Create. r=necko-reviewers,extension-reviewers,media-playback-reviewers,webidl,profiler-reviewers,farre,padenot,smaug,robwu,jesup,aabh
...
Differential Revision: https://phabricator.services.mozilla.com/D191418
2023-11-11 08:24:05 +00:00
Peter Van der Beken
124d3d1698
Bug 1849037 - Make TypedArray::Create either take a length or a Span. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D191417
2023-11-11 08:24:04 +00:00
Peter Van der Beken
29a54c8a17
Bug 1849037 - Pass objects that support conversion to a Span directly to TypedArray::Create as a Span. r=necko-reviewers,extension-reviewers,media-playback-reviewers,profiler-reviewers,farre,padenot,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D191416
2023-11-11 08:24:04 +00:00
Stanca Serban
2685d35c49
Backed out 3 changesets (bug 1849037) for causing mochitests failures in test_gamepad_extensions.html.
...
Backed out changeset 27fd9f6f57ea (bug 1849037)
Backed out changeset 89aa49de2473 (bug 1849037)
Backed out changeset c336a8c78928 (bug 1849037)
2023-11-08 17:12:40 +02:00
Peter Van der Beken
2b267480e6
Bug 1849037 - Add ErrorResult to TypedArray::Create. r=necko-reviewers,extension-reviewers,media-playback-reviewers,webidl,profiler-reviewers,farre,padenot,smaug,robwu,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D191418
2023-11-08 11:29:05 +00:00
Peter Van der Beken
67091f955c
Bug 1849037 - Make TypedArray::Create either take a length or a Span. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D191417
2023-11-08 11:29:04 +00:00
Peter Van der Beken
7cb765ad2c
Bug 1849037 - Pass objects that support conversion to a Span directly to TypedArray::Create as a Span. r=necko-reviewers,extension-reviewers,media-playback-reviewers,profiler-reviewers,farre,padenot,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D191416
2023-11-08 11:29:04 +00:00
stransky
18bd527479
Bug 1532281 [Linux] Don't build with dbus-glib r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D187208
2023-10-12 12:59:08 +00:00
serge-sans-paille
e53b854020
Bug 1854416 - Use a constexpr std::array is enough for small lookup table r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D188843
2023-09-27 07:15:48 +00:00
Peter Van der Beken
869651c1fc
Bug 1690111 - Use new TypedArray APIs for copying data to a container. r=farre
...
Depends on D152495
Differential Revision: https://phabricator.services.mozilla.com/D152496
2023-09-20 09:42:01 +00:00
Cosmin Sabou
680b4364c7
Backed out 13 changesets (bug 1690111) for causing fetch related crashes.
...
Backed out changeset 5f2c25d194ad (bug 1690111)
Backed out changeset 76c408bcd053 (bug 1690111)
Backed out changeset 6d0649fdafff (bug 1690111)
Backed out changeset c1330b5e8c43 (bug 1690111)
Backed out changeset 5fa36d8fd2a5 (bug 1690111)
Backed out changeset daf7d747853a (bug 1690111)
Backed out changeset f70e09a7f5c6 (bug 1690111)
Backed out changeset 40c6d6eed7f8 (bug 1690111)
Backed out changeset 692f2a759573 (bug 1690111)
Backed out changeset 7140866dd9f6 (bug 1690111)
Backed out changeset 2865fe682139 (bug 1690111)
Backed out changeset 9dcd2416f8a5 (bug 1690111)
Backed out changeset 9c411bf84079 (bug 1690111)
2023-09-11 17:55:24 +03:00
Peter Van der Beken
510b237b29
Bug 1690111 - Use new TypedArray APIs for copying data to a container. r=farre
...
Depends on D152495
Differential Revision: https://phabricator.services.mozilla.com/D152496
2023-09-11 12:52:20 +00:00
Stanca Serban
17fb8bac17
Backed out changeset 50b448b2d902 (bug 1532281) for causing Linux build bustages. CLOSED TREE
2023-09-05 11:38:18 +03:00
stransky
60dc5e2272
Bug 1532281 [Linux] Don't build with dbus-glib r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D187208
2023-09-05 08:14:21 +00:00
Chris Martin
9408b6320a
Bug 1648572 - Restrain test gamepad dimensions to avoid OOM errors r=handyman
...
Differential Revision: https://phabricator.services.mozilla.com/D186369
2023-08-16 19:49:09 +00:00
Peter Van der Beken
9fba1d5220
Bug 1846277 - Remove nsGlobalWindow.h. r=dom-core,necko-reviewers,jesup,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D184973
2023-08-02 20:41:48 +00:00
Emilio Cobos Álvarez
cea323d30e
Bug 1837816 - Make selector cache not tied to a document. r=media-playback-reviewers,karlt,mstange
...
It doesn't really need to.
Differential Revision: https://phabricator.services.mozilla.com/D180591
2023-06-16 17:20:42 +00:00
Tom Schuster
e468e1cdc8
Bug 1837153 - Remove more RFPTarget::Unknown default parameters in classes inheriting from nsIGlobalObject. r=tjr
...
Differential Revision: https://phabricator.services.mozilla.com/D180198
2023-06-13 19:32:17 +00:00
Cristian Tuns
bc4cfd88c2
Backed out 4 changesets (bug 1837582, bug 1837153) for causing build bustages in nsGlobalWindowInner.cpp on Android CLOSED TREE
...
Backed out changeset e17bfa5f8959 (bug 1837153)
Backed out changeset 662b7f7504b9 (bug 1837582)
Backed out changeset 7c5fa154397d (bug 1837153)
Backed out changeset b447d95efe6e (bug 1837153)
2023-06-12 06:23:38 -04:00
Tom Schuster
d505c2c62e
Bug 1837153 - Remove more RFPTarget::Unknown default parameters in classes inheriting from nsIGlobalObject. r=tjr
...
Differential Revision: https://phabricator.services.mozilla.com/D180198
2023-06-12 09:48:03 +00:00
Dennis Schubert
30be98093f
Bug 1828185 - Increase Windows Gamepad polling to 250 Hz. r=cmartin
...
The old value, 20 Hz, is too low for games running at 60 fps. The new
polling rate of 250 Hz is consistent with Chrome's polling rate, see
[0], so developers should be less surprised about differences between
browsers.
[0]: https://source.chromium.org/chromium/chromium/src/+/main:device/gamepad/gamepad_provider.cc;l=100;drc=bb9cd02c17a2e8a8bdeca3712d357ca3d15a95bf
Differential Revision: https://phabricator.services.mozilla.com/D175671
2023-04-17 17:30:43 +00:00
Makoto Kato
0d94677e85
Bug 1802842 - Support Xbox Series X controller on macOS. r=mac-reviewers,mstange
...
I verified on my Xbox Series X controller.
`kAcceleratorUsage` and `kBrakeUsage` aren't button on Xbox Series X.
So I added more check whether it is button.
Differential Revision: https://phabricator.services.mozilla.com/D163199
2023-03-28 10:07:38 +00:00
Andi-Bogdan Postelnicu
4efa1bd0ba
Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-27 07:20:25 +00:00
Sandor Molnar
9db345d4c1
Backed out 2 changesets (bug 1276351) for causing build bustage in image/ClippedImage.cp CLOSED TREE
...
Backed out changeset e84598eb82c1 (bug 1276351)
Backed out changeset e940b0554484 (bug 1276351)
2023-03-25 14:16:43 +02:00
Andi-Bogdan Postelnicu
447f1e3358
Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-25 06:58:52 +00:00
Iulian Moraru
6d40eee997
Backed out 2 changesets (bug 1276351) for causing multiple failures.
...
Backed out changeset eeaf4f1e06af (bug 1276351)
Backed out changeset d44cb5704342 (bug 1276351)
2023-03-25 00:08:24 +02:00
Andi-Bogdan Postelnicu
a1b827b503
Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-24 18:55:39 +00:00
serge-sans-paille
e801b837ac
Bug 1819817 - Make dom/gamepad buildable outside of a unified build environment r=andi
...
Depends on D171423
Differential Revision: https://phabricator.services.mozilla.com/D171424
2023-03-02 07:44:29 +00:00
Tom Ritter
848cb93a49
Bug 1809776: Cut Gamepads over to fine-grained RFP control r=cmartin,tschuster
...
Differential Revision: https://phabricator.services.mozilla.com/D167451
2023-02-08 14:54:49 +00:00
Nika Layzell
852d02ec16
Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin
...
This only changes the behaviour when called with a TaskQueue or other type
using SerialEventTargetGuard on the stack. They are being switched over as the
existing GetCurrentEventTarget method is being removed, as it is somewhat
confusing, and poorly documented.
Callers which need to get the current thread even when on a threadpool or
behind a TaskQueue were switched to GetCurrentEventTarget in the previous part.
Differential Revision: https://phabricator.services.mozilla.com/D166607
2023-01-16 23:14:11 +00:00
Sandor Molnar
41b78439d0
Backed out 6 changesets (bug 1809752, bug 1809753) for causing perma failures in browser/components/firefoxview/tests/browser/browser_feature_callout_position.js
...
Backed out changeset ea05784d74c4 (bug 1809753)
Backed out changeset 7c9b20eebcc8 (bug 1809753)
Backed out changeset d0267ac2256d (bug 1809753)
Backed out changeset aa9f2971bd6f (bug 1809753)
Backed out changeset f0d9fcfaa6f8 (bug 1809752)
Backed out changeset 6d58c799cffe (bug 1809752)
2023-01-17 03:19:24 +02:00
Nika Layzell
8d118308de
Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin
...
This only changes the behaviour when called with a TaskQueue or other type
using SerialEventTargetGuard on the stack. They are being switched over as the
existing GetCurrentEventTarget method is being removed, as it is somewhat
confusing, and poorly documented.
Callers which need to get the current thread even when on a threadpool or
behind a TaskQueue were switched to GetCurrentEventTarget in the previous part.
Differential Revision: https://phabricator.services.mozilla.com/D166607
2023-01-16 23:14:11 +00:00
Andrew McCreight
ce28c41da0
Bug 1805931, part 2 - Automated removal of uses of ROOT and UNROOT CC macros. r=smaug
...
As of the prior patch, these are no longer needed. I removed
these with a script, then ran clang-format on the files, then
manually reverted a few unrelated changed from the formatter.
Differential Revision: https://phabricator.services.mozilla.com/D164829
2022-12-15 19:45:01 +00:00