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

885 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson 809cd2a13e Bug 1598759 - Remove support for Large-Allocation HTTP header. r=nika,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D140459
2022-03-09 03:18:04 +00:00
Barret Rennie 5fe98a9b51 Bug 1758239 - Map PathUtils.getLocalProfileDir() to the correct method r=Gijs
This was not caught in tests because in a test both ProfD and ProfLD will map
to the same directory (e.g., on Windows they both map to
C:\Users\<username>\AppData\Local\Temp\<random>.mozrunner\).

Differential Revision: https://phabricator.services.mozilla.com/D140546
2022-03-08 17:36:01 +00:00
Barret Rennie f7c7ff7d55 Bug 1746667 - Make PathUtils path lookups sync on main thread r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137217
2022-02-01 04:06:13 +00:00
Nika Layzell 004e42c534 Bug 1678965 - Part 1: Expose SetCrossGroupOpener to chrome JS, r=Gijs,farre
Differential Revision: https://phabricator.services.mozilla.com/D100152
2022-01-25 17:42:44 +00:00
Barret Rennie 875ec3c5f7 Bug 1745352 - Add depth param to PathUtils.getParent to get arbitrary ancestors r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133842
2022-01-25 12:16:16 +00:00
Barret Rennie 2c9252352c Bug 1751085 - Add PathUtils.isAbsolute() r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D136432
2022-01-24 16:10:12 +00:00
Csoregi Natalia 0d1394aa98 Backed out 2 changesets (bug 1745352) for failures on test_ext_pkcs11_management.js. CLOSED TREE
Backed out changeset 0975c59084aa (bug 1745352)
Backed out changeset ba57b662bb72 (bug 1745352)
2022-01-19 06:16:46 +02:00
Barret Rennie d23553fd77 Bug 1745352 - Add depth param to PathUtils.getParent to get aribtrary ancestors r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133842
2022-01-19 01:17:46 +00:00
Csoregi Natalia d4b9c457db Backed out changeset bc2c0094773c (bug 1745352) for causing failures on test_pathutils.html. CLOSED TREE 2022-01-18 20:47:57 +02:00
Barret Rennie 0d04c7d7a6 Bug 1745352 - Add depth param to PathUtils.getParent to get aribtrary ancestors r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133842
2022-01-18 17:59:52 +00:00
Barret Rennie 32cf1f6e27 Bug 1745361 - Create unique directories and files with IOUtils r=Gijs,webdriver-reviewers,extension-reviewers,robwu
PathUtils::CreateUniquePath was doing main thread IO, so we're moving it to
IOUtils to use its event loop to do the IO.

Additionally, we're adding IOUtils::CreateUniqueDirectory which is the same as
::CreateUniqueFile, but for directories.

Differential Revision: https://phabricator.services.mozilla.com/D133841
2022-01-18 05:04:52 +00:00
Cristian Tuns ad8961c258 Backed out changeset e93fd0b78d3e (bug 1745361) for causing build bustages on PathUtils.cpp CLOSED TREE 2022-01-17 13:06:42 -05:00
Barret Rennie 003a65dd40 Bug 1745361 - Create unique directories and files with IOUtils r=Gijs,webdriver-reviewers,extension-reviewers,robwu
PathUtils::CreateUniquePath was doing main thread IO, so we're moving it to
IOUtils to use its event loop to do the IO.

Additionally, we're adding IOUtils::CreateUniqueDirectory which is the same as
::CreateUniqueFile, but for directories.

Differential Revision: https://phabricator.services.mozilla.com/D133841
2022-01-17 17:50:26 +00:00
Alexandre Lissy 161f130b0a Bug 1731890 - Adding Utility process with basic sandbox r=agi,nika,bobowen
Differential Revision: https://phabricator.services.mozilla.com/D126297
2022-01-12 20:52:58 +00:00
Edgar Chen 9c83371467 Bug 1749264 - Get rid of {activate,deactivate}RemoteFrame from FrameLoader.webidl; r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D135473
2022-01-10 16:11:47 +00:00
criss f177d7d796 Backed out changeset 4448cd53ed42 (bug 1745361) for causing hybrid bustages on PathUtils.cpp 2021-12-31 23:06:40 +02:00
Barret Rennie db46900c30 Bug 1745361 - Create unique directories and files with IOUtils r=Gijs,webdriver-reviewers,extension-reviewers,robwu
PathUtils::CreateUniquePath was doing main thread IO, so we're moving it to
IOUtils to use its event loop to do the IO.

Additionally, we're adding IOUtils::CreateUniqueDirectory which is the same as
::CreateUniqueFile, but for directories.

Differential Revision: https://phabricator.services.mozilla.com/D133841
2021-12-31 20:28:39 +00:00
Barret Rennie 4f075c0922 Bug 1736331 - Add IOUtils methods for dealing with macOS extended filesystem attributes r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133837
2021-12-25 00:30:11 +00:00
Butkovits Atila 1ce2eea394 Backed out 2 changesets (bug 1736331) for causing failures at test_ioutils_mac_xattr.html. CLOSED TREE
Backed out changeset 3d627a038faa (bug 1736331)
Backed out changeset b0df890ed09e (bug 1736331)
2021-12-24 03:26:45 +02:00
Barret Rennie 3e1f33cec3 Bug 1736331 - Add IOUtils methods for dealing with macOS extended filesystem attributes r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133837
2021-12-23 23:02:13 +00:00
Sandor Molnar 8032ae5c31 Backed out 2 changesets (bug 1736331) for causing build bustages in IOUtils. CLOSED TREE
Backed out changeset 5745c2669e88 (bug 1736331)
Backed out changeset 0a34c502e65f (bug 1736331)
2021-12-22 22:04:10 +02:00
Barret Rennie f90932ae03 Bug 1736331 - Add IOUtils methods for dealing with macOS extended filesystem attributes r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133837
2021-12-22 19:46:15 +00:00
Erik Nordin 5a5e1c57ed Bug 1743659 - Part 1: Update Gecko's L10nRegistry to use the new l10nregistry-rs API r=zbraniecki,dminor,eemeli,fluent-reviewers,webidl,smaug?,eemeli?,zbraniecki
- Updates Gecko's L10nRegistry class to use the new ResourceId type,
  which can be either optional or required regarding a particular resource.
- Adds JS tests verifying the new behavior.

Differential Revision: https://phabricator.services.mozilla.com/D133578
2021-12-22 19:08:38 +00:00
Csoregi Natalia cbfb9e9a8e Backed out 2 changesets (bug 1736331) for bustage on IOUtils.webidl CLOSED TREE
Backed out changeset 293085bdd5a1 (bug 1736331)
Backed out changeset 275621f46891 (bug 1736331)
2021-12-22 19:09:54 +02:00
Barret Rennie 84a487319b Bug 1736331 - Add IOUtils methods for dealing with macOS extended filesystem attributes r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133837
2021-12-22 16:40:53 +00:00
Barret Rennie 40ef20ce28 Bug 1743404 - Add IOUtils::{Get,Set}WindowsFileAttributes r=nika
Differential Revision: https://phabricator.services.mozilla.com/D133835
2021-12-17 17:21:22 +00:00
Toshihito Kikuchi baa43db813 Bug 1743663 - Remove windowContext.hasActivePeerConnections. r=peterv
TabUnloader.jsm can directly call windowGlobal.hasActivePeerConnections(),
so windowContext.hasActivePeerConnections is not needed.

Differential Revision: https://phabricator.services.mozilla.com/D132654
2021-12-16 16:14:13 +00:00
Richa Sharma fca992af50 Bug 1470651 - Support cookieStoreId option in contentScripts.register r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124537
2021-12-13 12:30:26 +00:00
Alexandre Poirot 679bde75eb Bug 1740543 - Expose xpcom's GetErrorName() to JS. r=xpcom-reviewers,nika
This will help JS codebase decipher what a given nsresult refers to.

Differential Revision: https://phabricator.services.mozilla.com/D130879
2021-12-09 14:00:39 +00:00
Florian Quèze c27db31462 Bug 1744991 - add ChromeUtils.vsyncEnabled to allow checking from tests if vsync remained enabled, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D133204
2021-12-09 11:27:40 +00:00
Norisz Fay 1b759d112f Backed out changeset 4628f9ff25a5 (bug 1740543) for causing build bustages on ErrorNames CLOSED TREE 2021-12-09 12:44:14 +02:00
Alexandre Poirot 2ecfb8077f Bug 1740543 - Expose xpcom's GetErrorName() to JS. r=xpcom-reviewers,nika
This will help JS codebase decipher what a given nsresult refers to.

Differential Revision: https://phabricator.services.mozilla.com/D130879
2021-12-09 10:02:53 +00:00
Csoregi Natalia 4bac4f56b0 Backed out changeset d847e5e30768 (bug 1470651) for failures on test_ext_contentScripts_register.js. CLOSED TREE 2021-12-07 16:09:50 +02:00
Richa Sharma 463122ddd5 Bug 1470651 - Support cookieStoreId option in contentScripts.register r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124537
2021-12-07 13:30:09 +00:00
Barret Rennie 83586dfc28 Bug 1741465 - Support reading files larger than UINT32_MAX if using a large enough offset r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132262
2021-12-03 17:21:52 +00:00
Alexandru Michis f236a62bde Backed out changeset b6ebaaea0102 (bug 1741465) for causing bustages in IOUtils.cpp
CLOSED TREE
2021-12-01 23:42:21 +02:00
Barret Rennie d7de7c8631 Bug 1741465 - Support reading files larger than UINT32_MAX if using a large enough offset r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D132262
2021-12-01 20:35:21 +00:00
Mathew Hodson 691b1a0c53 Bug 1741548 - Add ignoreAbsent option to `IOUtils.getChildren` method. r=barret
Remove an incorrect comment.

Differential Revision: https://phabricator.services.mozilla.com/D131323
2021-11-25 10:45:55 +00:00
Barret Rennie 39e465e39d Bug 1739702 - Rename IOUtils.touch to IOUtils.setModificationTime r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131957
2021-11-25 02:19:20 +00:00
Florian Queze d8095fad35 Bug 1742662 - Remove unused 'filename' field in the ChromeUtils.requestProcInfo results, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D131952
2021-11-24 10:46:46 +00:00
Florian Queze b4944967c3 Bug 1742472 - Merge cpuKernel and cpuUser fields into cpuTime in the ChromeUtils.requestProcInfo results, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D131835
2021-11-24 10:46:45 +00:00
Butkovits Atila 193530a2df Backed out changeset 2ebd54655436 (bug 1739702) for causing failres at test_ioutils_stat_set_modification_time.html. CLOSED TREE 2021-11-24 06:41:13 +02:00
Barret Rennie f310df5b88 Bug 1739702 - Rename IOUtils.touch to IOUtils.setModificationTime r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131957
2021-11-24 03:52:14 +00:00
Toshihito Kikuchi 599a77edff Bug 1734099 - Never unload tabs with active RTCPeerConnection instances. r=peterv,jesup
This patch makes sure the Tab Unloading feature does not unload tabs that have
active peer connections not to disrupt browsing experience based on WebRTC peer
connections.

To enable JS code to access the number of active peer connections, this patch
moves `nsPIDOMWindowInner::mTotalActivePeerConnections` to `WindowGlobalParent`.

Differential Revision: https://phabricator.services.mozilla.com/D128761
2021-11-18 22:59:12 +00:00
Barret Rennie 0a42a75031 Bug 1723082 - Support reading files > INT32_MAX in IOUtils r=Gijs
Previously, if you attempted to read a file greater than INT32_MAX in size, we
would either fail to read the file (on release) or crash (on debug). This is
due to the implementation of _PR_MD_READ accepting an int32_t of bytes to read
instead of a uint32_t, which nsFileStream::Read accepts and passes on.

Differential Revision: https://phabricator.services.mozilla.com/D131161
2021-11-17 03:55:36 +00:00
Alexandru Michis 2d0c990efe Backed out 3 changesets (bug 1741247, bug 1723082, bug 1736175) for causing PathUtils.normalize failures.
CLOSED TREE

Backed out changeset 55165cf4b7bb (bug 1736175)
Backed out changeset 492f5ca3b592 (bug 1723082)
Backed out changeset ce199e98a0c5 (bug 1741247)
2021-11-17 03:12:07 +02:00
Barret Rennie 72b138b1d8 Bug 1723082 - Support reading files > INT32_MAX in IOUtils r=Gijs
Previously, if you attempted to read a file greater than INT32_MAX in size, we
would either fail to read the file (on release) or crash (on debug). This is
due to the implementation of _PR_MD_READ accepting an int32_t of bytes to read
instead of a uint32_t, which nsFileStream::Read accepts and passes on.

Differential Revision: https://phabricator.services.mozilla.com/D131161
2021-11-17 00:28:58 +00:00
Randell Jesup b257161e3a Bug 1738765: Process-isolate ServiceWorkers if they match an allow-list of sites r=nika,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D130113
2021-11-08 19:53:06 +00:00
Markus Stange df441c491f Bug 1726480 - Add IOUtils::OpenFileForSyncReading. r=dom-worker-reviewers,asuth
This exposes synchronous file reading to workers. It's intended to be used
by profiler symbolication.
The API only supports reading into an existing Uint8Array. This avoids
creating garbage, and minimizes copies.
It also keeps the file open so that it doesn't need to be reopened for
each read.

The implementation uses nsFileStream.

I first tried an implementation which used mmap + memcpy rather than read,
but it didn't work for files larger than 2GiB due to limitations in NSPR's
mmap support, and the profiler needs to read >2GiB files.
Specifically, the profiler sometimes needs to read
/System/Library/dyld/dyld_shared_cache_arm64e , which is 2.2GiB big on
macOS 11.5.

Differential Revision: https://phabricator.services.mozilla.com/D124207
2021-11-04 19:47:29 +00:00
Luca Greco ada0a324e1 Bug 1636629 - Log a more explicit error message on invalid redirects. r=asuth,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128736
2021-10-26 16:44:10 +00:00