Commit Graph
32 Commits
Author SHA1 Message Date
Cosmin Sabou 3d7b262fe8 Backed out 3 changesets (bug 1837907) for causing marionette crashes. CLOSED TREE
Backed out changeset 89b150d0c0ab (bug 1837907)
Backed out changeset 8502ba0bf6a6 (bug 1837907)
Backed out changeset e1d41d593702 (bug 1837907)
2023-11-21 15:02:53 +02:00
stransky 24ac635de4 Bug 1837907 [Linux] Don't catch SIGTERM in nsProfileLock r=jld
We want to handle SIGTERM gracefully and terminate Firefox by standard way.

Differential Revision: https://phabricator.services.mozilla.com/D191077
2023-11-21 11:25:26 +00:00
Sandor Molnar a6dc3490b4 Backed out 3 changesets (bug 1837907) for causing xpc failures on toolkit/mozapps/update/tests/unit_base_updater/marSuccessPartialWhileBackgroundTaskRunning.js
Backed out changeset 28174e34160b (bug 1837907)
Backed out changeset a883cbc99803 (bug 1837907)
Backed out changeset 7a2134520f7c (bug 1837907)
2023-11-15 19:33:12 +02:00
stransky 86547f4282 Bug 1837907 [Linux] Don't catch SIGTERM in nsProfileLock r=jld
We want to handle SIGTERM gracefully and terminate Firefox by standard way.

Differential Revision: https://phabricator.services.mozilla.com/D191077
2023-11-15 14:39:28 +00:00
Stanca Serban 566f5c7273 Backed out 2 changesets (bug 1837907) for causing xpcshell failures in marSuccessPartialWhileBackgroundTaskRunning.js. CLOSED TREE
Backed out changeset ff3a75dbd146 (bug 1837907)
Backed out changeset a78b3fba98aa (bug 1837907)
2023-11-03 17:25:27 +02:00
stransky aef4569f17 Bug 1837907 [Linux] Don't catch SIGTERM in nsProfileLock r=jld
We want to handle SIGTERM gracefully and terminate Firefox by standard way.

Differential Revision: https://phabricator.services.mozilla.com/D191077
2023-11-03 13:41:58 +00:00
Kathy Brade cd65579a31 Bug 1769028: Disable DNS lookup in nsProfileLock when the proxy bypass protection is enabled r=mossop
Instead of using the local computer's IP address within
symlink-based profile lock signatures, always use 127.0.0.1 when the
proxy bypass protection is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D161264
2022-11-07 10:50:19 +00:00
Dave Townsend 0395410b6e Bug 1767421: Remove use of deprecated GetProcessInformation function. r=mstange
I'm going to assert that we no longer need to worry about someone running
something prior to mozilla 1.3 and so the easiest way to remove this compiler
warning is to just remove this check for the old-style locking entirely.

Differential Revision: https://phabricator.services.mozilla.com/D145321
2022-05-04 06:54:05 +00:00
Jens Stutte 3d92ab73ef Bug 1714573: Ensure profile deletion takes place before the profile is unlocked. r=mossop,dom-storage-reviewers,janv
We want to make our best effort to delete all files we can before we unlock the profile. This includes a retry loop hoping that whoever else locked those files did so intermittently.
And once the profile is unlocked, we want to reduce as much as possible the possibility to interfere with a starting instance on the same profile directory.

Until bug 1716291 lands, we need to get back here to finish the work, but this patch is already supposed to mitigate some of the problems we might see in the wild.

Differential Revision: https://phabricator.services.mozilla.com/D116834
2021-06-15 06:28:04 +00:00
Brindusan Cristian bd712dd97c Backed out changeset eaa1eb96adbe (bug 1714573) for causing marionette failures in test_refresh_firefox.py.
CLOSED TREE
2021-06-10 16:19:14 +03:00
Jens Stutte 755558b4ba Bug 1714573: Ensure profile deletion takes place before the profile is unlocked. r=mossop,dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D116834
2021-06-10 09:07:50 +00:00
Agi Sferro dc164d8cf1 Bug 1697503 - Remove GeckoAppShell.KillAnyZombies. r=mossop,droeh
Before this patch, when the profile is locked on Android, we would call "ps",
parse the human-readable output and kill any other Gecko process that we could
find.

But this is completely unnecessary, as we know exactly that the PID of the
process holding the lock is.

In this patch we just kill the process holding the lock since this is
equivalent to the previous behavior.

Differential Revision: https://phabricator.services.mozilla.com/D106186
2021-03-15 17:04:41 +00:00
Simon Giesecke d2e71d5859 Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80631
2020-07-01 08:42:31 +00:00
Eric Rahm 6bdf02842c Bug 1617334 - Remove nsAutoPtr usage from toolkit. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D63746
2020-02-22 14:50:52 +00:00
Dave Townsend b7ab48abcc Bug 1553781: When the remote service finds an instance to remote to it doesn't clean up the startup lock. r=glandium
This fixes the issue in a few redundant ways:
* nsProfileLock is made to properly clean itself up when destroyed.
* nsRemoteService makes sure the unlock when destroyed.
* nsAppRunner unlocks when a remote client has been found.

Differential Revision: https://phabricator.services.mozilla.com/D32360
2019-05-30 17:53:36 +00:00
Sylvestre Ledru ad31adba4c Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

Differential Revision: https://phabricator.services.mozilla.com/D28956
2019-05-01 08:47:10 +00:00
Ehsan Akhgari 498e2df734 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Tooru Fujisawa 5ef6d9cc06 Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09: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
Chris Peterson f7ceeaf5cf Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.

MozReview-Commit-ID: 5UQVHElSpCr
2018-06-17 22:43:11 -07:00
Christian Holler 067be97dbd Bug 1403668 - Use SA_ONSTACK for several SIGSEGV handlers. r=ted
MozReview-Commit-ID: IwVYiBF3Ek8
2017-10-07 17:59:37 +02:00
Nicholas Nethercote d9bf389346 Bug 1382099 - Remove MOZ_WIDGET_GONK from toolkit/. r=glandium. 2017-07-19 18:38:48 +10:00
Tom Tromey a0148cdc8d Bug 1334278 - change mozilla::Smprintf to return a UniquePtr; r=froydnj
Change mozilla::Smprintf and friends to return a UniquePtr, rather than
relying on manual memory management.  (Though after this patch there are
still a handful of spots needing SmprintfFree.)

MozReview-Commit-ID: COa4nzIX5qa
2017-03-03 08:17:27 -07:00
Gian-Carlo Pascutto a5e51e146f Bug 1347358 - Add a Cleanup() function for profile locks. r=glandium
MozReview-Commit-ID: GYQeUuzWPOV
2017-03-23 18:02:10 +01:00
Benjamin Smedberg 59181ead76 Bug 1332639 - Remove the external string API: nsStringAPI.h/cpp and nsEmbedString.h, r=glandium
MozReview-Commit-ID: 9dZcmMAI0Vk
2017-02-27 11:41:52 -05:00
Tom Tromey c8c2308188 Bug 1060419 - make nsProfileLock.cpp use Printf.h, r=froydnj
MozReview-Commit-ID: KHhwAQUbfxb
2016-12-15 20:16:27 -07:00
Luca Niccoli f1441381d2 Bug 977786 - nsProfileLock shouldn't set mHaveLock when locking fails. r=gcp
MozReview-Commit-ID: BYB6IjNuD0k
2016-09-06 09:54:00 +02:00
Birunthan Mohanathas 2c5aca20d5 Bug 1227569 - Remove unsupported OpenVMS code. r=mccr8 2015-12-18 15:02:50 +02:00
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
J. Ryan Stinnett 9f487632dd Bug 1190965 - Restrict syscalls in nsProfileLock to Linux. r=jld 2015-08-06 16:20:46 -05:00
Andrew Osmond 49747028fd Bug 1043112 - Allow b2g to core dump when signal permits. r=jld 2015-07-08 16:24:58 -03:00
Mike Hommey 47e59727c4 Bug 1173681 - Move nsProfileLock related files in toolkit/profile and remove profile/dirserviceprovider. r=bsmedberg 2015-06-23 08:55:35 -07:00