stransky
1cc676e5da
Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-06 10:39:10 +00:00
Cristian Tuns
199ab9f337
Backed out changeset f65c77517e3e (bug 1859865) for causing build bustages in nsAppShell.cpp CLOSED TREE
2023-11-04 04:52:00 -04:00
stransky
650976db09
Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-04 08:21:16 +00:00
Butkovits Atila
21ed82a1c8
Backed out changeset 1c0f7ecac0da (bug 1859865) for causing bustages at MPRISServiceHandler.cpp.
2023-11-04 01:59:29 +02:00
stransky
3a98b05737
Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-03 21:13:16 +00:00
stransky
41ef2d0041
Bug 1858153 [Linux] Migrate UPowerClient from dbus-glib to GDBus r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D190670
2023-10-12 11:16:25 +00:00
stransky
fa0ad557fc
Bug 1848589 [Linux] Don't query battery status on Linux as battery API is not used r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D187200
2023-09-04 07:30:18 +00:00
Gabriele Svelto
430ead7d2d
Bug 1771712 - Make it more likely for child processes to be killed under OOM conditions compared to the parent process on Linux r=jld
...
This patch implements hal::SetProcessPriority() on Linux and leverages
it to make it more likely that the parent process and foreground tab
survive an OOM situation, letting Linux' OOM killer reap preallocated
processes and background tabs first when reclaiming memory.
This is achieved by setting the `oom_score_adj` values of said processes
such that they will be killed in this order:
* Preallocated processes will be the first to go, they don't contain
user data and are not visible, so they're a good candidate to free up
memory
* Background tabs will be killed next, we don't generate crash reports
for thoes nor do we inform the user, we just reload the tab, so in
most cases one being killed will only be a small annoyance
* Background tabs playing video come next, but only if they're not also
playing or recording audio
* Finally foreground tabs will be killed as a last resort, background
tabs playing audio or with an active WebRTC session are also
considered to be in the foreground as the user will immediately notice
if they crash
Note that this patch only implements the low-level plumbing. The process
priority manager has not been enabled on Linux yet so that needs to
happen before this actually works.
Differential Revision: https://phabricator.services.mozilla.com/D153466
2022-08-09 16:05:48 +00:00
Emilio Cobos Álvarez
0a450d3a7b
Bug 1760839 - Use more automatic memory management in GTK code. r=stransky
...
This fixes a couple potential leaks (e.g., see the UPowerClient changes,
we weren't freeing all the devices properly).
Differential Revision: https://phabricator.services.mozilla.com/D141775
2022-03-23 16:14:34 +00:00
Chris Peterson
0a9155f83b
Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj
...
This changeset is a simple find and replace of `MOZ_FALLTHROUGH` and `[[fallthrough]]`.
Unfortunately, the MOZ_FALLTHROUGH_ASSERT macro (to assert on case fallthrough in debug builds) is still necessary after switching from [[clang::fallthrough]] to [[fallthrough]] because:
* MOZ_ASSERT(false) followed by [[fallthrough]] triggers a -Wunreachable-code warning in DEBUG builds
* but MOZ_ASSERT(false) without [[fallthrough]] triggers a -Wimplicit-fallthrough warning in NDEBUG builds.
Differential Revision: https://phabricator.services.mozilla.com/D56440
2019-12-20 07:16:43 +00:00
Ryan Hunt
50b1514555
Bug 1523969 part 9 - Move method definition inline comments to new line in 'hal/'. r=gsvelto
...
Differential Revision: https://phabricator.services.mozilla.com/D21109
2019-02-25 16:07:35 -06:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Nicholas Nethercote
a017a9b988
Bug 1382955 (part 3) - Remove a bunch of unused HAL stuff. r=gsvelto,kanru.
2017-08-02 10:09:32 +10:00
Nicholas Nethercote
52785864e7
Bug 1382955 (part 2) - Remove nsIPowerManagerService::{powerOff,reboot,restart} and related things. r=gsvelto.
2017-08-02 10:09:26 +10:00
Nicholas Nethercote
d0436bb1c9
Bug 1382099 - Remove MOZ_WIDGET_GONK from hal/. r=gsvelto.
2017-07-24 10:08:55 +10:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Andrea Marchesini
cd0fa01b94
Bug 1282433 - Use dbus PropertiesChanged signal for notification of battery status changes, r=karlt
...
From UPower 0.99, DeviceChanged has been removed from the UPower interface and
PropertiesChanged support added.
2016-11-02 10:37:11 +01:00
Ehsan Akhgari
28b952324b
Bug 1299493 - Remove Navigator.get/hasFeature(); r=baku
2016-08-31 18:02:46 -04:00
Chris Peterson
43e6fba9de
Bug 1241549 - Annotate intentional switch fallthrough in hal/linux/UPowerClient.cpp. r=gsvelto
...
hal/linux/UPowerClient.cpp:420:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2016-01-20 21:34:41 -08:00
Kyle Machulis
241556554e
Bug 852944 - Gamepad API IPC; r=ted, r=baku
2015-04-23 15:05:29 -07:00
Ehsan Akhgari
9aea0e3f0a
Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
...
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 21:40:49 -04:00
Wes Kocher
bcf61be505
Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE
2015-04-21 15:47:40 -07:00
Ehsan Akhgari
e383d2c003
Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
...
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 16:31:58 -04:00
Gijs Kruitbosch
b99784878f
Bug 1124127 - round power percentage to whole number before passing on, r=gsvelto
2015-01-21 14:06:40 +00:00
Wes Kocher
0d2890286b
Bug 1107923 - Followup to fix non-unified bustage a=me
2014-12-16 13:26:42 -08:00
Oleksiy Avramchenko
cd2fe79a98
Bug 1107923 - Use powerctl for reboot & shutdown. r=gsvelto
...
Android KK and later supports sys.powerctl property to reboot or shutdown device via the init. This allows to:
- hook up on these events from the rc scripts to perform some actions
- remount all fs to ro in android_reboot() before calling the kernel
2014-12-12 06:18:00 -05:00
Gabriele Svelto
90e9a301fe
Bug 1047277 - Hide HAL's logging macros from the public headers and convert all components to use them. r=dhylands
2014-09-24 15:23:18 +02:00
Ted Mielczarek
0c8d982587
Bug 1014162 - Make Gamepad.mapping into an enum. r=smaug
2014-05-23 07:39:13 -04:00
Alphan Chen
4000fabab6
Bug 996996 - Move fopen into non-sanboxed process. r=mrbkap
2014-05-21 13:49:36 +08:00
Dave Hylands
8dd788cfad
Bug 993737 - Only fire shutdown notifications on main thread. r=gsvelto
2014-04-30 17:20:30 -07:00
Birunthan Mohanathas
88a0348924
Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
2013-12-08 21:52:54 -05:00
Kyle Machulis
9c82468dda
Bug 937496 - Check if libudev already loaded before trying to load symbols from it; r=ted
2013-11-19 12:52:37 -08:00
George Wright
df8b036b19
Bug 920160 - Add prefs for SkiaGL cache size r=snorp
2013-10-22 14:15:24 -05:00
Boris Zbarsky
e6b6bf020e
Bug 909645 part 2. Don't include ipdl headers in Hal.h. r=ms2ger
2013-08-28 00:14:57 -04:00
Nicholas Nethercote
cfb06731f3
Bug 909171 (part 3) - Remove JS_VERSION. r=luke.
2013-08-26 17:09:40 -07:00
Birunthan Mohanathas
8cfe8b37ac
Bug 784739 - Switch from NULL to nullptr in hal/. r=ehsan
2013-08-23 15:51:15 -04:00
Ted Mielczarek
26da22d0c1
bug 894382 - support libudev.so.1 in Linux Gamepad backend. r=karlt
2013-07-29 09:04:56 -04:00
Justin Lebar
8cc88f21ce
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar
de89040a2c
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Ted Mielczarek
7b992a7242
bug 860413 - Allow setting standard gamepad mapping. r=smaug
2013-04-09 08:43:25 -04:00
Ted Mielczarek
7554b7a510
bug 690938 - Get vendor id and product id on Linux for bluetooth gamepads. r=karlt
2013-04-09 08:43:24 -04:00
Michael Vines
2c6bfc7951
Bug 851721 - Emit system-reboot/system-power-off events for Gonk backend. r=kchen
2013-03-23 19:26:50 -07:00
Ted Mielczarek
e82c1299ad
bug 604039 - Linux gamepad backend. r=karlt
2011-08-03 14:12:08 -04:00
Chris Jones
107c71b7e1
Rollup of bug 821192: Ensure that content processes don't see an inconsistent app dir. r=bent,dhylands
...
Bug 821192, part 1: Fix the watchdog timeout code. r=dhylands
Bug 821192, part 2: Add an interface to join all live content processes. r=bent
Bug 821192, part 3: Join all subprocesses before restarting the main process, when we're e.g. about to apply an update. r=dhylands
2012-12-28 01:45:16 -08:00
Gregor Wagner
9342c89a70
Bug 820135 - Preferences: We don't save prefs when we reboot. r=cjones
2012-12-12 15:41:07 -08:00
Josh Matthews
f90a0e9f0d
Backed out changeset ea39e0af0831 (bug 820135)
2012-12-12 02:23:10 -05:00
Gregor Wagner
1a49cf5ea0
Bug 820135 - Preferences: We don't save prefs when we reboot. r=cjones
2012-12-11 22:39:25 -08:00
Andrea Marchesini
e6f8d408bb
Bug 703612 - Make DBUS calls asynchronous to prevent slowness because of DBus daemon being overloaded in Battery API UPower backend. r=mounir
2012-11-02 16:11:50 -04:00
Gene Lian
a42615518c
Bug 793970 - Reuse nsAppStartup's watchdog to compulsively power-off/reboot/quit Gecko if profile synchronizing hangs. r=cjones
2012-10-02 15:26:32 +08:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00