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

533 Коммитов

Автор SHA1 Сообщение Дата
Logan Rosen 141305b4e4 Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre
#ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D193007
2023-12-08 04:26:45 +00:00
Ray Kraesig b442fec76f Bug 1858225 - [3/9] introduce "local" async-filepicker implementation functions r=handyman,win-reviewers,mhowell
Introduce functions which create and invoke the Windows file-picker in a
separate thread. This thread is created with a new single-threaded COM
apartment to avoid implicitly creating a nested modal loop on the main
STA thread.

Technically, no functional changes: these functions aren't actually
invoked yet. (That will occur in an upcoming commit.)

Differential Revision: https://phabricator.services.mozilla.com/D193735
2023-12-01 05:03:18 +00:00
Cosmin Sabou c3f8e90d2c Backed out 11 changesets (bug 1858225) for causing build bustages on nsFilePicker.cpp. CLOSED TREE
Backed out changeset 808f68da4438 (bug 1858225)
Backed out changeset e6f456e40dda (bug 1858225)
Backed out changeset d1efbf517c7e (bug 1858225)
Backed out changeset 61c8a62b47c5 (bug 1858225)
Backed out changeset 9b1f0d37b74b (bug 1858225)
Backed out changeset f57ac4a387f2 (bug 1858225)
Backed out changeset 9b2c6eaf137e (bug 1858225)
Backed out changeset 6aacb8fde7e1 (bug 1858225)
Backed out changeset 2eb38cba55d6 (bug 1858225)
Backed out changeset c31dfa5f9be5 (bug 1858225)
Backed out changeset 82b7b851c429 (bug 1858225)
2023-12-01 00:18:29 +02:00
Ray Kraesig 3f73215354 Bug 1858225 - [10/9] add thread name to permitted-threads list. r=bustage-fix CLOSED TREE
The async file-picker creates a new thread, but the thread name was not
added to the permitted-thread-names list. Amended.

Differential Revision: https://phabricator.services.mozilla.com/D195170
2023-11-30 21:20:00 +00:00
Nicolas Guichard 67539877a9 Bug 1490144 - Mozsearch indexer: remove pretty field from super/override relationships. r=asuth
This is the update from https://github.com/mozsearch/mozsearch/pull/672.
Mozsearch doesn't expect the pretty field on super/override
relationships anymore. It doesn't hurt being there, but let's clean it
up anyway.

Differential Revision: https://phabricator.services.mozilla.com/D194524
2023-11-27 20:03:10 +00:00
Mike Hommey 71ac4d413d Bug 1850307 - Avoid truncation in TestSprintfLiteral.cpp. r=nika
Clang trunk started to warn about uses of snprintf that always lead to
truncation. The warning is hit in the test, but it's not really an
interesting part of the test, so prevent clang from warning by making
the format string smaller.

Differential Revision: https://phabricator.services.mozilla.com/D186990
2023-08-28 20:53:30 +00:00
Botond Ballo 282ac5060f Bug 1836695 - Pick up latest HeuristicResolver updates from llvm trunk. r=andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D181719
2023-06-23 01:42:55 +00:00
Botond Ballo 6c66902ec0 Bug 1835696 - Handle DependentNameTypeLoc in MozsearchIndexer. r=asuth DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D179402
2023-05-29 23:48:49 +00:00
Botond Ballo 9af5a6e19a Bug 1835694 - Factor out a helper function for handling heuristic results in MozsearchIndexer. r=asuth DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D179401
2023-05-29 23:43:42 +00:00
Botond Ballo 11e68ffe93 Bug 1621789 - Handle DependentScopeDeclRefExpr in MozsearchIndexer. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D179326
2023-05-29 16:16:47 +00:00
Botond Ballo 2d6051aa5b Bug 1834859 - Handle fields in VisitCXXDependentScopeMemberExpr. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D179182
2023-05-26 03:37:25 +00:00
Mike Hommey ba66f762bd Bug 1834937 - Remove test that relies on void* deref in TestCanRunScript.cpp. r=andi
clang 17 is making void* deref a non-disablable error, and this tests
relies on the deref "error" being disablable. Arranging things to make
it not deref makes not different from test_ref_9, so remove it.

Differential Revision: https://phabricator.services.mozilla.com/D179031
2023-05-25 19:19:22 +00:00
Botond Ballo a05bbb7251 Bug 1833272 - Handle templated heuristic results in VisitCXXDependentScopeMemberExpr. r=asuth DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D178258
2023-05-22 19:14:10 +00:00
Botond Ballo 79288aaf4a Bug 1833072 - Use clangd's full HeuristicResolver implementation. r=asuth,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D178122
2023-05-22 08:26:14 +00:00
Botond Ballo db7f25be25 Bug 1828223 - Implement heuristic resolution of CXXDependentScopeMemberExpr. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D177945
2023-05-14 23:44:28 +00:00
Botond Ballo e5c7fd1a64 Bug 1799579 - Handle OverloadExpr in MozSearchIndexer. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D175207
2023-04-12 16:34:23 +00:00
Masayuki Nakano 28ae9ee2e1 Bug 1826036 - Make CanRunScriptChecker treat references as safe if initialized with safe things r=andi
For preparation of bug 1620312, CanRunScriptChecker needs to allow references
which are initialized with safe instance(s) to run script.  Unfortunately,
this does not allow references which are initialized with safe references
recursively because it requires more complicated checks but it must be not
used in many places.

Differential Revision: https://phabricator.services.mozilla.com/D174436
2023-04-04 05:07:33 +00:00
serge-sans-paille acc75d964c Bug 1826049 - Make toolkit/components/url-classifier/tests/gtest buildable outside of a unified build environment r=andi
Depends on D174432

Differential Revision: https://phabricator.services.mozilla.com/D174433
2023-04-03 20:39:58 +00:00
Andi-Bogdan Postelnicu 38a4785b34 Bug 1798305 - for clang-tidy do not cache attributes using a matcher since incomplete definitions may occur. r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D169821
2023-03-27 16:04:39 +00:00
Andi-Bogdan Postelnicu 10f49d4180 Bug 1660405 - Move away from mozilla::IsNaN in favor of std::isnan. r=nbp,media-playback-reviewers,sergesanspaille,padenot
Differential Revision: https://phabricator.services.mozilla.com/D173035
2023-03-22 11:35:33 +00:00
Stanca Serban e31a178029 Backed out 7 changesets (bug 1660405) for causing bustages on Linux x64 opt. CLOSED TREE
Backed out changeset ad1a5f59214f (bug 1660405)
Backed out changeset a39e95f0aafe (bug 1660405)
Backed out changeset 48629ee0d70d (bug 1660405)
Backed out changeset 8419b99aab60 (bug 1660405)
Backed out changeset 535cc12c8bed (bug 1660405)
Backed out changeset e27052da4927 (bug 1660405)
Backed out changeset 11b0f9cf8091 (bug 1660405)
2023-03-22 13:05:53 +02:00
Andi-Bogdan Postelnicu a5d28acdd6 Bug 1660405 - Move away from mozilla::IsNaN in favor of std::isnan. r=nbp,media-playback-reviewers,sergesanspaille,padenot
Differential Revision: https://phabricator.services.mozilla.com/D173035
2023-03-22 09:27:56 +00:00
Andreas Pehrson 07d7c2dcab Bug 1800213 - Allow the existing (but now as nsThreads) VideoCapture and DesktopCapture threads. r=KrisWright
VideoCapture used to be a base::Thread called VideoCapture.
DesktopCapture used to be a rtc::PlatformThread/PlatformUIThread called ScreenCaptureThread.

Differential Revision: https://phabricator.services.mozilla.com/D166061
2023-02-28 14:32:42 +00:00
John Lin 579e5d2ac3 Bug 1810817 - p7: implement CDMProxy for MF CDM and create/init it in MediaKeys. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D167061
2023-02-07 03:43:51 +00:00
Csoregi Natalia 7468edeb58 Backed out 7 changesets (bug 1810817) for causing assertion failures on MFCDMParent.cpp. CLOSED TREE
Backed out changeset cfbe0be01c67 (bug 1810817)
Backed out changeset eedaee18c125 (bug 1810817)
Backed out changeset 07bcec895e6b (bug 1810817)
Backed out changeset 4be39a7ba24f (bug 1810817)
Backed out changeset e16e293637cf (bug 1810817)
Backed out changeset 0c66474f6010 (bug 1810817)
Backed out changeset 3c7aa682681f (bug 1810817)
2023-02-05 17:56:58 +02:00
John Lin bf8b1c29dd Bug 1810817 - p7: implement CDMProxy for MF CDM and create/init it in MediaKeys. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D167061
2023-02-05 03:40:03 +00:00
Mike Hommey 1248412d66 Bug 1814134 - Fix clang plugin to build with recent clang trunk. r=firefox-build-system-reviewers,ahochheiden
Clang trunk recently removed Optional (replaced with std::optional).

Differential Revision: https://phabricator.services.mozilla.com/D168406
2023-01-31 17:18:03 +00:00
Mike Hommey 7e97be654f Bug 1806040 - Preserve host ldflags from configure when building clang-plugin. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D165247
2022-12-28 21:01:59 +00:00
Mike Hommey 9f8177d6cb Bug 1806771 - Adjust searchfox plugin to clang upstream changes. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D165266
2022-12-21 06:48:57 +00:00
Ray Kraesig b342917fc2 Bug 1772908 - [5/6] Implement WinHandleWatcher r=xpcom-reviewers,nika
Implement a version of Chromium's `base::ObjectWatcher` which does not
rely on the Chromium MessageLoop.

Differential Revision: https://phabricator.services.mozilla.com/D159562
2022-12-13 16:38:06 +00:00
Mike Hommey a1929365e6 Bug 1803471 - Adjust clang plugin to upstream changes on trunk. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D163538
2022-12-01 23:59:01 +00:00
Marco Castelluccio ecb54845b0 Bug 1790816 - Reformat build/ with isort. r=linter-reviewers,ahal DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162668
2022-11-24 17:23:47 +00:00
Chris Peterson a1ad17215e Bug 1800294 - clang-plugin: expect constexpr constructor error when compiling as C++17 but not C++20. r=firefox-static-analysis-reviewers,andi
C++20 allows non-trivial constexpr constructors, so this BadUnfortunateError check passes unexpectedly when compiled as C++20:

> error: 'error' diagnostics expected but not seen: build/clang-plugin/tests/TestTrivialCtorDtor.cpp Line 81: class 'BadUnfortunateError' must have trivial constructors and destructors

This constexpr constructor check was added in bug 1226376.

Differential Revision: https://phabricator.services.mozilla.com/D161951
2022-11-15 03:15:13 +00:00
Butkovits Atila 206b028a0a Backed out 2 changesets (bug 1772908) for causing 1799741. CLOSED TREE
Backed out changeset 3b84539c5aeb (bug 1772908)
Backed out changeset 8e25782bd2b9 (bug 1772908)
2022-11-08 23:40:05 +02:00
Ray Kraesig b91ab1da24 Bug 1772908 - [5/6] Implement WinHandleWatcher r=xpcom-reviewers,nika
Implement a version of Chromium's `base::ObjectWatcher` which does not
rely on the Chromium MessageLoop.

Differential Revision: https://phabricator.services.mozilla.com/D159562
2022-11-04 21:04:19 +00:00
Ray Kraesig e6891605ce Bug 1772908 - [3/6] Consistently stop UpdateWatcher thread r=application-update-reviewers,bytesized
The UpdateWatcher thread might not be shut down if `ProcessUpdates`
returned an error. Rework `StartStagedUpdate` so that the thread will be
shut down after any early return.

More cosmetically, rename the updater thread to "Updater Thread": it's
not limited to being a watcher-thread, but is also used for the initial
update checks.

Differential Revision: https://phabricator.services.mozilla.com/D159560
2022-11-04 21:04:18 +00:00
Ray Kraesig 76d7055093 Bug 1791682 - [3/3] Remove thread names only used in tests r=andi
Remove all the thread names only used in tests from ThreadAllows.txt.
Instead, list the test files that create them in ThreadFileAllows.txt.

Differential Revision: https://phabricator.services.mozilla.com/D157762
2022-09-30 00:11:22 +00:00
Ray Kraesig 55dd66f10d Bug 1791682 - [2/3] Allow multiple path-elements in ThreadFileAllows.txt r=andi
Filenames alone do not uniquely identify files in the Mozilla codebase.
Allow specification of path-elements alongside filenames.

Differential Revision: https://phabricator.services.mozilla.com/D157761
2022-09-30 00:11:22 +00:00
Ray Kraesig 99f55ae3f2 Bug 1791682 - [1/3] Allow comments in thread-checker definition files r=andi
Expand the processor for ThreadAllows.txt and ThreadFileAllows.txt to
also recognize and permit comments prefixed by `#`.

Differential Revision: https://phabricator.services.mozilla.com/D157760
2022-09-30 00:11:21 +00:00
Sandor Molnar 864b7a93a2 Backed out 3 changesets (bug 1791682) for causing spider monkey failures. CLOSED TREE
Backed out changeset c7e6bf99e7f7 (bug 1791682)
Backed out changeset 5be243995b2f (bug 1791682)
Backed out changeset a2e1831539e7 (bug 1791682)
2022-09-24 02:53:46 +03:00
Ray Kraesig f88d2cb267 Bug 1791682 - [3/3] Remove thread names only used in tests r=andi
Remove all the thread names only used in tests from ThreadAllows.txt.
Instead, list the test files that create them in ThreadFileAllows.txt.

Differential Revision: https://phabricator.services.mozilla.com/D157762
2022-09-23 23:11:14 +00:00
Ray Kraesig c2e8c8663e Bug 1791682 - [2/3] Allow multiple path-elements in ThreadFileAllows.txt r=andi
Filenames alone do not uniquely identify files in the Mozilla codebase.
Allow specification of path-elements alongside filenames.

Differential Revision: https://phabricator.services.mozilla.com/D157761
2022-09-23 23:11:13 +00:00
Ray Kraesig 06b7e76be7 Bug 1791682 - [1/3] Allow comments in thread-checker definition files r=andi
Expand the processor for ThreadAllows.txt and ThreadFileAllows.txt to
also recognize and permit comments prefixed by `#`.

Differential Revision: https://phabricator.services.mozilla.com/D157760
2022-09-23 23:11:13 +00:00
Florian Quèze 00e15b9118 Bug 965392 - Use a timer instead of a condvar to run the BHMgr Monitor thread, r=dthayer.
Whenever some activity starts on the thread we are monitoring, we create a timer that targets the BHMgr Monitor thread (where we capture hang stacks).
Whenever the activity stops, we cancel the timer.
In the past, this would have been very expensive because the Timer thread used to wake-up every time a timer was added or removed. This is no longer true, as we optimized the wake-up behavior of the timer thread to only wake-up when it actually needs to.

Differential Revision: https://phabricator.services.mozilla.com/D154141
2022-09-20 17:42:32 +00:00
Ryan VanderMeulen e3ba9c8bc0 Backed out changeset 9ef37c6da56b (bug 965392) for suspicion of causing bug 1784591 and bug 1786242. 2022-08-31 10:35:46 -04:00
Florian Quèze a9dcdab649 Bug 965392 - Use a timer instead of a condvar to run the BHMgr Monitor thread, r=dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D154141
2022-08-12 12:35:18 +00:00
Mike Hommey b415d31f15 Bug 1783374 - Adjust RefCountedInsideLambdaChecker to clang trunk changes. r=andi
`getCapturedVar()` now returns a `ValueDecl`.
(127bf44385)

Differential Revision: https://phabricator.services.mozilla.com/D154046
2022-08-10 08:14:06 +00:00
Kagami Sascha Rosylight 16ea24f6cc Bug 1769290 - Part 26: Emit errors from JSHandleRootedTypedefChecker r=andi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D151842
2022-08-09 14:13:30 +00:00
Mike Hommey 8a15bb728a Bug 1779346 - Fix NoPrincipalGetURI matchers. r=andi
A change in LLVM trunk (that was backed out but will reland later on trunk)
unveiled a longstanding issue in the NoPrincipalGetURI matcher, which
would make it fail to catch issues under some conditions.

Differential Revision: https://phabricator.services.mozilla.com/D152359
2022-07-22 07:59:35 +00:00
sotaro b9e60f30de Bug 1778431 - Allocate canvas render thread for out-of-process WebGL r=gfx-reviewers,aosmond
If dedicated thread for out-of-process WebGL exists, compositor thread tasks are not delayed by WebGL tasks.

And Bug 1712486 requests that WebGL run on non-compositor thread.

Differential Revision: https://phabricator.services.mozilla.com/D151210
2022-07-08 04:02:41 +00:00