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

3218 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Lissy f5c1ebc1bc Bug 1506198 - Remove content temp dir r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D220369
2024-09-11 07:37:27 +00:00
Norisz Fay 99582f05be Backed out changeset b38b6b47c602 (bug 1506198) for causing bustage on SandboxBroker.cpp CLOSED TREE 2024-09-11 10:21:38 +03:00
Alexandre Lissy 8ffb617205 Bug 1506198 - Remove content temp dir r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D220369
2024-09-11 06:07:42 +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
Masatoshi Kimura 78db7aad66 Bug 1906405 - Fix nsLocalFile::GetLast(Accessed|Modified)Time. r=xpcom-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D215835
2024-07-05 18:59:43 +00:00
Cosmin Sabou 8fbb81f010 Backed out changeset d40105caed00 (bug 1906405) for causing xpcshell failures on test_localfile. CLOSED TREE 2024-07-05 21:05:34 +03:00
Masatoshi Kimura facbb5ca48 Bug 1906405 - Fix nsLocalFile::GetLast(Accessed|Modified)Time. r=xpcom-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D215835
2024-07-05 16:58:55 +00:00
Jan Grulich d2084644e7 Bug 1882079 - Display real path when choosing download directory over portal r=settings-reviewers,Gijs,emilio
Use the new API addition to Document portal allowing clients to get real
path to the exported document. This allows to still use the same path as
provided by the document portal, but display the path as exists on the
host side.

Differential Revision: https://phabricator.services.mozilla.com/D202717
2024-06-28 19:31:13 +00:00
Norisz Fay b512538f35 Backed out changeset 032d22e94bd3 (bug 1882079) for causing bustages on nsLocalFileUnix.cpp CLOSED TREE 2024-06-28 18:10:16 +03:00
Jan Grulich cd78916e7e Bug 1882079 - Display real path when choosing download directory over portal r=settings-reviewers,Gijs,emilio
Use the new API addition to Document portal allowing clients to get real
path to the exported document. This allows to still use the same path as
provided by the document portal, but display the path as exists on the
host side.

Differential Revision: https://phabricator.services.mozilla.com/D202717
2024-06-28 14:33:04 +00:00
Ryan VanderMeulen b5c7b70b7e Backed out changeset 25f376fb859f (bug 1873973) for causing various regressions.
CLOSED TREE
2024-05-31 15:08:52 -04:00
Sean 968eadeb66 Bug 1873973 - Fix nsStandardURL incorrectly escaped "^" in the path r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D211898
2024-05-29 17:00:47 +00:00
serge-sans-paille 0962f14cfd Bug 1899286 - Remove legacy AIX and HP-UX support r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D211846
2024-05-29 06:57:40 +00:00
Magnus Melin 67a2c5c9c7 Bug 1898709 - Use GetMostRecentBrowserWindow() instead of GetMostRecentWindow(u"navigator:browser") to cater for Thunderbird's main window. r=nalexander
Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1863798-toast-notification-foreground-mail-client-m-c.patch

Fixed cases where general code assume main window is Firefox.
GetMostRecentBrowserWindow is getting "navigator:browser" for Firefox, so there is no change in behavior,
but it means more things will work for Thunderbird.

Differential Revision: https://phabricator.services.mozilla.com/D211520
2024-05-24 17:43:52 +00:00
Emilio Cobos Álvarez 8aaf44fea9 Bug 1893683 - Remove ns{A,C}String and other xpcom dependencies from nsStringBuffer. r=smaug,media-playback-reviewers,karlt
* nsStringBuffer::FromString -> nsTSubString::GetStringBuffer
 * nsStringBuffer::ToString -> nsTSubString::Assign(nsStringBuffer*, len)
 * Move refcounting inline but refcount-logging and other XPCOM-related
   things out-of-line.

Differential Revision: https://phabricator.services.mozilla.com/D208771
2024-05-09 08:34:35 +00:00
Mike Conley dbd654fa89 Bug 1890352 - Add OS Documents folder to nsIDirectoryService. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D209586
2024-05-08 15:04:20 +00:00
Nika Layzell b3f3e9a04a Bug 1892481 - More consistently enforce noscript and builtinclass in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,media-playback-reviewers,mccr8,padenot
These properties were previously being checked much later, during xptcodegen,
and causing methods to be treated as noscript implicitly.

This change enforces the noscript requirements earlier when possible in
xpidl.py, to produce better errors, and adds addiitonal checks to ensure that
types which need to be builtinclass are marked as such.

This required some changes to interfaces in order to satisfy the new checks.

Differential Revision: https://phabricator.services.mozilla.com/D207804
2024-04-22 18:19:58 +00:00
Yannis Juglaret 484214561b Bug 1875036 - Speed up directory enumeration on Windows. r=win-reviewers,gstoll
We replace the use of FindFirstFileW by FindFirstFileExW with the most
optimized combination of flags on the code path reached from
nsIDirectoryEnumerator on Windows. This should make enumeration faster,
in particular when enumerating directories with thousands of files like
it can happen in QuotaManager code.

Differential Revision: https://phabricator.services.mozilla.com/D207151
2024-04-11 06:52:03 +00:00
Nika Layzell a48079cd72 Bug 1881863 - Part 1: Standardize on boolean over bool in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,places-reviewers,nalexander,emilio,zombie,sgalich,karlt,lina,Standard8
Previously the `boolean` type was also declared using a `bool` typedef in
xpidl, meaning that both were used in various places. This patch standardizes
on the built-in `boolean` type, removing the typedef.

Differential Revision: https://phabricator.services.mozilla.com/D206382
2024-04-04 18:45:21 +00:00
Michael van Straten 6e3ee549c9 Bug 1870617 - Map Windows error 0x1 ERROR_INVALID_FUNCTION to NS_ERROR_FILE_DEVICE_FAILURE r=jstutte,xpcom-reviewers
`ERROR_INVALID_FUNCTION` appears to be a very generic "this device does not support this function".
Given that we deal only with file operations and errors here, this pretty much translates to "this device is not really a working file IO device for us" which makes it appear to be entirely broken for us.

Differential Revision: https://phabricator.services.mozilla.com/D196723
2024-03-22 14:35:14 +00:00
Marco Bonardo 2d5508a9b8 Bug 1885855. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D205067
2024-03-21 09:12:33 +00:00
Mike Hommey d2b6ddc6c8 Bug 1843207 - Rename CopyCocoaStringToXPCOMString to CopyNSStringToXPCOMString. r=nika
Make it infallible and make nsCocoaUtils::GetStringForNSString rely on it.

Differential Revision: https://phabricator.services.mozilla.com/D204318
2024-03-13 20:54:19 +00:00
Kelsey Gilbert 34cdfc4f86 Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200250
2024-02-07 18:30:22 +00:00
Cosmin Sabou 66d12d2fff Backed out 2 changesets (bug 1874226) for causing bustages on dom/ContentParent.h. CLOSED TREE
Backed out changeset 3efd59369cd6 (bug 1874226)
Backed out changeset cd7b0bd12dae (bug 1874226)
2024-02-06 03:08:23 +02:00
Kelsey Gilbert c9e48e76b7 Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200250
2024-02-06 00:21:43 +00:00
Stephen A Pohl df5561e1e8 Bug 1752164: Don't fall back to our internal file protocol handler when macOS is prompting users to pick an app when opening a downloaded file. r=mstange,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D199347
2024-01-29 19:04:20 +00:00
Jens Stutte c4b00a432d Bug 1875621 - SlicedInputStream::Serialize should serialize the outer SlicedInputStream as a pipe in the efficient path. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D199852
2024-01-29 16:42:01 +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
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
Barret Rennie ec6c6e2d1f Bug 1796023 - Compare return value of readlink in nsLocalFileUnix::GetNativeTarget r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D190987
2023-10-23 16:58:25 +00:00
Sylvestre Ledru 1e776756dd Bug 1856795 - ride along: use = default; on some recently modified files r=emilio
More on:
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html

Command:
L=$(hg export -r tip|grep +++|cut -d/ -f2-)
./mach static-analysis check --checks="-*, modernize-use-equals-default" --fix $L

Differential Revision: https://phabricator.services.mozilla.com/D191016
2023-10-15 15:29:03 +00:00
Sylvestre Ledru d0f6c7fc66 Bug 1856795 - Remove redundant member init r=emilio
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .

https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html

Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-15 15:29:02 +00:00
Cristina Horotan 6a90f5eded Backed out 2 changesets (bug 1856795) for causing build bustage at BasicEvents.h CLOSED TREE
Backed out changeset 1d98b028923a (bug 1856795)
Backed out changeset eae2ac93e17c (bug 1856795)
2023-10-14 21:42:14 +03:00
Sylvestre Ledru c164bd9937 Bug 1856795 - ride along: use = default; on some recently modified files r=emilio
More on:
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html

Command:
L=$(hg export -r tip|grep +++|cut -d/ -f2-)
./mach static-analysis check --checks="-*, modernize-use-equals-default" --fix $L

Differential Revision: https://phabricator.services.mozilla.com/D191016
2023-10-14 17:34:27 +00:00
Sylvestre Ledru cc8a0ee742 Bug 1856795 - Remove redundant member init r=emilio
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .

https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html

Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-14 17:34:26 +00:00
Vinny Diehl b30a7e19e7 Bug 1847572 - Expand home directory paths for arbitrary users r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D185999
2023-10-04 16:48:47 +00:00
Jonathan Kew 0e6ed89f87 Bug 1856140 - Update set of url-escaped chars used for username/password to match WPT test expectations. r=necko-reviewers,jesup
Depends on D189701

Differential Revision: https://phabricator.services.mozilla.com/D189702
2023-10-02 19:19:03 +00:00
Jonathan Kew 7d7b5f1a70 Bug 1750945 - Remove legacy OldEscapeChars table. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D189701
2023-10-02 19:19:03 +00:00
Jan Varga c458754592 Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D189226
2023-09-28 20:46:07 +00:00
Marco Bonardo c15e6d24e4 Bug 1847180. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D188240
2023-09-15 14:53:50 +00:00
Cosmin Sabou 336c64b380 Backed out changeset de3502ab8cb5 (bug 1847180) for causing gtest failures at AllExtensionsInTestList. CLOSED TREE 2023-09-15 15:59:11 +03:00
Marco Bonardo cbc882b7c4 Bug 1847180. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D188240
2023-09-15 07:42:28 +00:00
Masatoshi Kimura 7226d6efbe Bug 1852806 - Remove macros for older Windows SDK from xpcom/. r=xpcom-reviewers,glandium
Depends on D188032

Differential Revision: https://phabricator.services.mozilla.com/D188033
2023-09-15 03:19:28 +00:00
Cosmin Sabou f8c16a8f94 Backed out 15 changesets (bug 1852806) for causing mda failures on test_video_low_power_telemetry.html. CLOSED TREE
Backed out changeset faea1f4cb9a9 (bug 1852806)
Backed out changeset 4db93c374f9b (bug 1852806)
Backed out changeset 7e40e0e04921 (bug 1852806)
Backed out changeset b0a66c4269ce (bug 1852806)
Backed out changeset 4ff3545936f9 (bug 1852806)
Backed out changeset 02c0a8eb3fd6 (bug 1852806)
Backed out changeset ae2c7b33acfb (bug 1852806)
Backed out changeset 2b89ba254a1a (bug 1852806)
Backed out changeset dfa4f73fc548 (bug 1852806)
Backed out changeset daffcc4c1877 (bug 1852806)
Backed out changeset 33855bcdf15e (bug 1852806)
Backed out changeset 694f29707f3e (bug 1852806)
Backed out changeset 1891eda22a59 (bug 1852806)
Backed out changeset 1b854941389c (bug 1852806)
Backed out changeset 2f7cfe04be59 (bug 1852806)
2023-09-15 09:48:27 +03:00
Masatoshi Kimura 197e069ce0 Bug 1852806 - Remove macros for older Windows SDK from xpcom/. r=xpcom-reviewers,glandium
Depends on D188032

Differential Revision: https://phabricator.services.mozilla.com/D188033
2023-09-15 03:19:28 +00:00
Stanca Serban 04ab13cb66 Backed out changeset 65e974428cdb (bug 1847572) for causing gtest crashes. CLOSED TREE 2023-09-07 22:42:14 +03:00
Vinny Diehl ac308994f4 Bug 1847572 - Expand home directory paths for arbitrary users r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D185999
2023-09-07 18:35:59 +00:00
Mike Hommey 9331b9fb07 Bug 1851529 - Set clang-format ColumnLimit consistently. r=sylvestre,necko-reviewers,kershaw
For some reason, its value in the Google style we use is 80... except
for Objective-C, where it's 100, which led to things like:
https://hg.mozilla.org/mozilla-central/rev/31bf68247e6e
https://hg.mozilla.org/mozilla-central/rev/64ceb33533a4.

There's probably a discussion to have about whether 80 is the right
limit, but since it's what's used for everything except ObjC, let's roll
with it.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D187409
2023-09-05 11:23:01 +00:00
serge-sans-paille 5e27e85262 Bug 1850483 - use unified sources for xpcom/io r=glandium
Depends on D187023

Differential Revision: https://phabricator.services.mozilla.com/D187024
2023-08-30 08:52:27 +00:00