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

21485 Коммитов

Автор SHA1 Сообщение Дата
Ben Hearsum 72b7841950 Bug 1737177: Add `nsSystemInfo` runtime flag for whether running application is running under Microsoft Windows S Mode. r=mhowell
This patch uses the Windows.System.Profile.WindowsIntegrityPolicy class to determine whether or not Windows is in S mode. This class is only available beginning with SDK 17763 (newer than what we use right now), so we need to fetch it at runtime with some magic.

This is a completely no-op for Windows versions older than 1810, where the WindowsIntegrityPolicy class is not available.

Differential Revision: https://phabricator.services.mozilla.com/D130397
2021-11-16 15:11:32 +00:00
Andrew McCreight 8648653dd1 Bug 1741246 - Pass JS::GCCellPtr in nsCycleCollectionTraversalCallback::NoteJSChild(). r=jonco
This is a pointer-sized value, so there's no need to pass it by
value. All of the SpiderMonkey places that pass GCCellPtr are doing
it by value, so this is aligning with that.

In addition, I removed a NoteJSChild() overload that is no longer
used.

Differential Revision: https://phabricator.services.mozilla.com/D131163
2021-11-16 14:52:54 +00:00
Jon Coppeard d89836b479 Bug 1693775 - Change CallbackTracer::onChild to pass GCCellPtr by value r=sfink,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D131142
2021-11-16 09:09:37 +00:00
Andi-Bogdan Postelnicu 1faa3d40cf Bug 1519636 - Reformat recent changes to the Google coding style. r=firefox-build-system-reviewers,mhentges,sylvestre
Reformat with clang-format version 12.0.1 (taskcluster-FYV2l5wGTseBAhiqf8cxfQ)

Differential Revision: https://phabricator.services.mozilla.com/D131114
2021-11-16 08:07:29 +00:00
Sylvestre Ledru 39a2e463ea Bug 1714788 - doc: Fix a Pygments warning r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Warning:
lexer name 'bz_comment_text' is not known

Depends on D131047

Differential Revision: https://phabricator.services.mozilla.com/D131095
2021-11-16 07:59:49 +00:00
Sylvestre Ledru e747d0c0f5 Bug 1714788 - doc: Fix a warning 'Inline interpreted text' r=firefox-source-docs-reviewers,championshuttler DONTBUILD
WARNING: Inline interpreted text or phrase reference start-string without end-string.

Depends on D131090

Differential Revision: https://phabricator.services.mozilla.com/D131091
2021-11-16 07:59:47 +00:00
Iulian Moraru 897bb9d353 Backed out 2 changesets (bug 1707591) for causing python mozlint failures on test_yaml.py. CLOSED TREE
Backed out changeset a730ab2d0dbe (bug 1707591)
Backed out changeset 0269849fd7ef (bug 1707591)
2021-11-12 18:44:36 +02:00
Sylvestre Ledru c1b5edd8be Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=webdriver-reviewers,whimboo,gerard-majax
This changed with this:
https://github.com/psf/black/pull/1740

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-12 15:06:56 +00:00
Norisz Fay 0c12096cf2 Backed out 2 changesets (bug 1738931) for causing mochitest failures on VideoConduit and WatchManager CLOSED TREE
Backed out changeset fbaeb0434e8a (bug 1738931)
Backed out changeset 3964c080fafc (bug 1738931)
2021-11-11 14:06:57 +02:00
Andreas Pehrson 548e579c02 Bug 1738931 - WatchManager: Allow manual notifications without a watch target present. r=xpcom-reviewers,mccr8
This is essentially a short-hand for adding a direct task to the current thread,
possible when a watch manager is already present.

Differential Revision: https://phabricator.services.mozilla.com/D130870
2021-11-11 11:10:48 +00:00
Haik Aftandilian 3cf27e9320 Bug 1737854 - macOS 'Share' menu modifies URL such that shared page doesn't load r=necko-reviewers,mstange,valentin
Revert some of the fix for 1722758 so that only the URL ref component is re-encoded for NSURL compatibility. Other URL fields need additional work to be addressed in a follow up.

Update the set of characters re-encoded to be as minimal as possible and include missing characters.

Add tests to ensure encoding works as expected, not just that it is accepted by NSURL.

Differential Revision: https://phabricator.services.mozilla.com/D130445
2021-11-10 19:32:53 +00:00
Gerald Squelart 5399574d8b Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.

Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-08 23:59:35 +00:00
Gerald Squelart ec05d2c747 Bug 1738627 - Store distinct profiling features of individual threads - r=canaltinova
This replaces the simple boolean ThreadRegistrationData::mIsBeingProfiled and its directly-dependent functions.

profiler_thread_is_being_profiled now takes an extra (currently optional) argument, to check if any of the given ThreadProfilingFeatures is currently live.

This is used to control:
- Periodic sampling of CPU utilization.
- Periodic sampling of stacks.
- Markers.

This patch doesn't change the observed behavior yet (i.e., instead of IsBeingProfiled being true or false, all thread profiling features are either all or nothing), but will be used for finer-grained control in later patches.

Differential Revision: https://phabricator.services.mozilla.com/D130008
2021-11-08 23:59:35 +00:00
Randell Jesup e00172bac8 Bug 1739421: Use kungFuDeathGrip when firing a timer r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D130375
2021-11-08 23:00:30 +00:00
Brad Werth 7409cb410c Bug 1738107 Part 1: Remove deprecated std::iterator from nsTArrayBackInserter. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D130311
2021-11-08 22:12:44 +00:00
Andrew McCreight b35405324e Bug 1736751 - Use swap in ThreadEventQueue::SetObserver. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D129031
2021-11-08 17:37:02 +00:00
Haiyang Xu cc103b52b2 Bug 1738927 - Create nsSimpleHashPropertyBag for non-main thread usage; r=xpcom-reviewers,janv,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D130258
2021-11-08 12:02:40 +00:00
Cristian Tuns 1aeac93d23 Backed out 5 changesets (bug 1738627) for causing xpcshell failures on test_ext_geckoProfiler_schema.js CLOSED TREE
Backed out changeset 42d385d7da97 (bug 1738627)
Backed out changeset edeb3a338954 (bug 1738627)
Backed out changeset 98f02e35134d (bug 1738627)
Backed out changeset 711daa6dd24b (bug 1738627)
Backed out changeset 49e12753a40c (bug 1738627)
2021-11-05 05:12:28 -04:00
Gijs Kruitbosch 95d7a0c935 Bug 1731049 - fix copy/move behaviour for remote paths on Win10 when copying without buffering returns errors, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D129973
2021-11-05 08:11:09 +00:00
Gerald Squelart 7fa084ae7c Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.

Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-05 05:52:28 +00:00
Gerald Squelart 5448bc6c6e Bug 1738627 - Store distinct profiling features of individual threads - r=canaltinova
This replaces the simple boolean ThreadRegistrationData::mIsBeingProfiled and its directly-dependent functions.

profiler_thread_is_being_profiled now takes an extra (currently optional) argument, to check if any of the given ThreadProfilingFeatures is currently live.

This is used to control:
- Periodic sampling of CPU utilization.
- Periodic sampling of stacks.
- Markers.

This patch doesn't change the observed behavior yet (i.e., instead of IsBeingProfiled being true or false, all thread profiling features are either all or nothing), but will be used for finer-grained control in later patches.

Differential Revision: https://phabricator.services.mozilla.com/D130008
2021-11-05 05:52:28 +00:00
Niklas Goegge 21b2b112f4 Bug 1724152: Replace GkRustUtils::GenerateUUID with nsID::GenerateUUID. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D129633
2021-11-04 08:55:46 +00:00
Agi Sferro 8c6612b46b Bug 1738966 - Pass in argc, argv in GreOmniPath. r=kershaw,valentin
A call to InitCommandLine was added in Bug 1727180 where gArgc and gArgv are
not defined.

The same bug also re-enabled some tests that appeared to pass (but really they
were just silently crashing), this patch fixes that too.

Differential Revision: https://phabricator.services.mozilla.com/D130223
2021-11-03 16:31:06 +00:00
Andreas Pehrson 006d770a5f Bug 1529581 - Introduce initHighResolutionWithNamedFuncCallback for nsITimer. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D129654
2021-11-03 15:23:27 +00:00
Kershaw Chang 34f9cb2633 Bug 1727180 - Call XRE_InitCommandLine for xpcshell, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D124890
2021-11-02 16:01:10 +00:00
Iulian Moraru 4008be6b81 Backed out 10 changesets (bug 1529581) for causing bp-hybrid build bustages on TestPacer. CLOSED TREE
Backed out changeset e7b7072ac90c (bug 1529581)
Backed out changeset 3c5d719c54db (bug 1529581)
Backed out changeset 39e2b3143ecd (bug 1529581)
Backed out changeset bd2122ea3cc3 (bug 1529581)
Backed out changeset 033cc341ad2e (bug 1529581)
Backed out changeset 8a8ee5055c0d (bug 1529581)
Backed out changeset 8c204db3e91d (bug 1529581)
Backed out changeset 142d94304c86 (bug 1529581)
Backed out changeset ac180bf89fd0 (bug 1529581)
Backed out changeset d0640f52161d (bug 1529581)
2021-11-02 17:53:17 +02:00
Andreas Pehrson b9f92d2e95 Bug 1529581 - Introduce initHighResolutionWithNamedFuncCallback for nsITimer. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D129654
2021-11-02 14:35:58 +00:00
Mozilla Releng Treescript 8a51c9e60d Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-11-01 16:01:18 +00:00
Toshihito Kikuchi a223b1cd95 Bug 1679741 - Not enable IOInterposer when Kingsoft Internet Security is installed. r=gerald
Kingsoft's modules are injected before `IOInterposer` and starts a thread that
calls `NtReadFile`.  It conflicts with the main thread where `IOInterposer` hooks
`NtReadFile`.

This patch is a mitigation until we make `IOInterposer` compatible with such
third-party injections (bug 1646804).

Differential Revision: https://phabricator.services.mozilla.com/D129876
2021-10-30 15:25:22 +00:00
Emilio Cobos Álvarez f85c48f96d Bug 1525107 - Implement <meta name=color-scheme>. r=dholbert
There are still tests failing because
https://bugzilla.mozilla.org/show_bug.cgi?id=1736034 hasn't been synced
yet.

Once that lands, they will still fail because we don't change
Canvas/CanvasText based on color-scheme, but that I'm attaching
patches for after this one.

Differential Revision: https://phabricator.services.mozilla.com/D129743
2021-10-29 19:58:24 +00:00
Riya c45c0f507e Bug 1730126 - Enable ESLint rule no-loss-of-precision. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D129336
2021-10-29 08:29:26 +00:00
Florian Quèze 1c3f80fe51 Bug 1738285 - move AUTO_PROFILE_FOLLOWING_RUNNABLE to its own header, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D129825
2021-10-28 20:35:06 +00:00
Doug Thayer 90b2905a58 Bug 1737501 - Allow contextmenu option on Windows SystemStatusBar r=mconley
We want to be able to have a different behavior for interactions with an entry
in the Windows system tray - specifically, we want to be able to open a window
on left click, and show a menu on right click. This patch allows us to control
this with a "contextmenu" attribute on the menu passed in to `AddItem`, and
receive a "systemstatusbarclick" event in the case of a left click.

Regarding tests, I don't know that we have a good way of testing this?
Suggestions are of course welcome here.

Differential Revision: https://phabricator.services.mozilla.com/D129413
2021-10-28 16:07:31 +00:00
Emilio Cobos Álvarez 5b31eea4fd Bug 1737676 - Use GTK menu radius on native context menus and panels. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D129439
2021-10-28 10:52:31 +00:00
Norisz Fay d1c70d553a Merge mozilla-central to autoland on a CLOSED TREE 2021-10-27 16:08:44 +03:00
Norisz Fay 51e8153e60 Backed out 5 changesets (bug 1736459) for causing Windows crashes (bug 1738034) a=backout
Backed out changeset c934eeb21692 (bug 1736459)
Backed out changeset 0b2da7db414c (bug 1736459)
Backed out changeset 798893f69a02 (bug 1736459)
Backed out changeset 2a8f412c4d08 (bug 1736459)
Backed out changeset 59eeaeafdf67 (bug 1736459)
2021-10-27 16:02:24 +03:00
Paul Bone 24067c4312 Bug 1737199 - Avoid some VLAs when using jemalloc_stats r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D129228
2021-10-27 08:46:51 +00:00
Mike Hommey 9f1048850f Bug 1736459 - Don't initialize env_logger when stdout/stderr don't exist on Windows. r=xpcom-reviewers,nika
This works around a regression in rust 1.56's libstd.

Differential Revision: https://phabricator.services.mozilla.com/D129571
2021-10-26 23:11:39 +00:00
Luca Greco b74268bdf7 Bug 1636629 - Permission check on stream filter parent creation. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128737
2021-10-26 16:44:10 +00:00
criss 5e97bafc4e Backed out changeset 27b73fdbb4a9 (bug 1737199) for causing bustages on memory/replace/logalloc/replay/Replay.cpp. CLOSED TREE 2021-10-26 13:00:29 +03:00
Paul Bone a4b9d48ced Bug 1737199 - Avoid some VLAs when using jemalloc_stats r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D129228
2021-10-26 05:22:05 +00:00
Iulian Moraru a946af09ec Backed out 2 changesets (bug 1636629) for causing xpcshell failures on test_ext_permissions_api.js. CLOSED TREE
Backed out changeset 9791a5dc84d8 (bug 1636629)
Backed out changeset 8ec39d08c9af (bug 1636629)
2021-10-25 22:17:27 +03:00
Luca Greco ab508f1a0e Bug 1636629 - Permission check on stream filter parent creation. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128737
2021-10-25 17:49:34 +00:00
Riya ac2ad7e7f2 Bug 1737032 - Removed traces of "remote XUL". r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129255
2021-10-25 11:00:47 +00:00
Tooru Fujisawa 69f169c510 Bug 1732168 - Part 2: Add ShutdownPhase after JS_ShutDown. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D126633
2021-10-22 21:03:52 +00:00
Tooru Fujisawa b724088e99 Bug 1732168 - Part 1: Remove unused ShutdownPhase::Last variant. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D126632
2021-10-22 21:03:52 +00:00
Chris Peterson cdadc6c4db Bug 1201994 - Replace mozalloc_abort() with MOZ_CRASH_UNSAFE() in NS_DebugBreak(). r=xpcom-reviewers,mccr8
mozalloc_abort() implies OOM. NS_DebugBreak() is used for other debug breaks and aborts. Calling MOZ_CRASH_UNSAFE(aMsg) instead of MOZ_CRASH() is unlikely to cause new OOM crashes because NS_DebugBreak() already did a lot of work to format aMsg and walk the stack before calling Abort() and MOZ_CRASH_UNSAFE(aMsg).

Differential Revision: https://phabricator.services.mozilla.com/D129116
2021-10-22 02:14:57 +00:00
Jens Stutte edc33dea57 Bug 1735129: Add thread's name in nsThread::Shutdown's SpinEventLoopUntil annotation. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D128270
2021-10-21 12:46:06 +00:00
Jens Stutte 40e243359c Bug 1735284: Add a check in nsThread::ShutdownInternal if the shutdown event could be dispatched. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D128167
2021-10-21 11:51:09 +00:00
Jens Stutte 55a8b2e138 Bug 1735129: Add thread-safe name getter to nsThread. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D128356
2021-10-21 11:51:08 +00:00