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

23411 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch 64c3f31a1f Bug 1913427 - add documentation for XPCOMUtils into firefox-source-docs, r=xpcom-reviewers,frontend-codestyle-reviewers,nika,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D219320
2024-08-20 13:29:56 +00:00
Ray Kraesig 8bb6f203e5 Bug 1909898 [1/1] - Skip checking initialization if check-function is not found r=yjuglaret
In late beta and later, `xul.dll` does notexport the check function, and
`firefox.exe` does not try to load it. Unfortunately, a partial update
can result in these two being mismatched -- and does so often enough to
be a beta topcrash.

Suppress this crash by checking whether the diagnostic function is
actually exported and found, rather than asserting that it must be.

(This patch is explicitly just a bandaid, and doesn't address the
underlying issue of the two binaries being mismatching versions.)

Differential Revision: https://phabricator.services.mozilla.com/D218798
2024-08-19 16:19:25 +00:00
Jens Stutte 9864e8e2bc Bug 1913357 - Make GetDiskSpaceAvailable return the right error in case of GetParent failing. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D219277
2024-08-17 11:30:59 +00:00
Emilio Cobos Álvarez 4e8cf2fc99 Bug 1913104 - Remove X11 mask code. r=stransky,desktop-theme-reviewers,dao
It's only used in non-compositing WMs, to implement popup transparency,
and it's completely untested.

Instead, do not draw shadows and rounded corners on those WMs.

Differential Revision: https://phabricator.services.mozilla.com/D219141
2024-08-16 12:48:28 +00:00
Mike Hommey fc84b1d87d Bug 1910796 - Use deflate API directly in nsGZFileWriter. r=xpcom-reviewers,nika
libz-rs-sys doesn't have the gz* API, and we can trivially replace it
with plain deflate.

Differential Revision: https://phabricator.services.mozilla.com/D218178
2024-08-15 11:33:39 +00:00
Mike Hommey a7eccd1ef7 Bug 1910796 - Remove nsGZFileWriter append mode. r=xpcom-reviewers,nika
It is unused and doesn't make much sense (who concatenates a gzip file
after other data?).

Differential Revision: https://phabricator.services.mozilla.com/D218600
2024-08-15 11:33:38 +00:00
Greg Stoll 26741c9658 Bug 1889839 part 1: restructure TelemetryFixture to make it impossible for mCleanGlobal to be GC'd r=yjuglaret
Differential Revision: https://phabricator.services.mozilla.com/D219093
2024-08-14 15:18:26 +00:00
Sandor Molnar 6822287be5 Backed out 2 changesets (bug 1889839) for causing build bustages @ xpcom/tests/gtest/TestAvailableMemoryWatcherMac.cpp CLOSED TREE
Backed out changeset ba6f1bae31b9 (bug 1889839)
Backed out changeset 18a7ff23e6f4 (bug 1889839)
2024-08-14 17:03:09 +03:00
Greg Stoll 646b8567b9 Bug 1889839 part 1: restructure TelemetryFixture to make it impossible for mCleanGlobal to be GC'd r=yjuglaret
Differential Revision: https://phabricator.services.mozilla.com/D219093
2024-08-14 12:54:11 +00:00
Adam Brouwers-Harries 95b0970844 Bug 1883903 - Try to get a profile when we encounter a hang r=florian,profiler-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D214842
2024-08-14 12:11:43 +00:00
Iulian Moraru 663e005613 Backed out 3 changesets (bug 1910796) for causing build bustages and mass test failures. CLOSED TREE
Backed out changeset bbcbbe6b247d (bug 1910796)
Backed out changeset adde3a9ee0f7 (bug 1910796)
Backed out changeset 2aac134f145f (bug 1910796)
2024-08-13 19:29:38 +03:00
Mike Hommey 15306bdb2e Bug 1910796 - Use deflate API directly in nsGZFileWriter. r=xpcom-reviewers,nika
libz-rs-sys doesn't have the gz* API, and we can trivially replace it
with plain deflate.

Differential Revision: https://phabricator.services.mozilla.com/D218178
2024-08-13 15:03:41 +00:00
Mike Hommey 9e7d0f55d3 Bug 1910796 - Remove nsGZFileWriter append mode. r=xpcom-reviewers,nika
It is unused and doesn't make much sense (who concatenates a gzip file
after other data?).

Differential Revision: https://phabricator.services.mozilla.com/D218600
2024-08-13 15:03:41 +00:00
Iulian Moraru 9121bbe033 Backed out changeset 33dd3a1b2573 (bug 381283) for causing crashes in the latest nightly. CLOSED TREE 2024-08-11 03:22:12 +03:00
Yanis Lagha fe71af1a1c Bug 381283 - Prevent macOS startup crashes on case sensitive file systems. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D218895
2024-08-09 20:53:17 +00:00
Justin Link e1cff512da Bug 1912367: Have AtomCache check hashes before doing full string compare r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D218900
2024-08-09 16:30:40 +00:00
Nika Layzell 008c780b6b Bug 1908725 - Part 1: Introduce GeckoChildID, r=glandium,ipc-reviewers,mccr8
The new GeckoChildID type introduced in this patch is inspired by the existing
ContentParentID type used by ContentParent, but is currently distinct. It is
supported by all process types at the GeckoChildProcessHost level and can be
read for the current process from anywhere.

As this type is similar in many ways to the process type, and should be
available as early as possible within child processes, this was added alongside
the GeckoProcessType value within mozglue to make that easier to do.

The type was chosen to be an int32_t to make it feel similar to a PID, which we
currently use for process identity comparisons across the codebase. The
intention is for GeckoChildID to be preferred for these within-gecko checks, as
these IDs will not be re-used and can be known earlier during child process
creation.

Differential Revision: https://phabricator.services.mozilla.com/D217117
2024-08-07 20:39:39 +00:00
Peter Van der Beken 09adc58eb7 Bug 1911817 - PromiseRejectionEvent should store promise as object. r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D218754
2024-08-07 16:57:27 +00:00
Sean 3799274f28 Bug 1890028 - Display Server Error message when server returns HTTP 500 and unusual content-type r=kershaw,fluent-reviewers,necko-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D216978
2024-08-07 13:31:02 +00:00
Hiroyuki Ikezoe a0e0c6ed8c Bug 1831649 - Parse `interactive-widget`. r=botond,emilio
It's defined in the CSS viewport spec.
https://drafts.csswg.org/css-viewport/#interactive-widget-section

Differential Revision: https://phabricator.services.mozilla.com/D204163
2024-08-06 07:46:20 +00:00
Iulian Moraru 5c137ce38a Backed out changeset 10913ecf6412 (bug 1883903) for causing xpcshell failures on test_feature_posix_signals.js. 2024-08-05 22:50:15 +03:00
Adam Brouwers-Harries d2b6988818 Bug 1883903 - Try to get a profile when we encounter a hang r=florian,profiler-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D214842
2024-08-05 17:06:06 +00:00
Alexandre Lissy a03d3e4c15 Bug 1909125 - Fix FDs situation to ensure prefs map will not collide r=nika
Differential Revision: https://phabricator.services.mozilla.com/D218181
2024-08-05 08:11:45 +00:00
Ashley Zebrowski de8b344ea1 Bug 1800882 - Implement HTMLVideoElement.requestVideoFrameCallback. r=webidl,media-playback-reviewers,emilio,ErichDonGubler,padenot
See https://wicg.github.io/video-rvfc/ for standard details.

Differential Revision: https://phabricator.services.mozilla.com/D216159
2024-08-01 20:12:22 +00:00
Stanca Serban a72637f99d Bug 1910698 - Fix one xpcshell caller I missed. 2024-08-01 23:37:34 +03:00
Emilio Cobos Álvarez e1ad6294bf Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
Afaict the source lines are not exposed anywhere in the UI.

Differential Revision: https://phabricator.services.mozilla.com/D218115
2024-08-01 17:12:48 +00:00
Sandor Molnar 5759de7066 Backed out 3 changesets (bug 1800882) for causing webcodecs failures . CLOSED TREE
Backed out changeset fd02fd0205ab (bug 1800882)
Backed out changeset fa46622c4ec7 (bug 1800882)
Backed out changeset 3ac74b4d6534 (bug 1800882)
2024-07-31 20:45:09 +03:00
Ashley Zebrowski 4a1c1f5681 Bug 1800882 - Implement HTMLVideoElement.requestVideoFrameCallback. r=webidl,media-playback-reviewers,emilio,ErichDonGubler,padenot
See https://wicg.github.io/video-rvfc/ for standard details.

Differential Revision: https://phabricator.services.mozilla.com/D216159
2024-07-31 16:53:55 +00:00
Denis Palmeiro 561bceeed3 Bug 1900846: Pass each individual field as parameters instead of the CycleCollectorResults struct when emitting the CCIntervalMarker profiler marker. r=canaltinova
The CCIntervalMarker marker accepts a CycleCollectorResults struct as one of it's parameters and emits each field individually during StreamJSONMarkerData.  This is difficult to translate to a perfetto track event, so instead pass each field directly to profiler_add_marker so that the parameters line up with the PayloadFields descriptions.

Differential Revision: https://phabricator.services.mozilla.com/D217411
2024-07-26 01:46:39 +00:00
Andrew McCreight 6dcda26b23 Bug 1909538 - Add and use a no memmove wrapper for hash keys. r=sefeng,xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D217622
2024-07-25 21:32:16 +00:00
Butkovits Atila dd84697410 Backed out 3 changesets (bug 1800882) for causing webgpu failures. CLOSED TREE
Backed out changeset 8acda0361e97 (bug 1800882)
Backed out changeset 1e76fd470d00 (bug 1800882)
Backed out changeset 548a1763e689 (bug 1800882)
2024-07-26 01:14:08 +03:00
Ashley Zebrowski 76bc9e9598 Bug 1800882 - Implement HTMLVideoElement.requestVideoFrameCallback. r=webidl,media-playback-reviewers,emilio,ErichDonGubler,padenot
See https://wicg.github.io/video-rvfc/ for standard details.

Differential Revision: https://phabricator.services.mozilla.com/D216159
2024-07-25 17:08:38 +00:00
Tooru Fujisawa da4b1ab361 Bug 1907014 - Make SharedSubResourceCache subclass instance a per-process singleton. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D217709
2024-07-25 14:02:25 +00:00
Tamas Szentpeteri a005c79fd8 Backed out 4 changesets (bug 1900846) for causing crashes related to MarkerPhase.
Backed out changeset 3020439d8d51 (bug 1900846)
Backed out changeset 3a9a742747b0 (bug 1900846)
Backed out changeset 5c6c1e590b8c (bug 1900846)
Backed out changeset d5ba32edc63c (bug 1900846)
2024-07-25 01:17:17 +03:00
Tamas Szentpeteri 5baf7e2852 Backed out changeset e2de2a86795f (bug 1800882) 2024-07-25 00:05:30 +03:00
Denis Palmeiro 5d5ddc7c54 Bug 1900846: Pass each individual field as parameters instead of the CycleCollectorResults struct when emitting the CCIntervalMarker profiler marker. r=canaltinova
The CCIntervalMarker marker accepts a CycleCollectorResults struct as one of it's parameters and emits each field individually during StreamJSONMarkerData.  This is difficult to translate to a perfetto track event, so instead pass each field directly to profiler_add_marker so that the parameters line up with the PayloadFields descriptions.

Differential Revision: https://phabricator.services.mozilla.com/D217411
2024-07-24 20:11:14 +00:00
Ashley Zebrowski 62a79e7417 Bug 1800882 - Implement HTMLVideoElement.requestVideoFrameCallback. r=webidl,media-playback-reviewers,emilio,ErichDonGubler,padenot
See https://wicg.github.io/video-rvfc/ for standard details.

Differential Revision: https://phabricator.services.mozilla.com/D216159
2024-07-24 18:30:35 +00:00
Adam Vandolder 5514fdea69 Bug 1895254 - Prototype the Navigation API WebIDL. r=farre,dom-core,peterv
Differential Revision: https://phabricator.services.mozilla.com/D210088
2024-07-24 04:56:35 +00:00
Stanca Serban 0118c6342b Backed out changeset c634fecd6270 (bug 1895254) for causing build bustages in Navigation.cpp. 2024-07-24 07:27:32 +03:00
Adam Vandolder ae44d80eeb Bug 1895254 - Prototype the Navigation API WebIDL. r=farre,dom-core,peterv
Differential Revision: https://phabricator.services.mozilla.com/D210088
2024-07-24 03:44:15 +00:00
Andrew Osmond b31f8cc7bc Bug 1749048 - Part 1. Expose methods to throw/reject based on a MediaResult. r=media-playback-reviewers,padenot
This patch adds convenience methods to throw on ErrorResult and
reject on Promise directly from a MediaResult which has an nsresult
and a message.

Differential Revision: https://phabricator.services.mozilla.com/D212834
2024-07-24 03:16:16 +00:00
Noemi Erli 8feec14eb7 Backed out 3 changesets (bug 1901078, bug 1749048) for causing bustages in ImageDecoder.cpp
Backed out changeset 40ba80bacf94 (bug 1749048)
Backed out changeset 6aa4e953e922 (bug 1749048)
Backed out changeset 3fce5dcfc9c6 (bug 1901078)
2024-07-24 03:48:51 +03:00
freyalaluna da762ea8c3 Bug 1391243 - Implementing Report-To Directive r=sefeng,farre
Updated Content Security Policy reporting to align with current W3C reporting standards. Reporting now supports
the usage of the report-to directive, which utilizes a client's response header field to determine where a report
should be sent upon a content security policy violation occurring. Unlike the previous report-uri directive, which
parsed endpoint URIs directly from the response header, report-to utilizes endpoint groups to store the URIs
that will receive the report. This patch handles the reception of a CSP violation, creation of a report from said
violation, and report delivery, while the parsing of the endpoint URIs are handled by D193461. While the deprecated
report-uri directive remains supported, it is now only used for reporting if a client does not specify a report-
to header.

Differential Revision: https://phabricator.services.mozilla.com/D197480
2024-07-23 20:53:53 +00:00
Andrew Osmond e03ffb0c58 Bug 1749048 - Part 1. Expose methods to throw/reject based on a MediaResult. r=media-playback-reviewers,padenot
This patch adds convenience methods to throw on ErrorResult and
reject on Promise directly from a MediaResult which has an nsresult
and a message.

Differential Revision: https://phabricator.services.mozilla.com/D212834
2024-07-23 19:32:47 +00:00
Stanca Serban b3c85ac11d Backed out 3 changesets (bug 1901078, bug 1749048) for causing interface related mochitests failures. CLOSED TREE
Backed out changeset 0c7ce075a24f (bug 1749048)
Backed out changeset 0b609b8fcff3 (bug 1749048)
Backed out changeset 18ce2638e512 (bug 1901078)
2024-07-23 21:50:08 +03:00
Andrew Osmond 7d3ca5ad29 Bug 1749048 - Part 1. Expose methods to throw/reject based on a MediaResult. r=media-playback-reviewers,padenot
This patch adds convenience methods to throw on ErrorResult and
reject on Promise directly from a MediaResult which has an nsresult
and a message.

Differential Revision: https://phabricator.services.mozilla.com/D212834
2024-07-23 16:25:36 +00:00
Jens Stutte 1af8efe5e2 Bug 1471720 - Make Omnijar::Init() fallible during NS_InitXPCOM and do a canary load of a JS component as early as possible in XRE_mainRun. r=xpcom-reviewers,nika
Omnijar::Init can detect corrupted zip files and react accordingly. It
cannot fail if omni.ja is just missing, as we might run in a
configuration where resources are loaded directly from the modules
directory. We thus add also a canary load of the AppConstants
module to XRE_mainRun as soon as we have a JS context.

Differential Revision: https://phabricator.services.mozilla.com/D205026
2024-07-22 19:30:26 +00:00
Gregory Pappas 2716113c63 Bug 1898833 - Support oncontentvisibilityautostatechange event handler r=emilio,smaug
Spec PR: https://github.com/whatwg/html/pull/10364

Differential Revision: https://phabricator.services.mozilla.com/D217187
2024-07-21 00:23:40 +00:00
Norisz Fay 9f9c78834d Backed out changeset 5d51dcf32767 (bug 1898833) for causing wpt failures on trusted-types-event-handlers.html CLOSED TREE 2024-07-21 03:02:14 +03:00
Gregory Pappas 314992913c Bug 1898833 - Support oncontentvisibilityautostatechange event handler r=emilio,smaug
Spec PR: https://github.com/whatwg/html/pull/10364

Differential Revision: https://phabricator.services.mozilla.com/D217187
2024-07-20 18:48:58 +00:00