Steve Fink
938a635e60
Bug 1790873 - Use stderr directly in printf_stderr rather than opening a separate file r=glandium,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D166853
2024-01-11 02:09:30 +00:00
Stanca Serban
94288d3f1e
Backed out 5 changesets (bug 1794063, bug 1790873) for causing Linux spidermonkey builds bustages in Printer.h. CLOSED TREE
...
Backed out changeset c729aa80e73e (bug 1794063)
Backed out changeset 442a0de27b61 (bug 1790873)
Backed out changeset 6934f2978802 (bug 1790873)
Backed out changeset 296f6da7b6ed (bug 1790873)
Backed out changeset 01ddb562d770 (bug 1790873)
2024-01-10 01:18:55 +02:00
Steve Fink
fab3527be1
Bug 1790873 - Move printf_stderr() to mozglue so it can be used within js/src r=glandium,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D157354
2024-01-09 22:46:00 +00:00
Steve Fink
9abb6aa75c
Bug 1790873 - Use stderr directly in printf_stderr rather than opening a separate file r=glandium,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D166853
2024-01-09 22:45:59 +00:00
Stephen A Pohl
41a9498074
Bug 1684897: Ensure that xpcom/io/CocoaFileUtils.mm uses NSAutoReleasePools. r=mac-reviewers,mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D197607
2024-01-08 15:14:52 +00:00
Tomislav Jovanovic
30b4718430
Bug 1872969 - Avoid js keywords as argument names r=nika
...
Argument names in xpidl don't really matter, so this should be a no-op.
Differential Revision: https://phabricator.services.mozilla.com/D197640
2024-01-05 22:17:01 +00:00
Cristian Tuns
e0933655b5
Backed out changeset fb5ff84b29bf (bug 1684897) for causing multiple OS X failures CLOSED TREE
2024-01-05 17:25:54 -05:00
Stephen A Pohl
d41c3358de
Bug 1684897: Ensure that xpcom/io/CocoaFileUtils.mm uses NSAutoReleasePools. r=mac-reviewers,mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D197607
2024-01-05 19:30:22 +00:00
Oliver Medhurst
465206f92c
Bug 1793560 - Remove navigate-to CSP directive r=tschuster
...
It has never shipped after being implemented years ago,
and was removed from spec in September 2022:
https://github.com/w3c/webappsec-csp/pull/564
Now skipping navigate-to WPT tests. Filed issue upstream for their future removal:
https://github.com/w3c/webappsec-csp/issues/608
Consensus seems to agree to remove, will do in follow up bug once landed.
Also removed our own tests.
Added a hack in StartDocumentLoad as just removing the navigate-to check call
breaks some inhertiance, see comment for more info.
Differential Revision: https://phabricator.services.mozilla.com/D181630
2024-01-03 16:43:12 +00:00
Lee Salzman
b1d89237e5
Bug 1872327 - Don't leak runnables on shutdown in nsThreadPool. r=aosmond
...
It looks like this was an oversight in bug 1155059, that in one place an
already_AddRefed does not get converted to a RefPtr.
Differential Revision: https://phabricator.services.mozilla.com/D197374
2023-12-29 06:37:44 +00:00
Norisz Fay
4d542e529c
Backed out 3 changesets (bug 1872087, bug 1767344, bug 1872159) for causing gpu related leak failures CLOSED TREE
...
Backed out changeset 2c0ef884644c (bug 1872087)
Backed out changeset 0cf50076e7ee (bug 1872159)
Backed out changeset a4148511920c (bug 1767344)
2023-12-28 21:24:33 +02:00
Lee Salzman
6862c5ec10
Bug 1767344 - Don't leak runnables on shutdown. r=aosmond
...
It looks like this was an oversight in bug 1276549, that in one place an
already_AddRefed does not get converted to a RefPtr.
Differential Revision: https://phabricator.services.mozilla.com/D197374
2023-12-28 16:31:06 +00:00
Bas Schouten
d89e0f03f2
Bug 1869835 - Part 4: Convert TaskMarker to the new MarkerSchema so it gets full ETW support. r=smaug,canaltinova
...
Differential Revision: https://phabricator.services.mozilla.com/D196375
2023-12-21 18:17:42 +00:00
Bas Schouten
020f80b429
Bug 1869835 - Part 3: Convert CC/GC markers to the new MarkerSchema so it gets full ETW support. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D196374
2023-12-21 18:17:41 +00:00
Andrew Osmond
e5b44ceaaa
Bug 1870957 - Part 2. Allow nsExpirationTracker to be created on any thread. r=gfx-reviewers,lsalzman
...
This patch allows us to create nsExpirationTracker objects off the main
thread, with the caveat that memory pressure events should/must be
handled directly by the creator rather than managed internally. With
that in mind, the threading assertions have also been updated to ensure
it is always the owning thread that accesses the tracker.
Differential Revision: https://phabricator.services.mozilla.com/D189527
2023-12-20 13:01:19 +00:00
Paul Bone
8e5cc96b8d
Bug 1870954 - Only collect PHC telemetry if PHC is/was enabled r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D196931
2023-12-20 00:25:38 +00:00
Randell Jesup
f53264b153
Bug 1869631 - xpcom nsCategoryManager thread-safety annotations r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D130577
2023-12-19 23:27:36 +00:00
Randell Jesup
b92a5dffc6
Bug 1746471: xpcom nsCategoryManager cleanup r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D141500
2023-12-19 23:26:28 +00:00
Gabriele Svelto
2948adb94c
Bug 1869457 - Don't attempt to compute low-memory conditions if we don't know how much memory is in the system r=KrisWright
...
Differential Revision: https://phabricator.services.mozilla.com/D196293
2023-12-19 20:29:45 +00:00
Noemi Erli
7b97e142d0
Backed out 12 changesets (bug 1795296, bug 1855742) as requested by aosmond a=backout
...
Backed out changeset 05b607c3bbe6 (bug 1795296)
Backed out changeset 7704291111b4 (bug 1855742)
Backed out changeset db60743295fb (bug 1855742)
Backed out changeset 8ed51e7d1c98 (bug 1855742)
Backed out changeset 40cba2c51b1c (bug 1855742)
Backed out changeset d4bfe15c07ec (bug 1855742)
Backed out changeset 2061271c53e8 (bug 1855742)
Backed out changeset 5b2a89a61f7f (bug 1855742)
Backed out changeset 2028c7018977 (bug 1855742)
Backed out changeset 13e806495fb8 (bug 1855742)
Backed out changeset 4bfa0d4913a2 (bug 1855742)
Backed out changeset 711b3f47e380 (bug 1855742)
2023-12-19 17:25:55 +02:00
Andrew Osmond
d8fe0cd605
Bug 1855742 - Part 2. Allow nsExpirationTracker to be created on any thread. r=gfx-reviewers,lsalzman
...
This patch allows us to create nsExpirationTracker objects off the main
thread, with the caveat that memory pressure events should/must be
handled directly by the creator rather than managed internally. With
that in mind, the threading assertions have also been updated to ensure
it is always the owning thread that accesses the tracker.
Differential Revision: https://phabricator.services.mozilla.com/D189527
2023-12-19 05:10:31 +00:00
Olli Pettay
7acd483571
Bug 1870008 - make high rate mode handling dynamic, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D196591
2023-12-18 15:40:09 +00:00
Olli Pettay
c91e29e59c
Bug 1869298 - try to insert normal priority main thread tasks to the end, r=bas
...
Differential Revision: https://phabricator.services.mozilla.com/D196122
2023-12-18 12:26:00 +00:00
serge-sans-paille
870a5f2055
Bug 1869497 - Introduce MOZ_NAKED to centralize all attributes we expect from naked r=glandium,win-reviewers,mhowell
...
In the fx codebase, we tend to use __attribute__((naked)) for plain
assembly functions with a C interface. Instrumenting these functions can
mess up this assembly, so we conservatively also want to prevent
instrumentation.
Differential Revision: https://phabricator.services.mozilla.com/D196154
2023-12-15 09:26:48 +00:00
Gijs Kruitbosch
c6f003d117
Bug 1858409 - only show autofill/services menus when appropriate, r=mac-reviewers,reusable-components-reviewers,mstange,emilio,tgiles
...
Differential Revision: https://phabricator.services.mozilla.com/D196296
2023-12-14 08:27:56 +00:00
ogiorgis
111705f5fd
Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol
...
Differential Revision: https://phabricator.services.mozilla.com/D196268
2023-12-13 18:32:20 +00:00
Emilio Cobos Álvarez
de8a41c001
Bug 1869299 - Expose a media query for known gtk theme families. r=rmader
...
This will allow to easily tweak the front-end for selected / known-good
themes.
Differential Revision: https://phabricator.services.mozilla.com/D196151
2023-12-13 12:41:18 +00:00
Joel Maher
009710fe6f
Bug 1869430 - Batch 19.2 convert python unittest .ini -> .toml. r=gbrown,taskgraph-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D196124
2023-12-12 17:40:03 +00:00
Paul Bone
62b5d500fd
Bug 1863867 - Add expriment targeting based on archiecture bits r=barret
...
Differential Revision: https://phabricator.services.mozilla.com/D193159
2023-12-12 11:18:23 +00:00
Randell Jesup
65d35bfd22
Bug 1869190: Add threadsafety annotations to Bench.cpp r=xpcom-reviewers,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D195985
2023-12-11 17:09:04 +00:00
Molly Howell
9b1bc951f4
Bug 1863583 - Add disablePictureInPicture attribute to HTMLVideoElement WebIDL. r=webidl,emilio,mconley
...
Differential Revision: https://phabricator.services.mozilla.com/D195466
2023-12-11 16:27:21 +00:00
Paul Bone
ae1c0eff5f
Bug 1864828 - pt 2. Add a pref for PHC's minimum RAM size r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D194363
2023-12-11 11:01:33 +00:00
Jens Stutte
30b28c264e
Bug 1839051 - Remove include nsQuickSort.h from some more files. r=emilio
...
Depends on D182724
Differential Revision: https://phabricator.services.mozilla.com/D182731
2023-12-11 06:53:28 +00:00
Jens Stutte
95be758f8e
Bug 1839051 - Use nsTArray::Sort for Sort and have also StableSort in nsCOMArray. r=necko-reviewers,kershaw,emilio,places-reviewers,mak
...
Depends on D181344
Differential Revision: https://phabricator.services.mozilla.com/D181889
2023-12-11 06:53:26 +00:00
Jens Stutte
989d33f031
Bug 1839051 - Use std::sort for nsTArray and deprecate NS_QuickSort. r=emilio,nika,janv,dom-storage-reviewers
...
Until now we used our own, well-aged C-style implementation of quick sort, based on code from 1992/93. Apart from being old (which is not bad as such), this code had some
disadvantages, namely:
- It was not typesafe and invocations could not be optimized by inlining.
- [Quick Sort](https://en.wikipedia.org/wiki/Quicksort ) has a worst case performance of O(n<sup>2</sup>).
- Quick Sort can recurse deeply and thus cause stack overflows.
- On Windows, [Control Flow Guard](https://learn.microsoft.com/en-us/windows/win32/secbp/control-flow-guard ) inspects any function invocation via function pointers to check if the called function was known at compile time. This comes with a [notable overhead](https://bugzilla.mozilla.org/show_bug.cgi?id=1842079 ) when calling the compare function repeatedly.
`std::sort` and `std::stable_sort` are preferred and have an optimal, guaranteed worst case performance.
Differential Revision: https://phabricator.services.mozilla.com/D181339
2023-12-11 06:53:25 +00:00
Matthew Gaudet
b773ad56c7
Bug 1866385 - Re-enqeue suppressed microtasks when destroying SavedMicroTaskQueue r=arai
...
I have yet to be able to produce an automated test for things under the control of
nsAutoSyncOperation; this patch has been verified locally using the following STR,
modified from [1].
STR for Mac
1. Go to https://debugger-crash-before-print.glitch.me/
2. Open debugger
3. Press Command + P to trigger print for the page (This should cause the debugger to pause on line 2)
4. Go to the console, and enter Promise.resolve(10).then(() => {}).
5. Resume execution and cancel the print preview.
5. Tab Crashes
[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1849675#c3
Differential Revision: https://phabricator.services.mozilla.com/D195900
2023-12-08 21:56:02 +00:00
Mike Hommey
619672a8e4
Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D195157
2023-12-08 10:43:59 +00:00
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
Adam Vandolder
23775aed9b
Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-07 21:27:09 +00:00
Olli Pettay
07c9e45ef3
Bug 1868744 - If JS engine triggered a GC slice, don't trigger another too soon from CCGCScheduler, r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D195755
2023-12-07 12:34:33 +00:00
Kevin Hu
2f77eb7933
Bug 1868301 - Fix clippy warnings in xpcom_macros/src/lib.rs. r=xpcom-reviewers,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D195768
2023-12-07 12:13:11 +00:00
Iulian Moraru
ec88b58413
Backed out 6 changesets (bug 1712140) for causing sanitizer failures on nsHtml5TreeBuilder.cpp. CLOSED TREE
...
Backed out changeset b374469160e9 (bug 1712140)
Backed out changeset dfc44cccff32 (bug 1712140)
Backed out changeset 3a35e1401130 (bug 1712140)
Backed out changeset a93481858c38 (bug 1712140)
Backed out changeset a861fd445f56 (bug 1712140)
Backed out changeset dc1dc389f2dc (bug 1712140)
2023-12-07 08:16:23 +02:00
Randell Jesup
24e3c5ec39
Bug 1862557: Add LongTask profiler marker generation to SocketThread r=necko-reviewers,kershaw
...
Includes separate markers for OnSocketReady() calls after Poll()
Differential Revision: https://phabricator.services.mozilla.com/D192533
2023-12-07 04:15:44 +00:00
Randell Jesup
e47f68f60e
Bug 1862556: Allow LongTask markers to be generated for any nsThread r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D192532
2023-12-07 04:15:44 +00:00
Adam Vandolder
df73a82637
Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-06 22:50:48 +00:00
Cristian Tuns
d7a07e4b57
Backed out 2 changesets (bug 1862556, bug 1862557) for causing build bustages in nsThreadManager.cpp CLOSED TREE
...
Backed out changeset 4ef47a21279a (bug 1862557)
Backed out changeset 2573ea9f377b (bug 1862556)
2023-12-06 17:33:12 -05:00
Randell Jesup
c645765422
Bug 1862556: Allow LongTask markers to be generated for any nsThread r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D192532
2023-12-06 18:38:49 +00:00
Emilio Cobos Álvarez
5985762903
Bug 1868411 - Remove -moz-non-native-content-theme media feature. r=jwatt
...
Non-native theme shipped a while ago. Let's make our UA sheet
consistent.
Differential Revision: https://phabricator.services.mozilla.com/D195567
2023-12-06 10:58:09 +00:00
Vincent Hilla
0c8b54eb5e
Bug 1589554 - Part 1: Screen Wake Lock boilerplate. r=dom-core,smaug,emilio,edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D189508
2023-12-05 23:58:06 +00:00
Stanca Serban
88e5c5662f
Backed out 6 changesets (bug 1712140) for causing Linux related wpt failures in nsHtml5TreeBuilder.cpp. CLOSED TREE
...
Backed out changeset 3d799b386f3e (bug 1712140)
Backed out changeset 2ed53d545d6d (bug 1712140)
Backed out changeset 6f50077df42a (bug 1712140)
Backed out changeset e7c5449482f9 (bug 1712140)
Backed out changeset 5490dad148ef (bug 1712140)
Backed out changeset 50828058065e (bug 1712140)
2023-12-06 00:18:38 +02:00