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

3289 Коммитов

Автор SHA1 Сообщение Дата
Peter Van der Beken e77783380e Bug 1766130 - Properly propagate errors from Promise creation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D144515
2022-05-02 07:44:23 +00:00
Tooru Fujisawa 56c0d78313 Bug 1766099 - Part 3: Explicitly specify import or imported symbol for importScripts in dom/. r=Standard8
Depends on D144672

Differential Revision: https://phabricator.services.mozilla.com/D144673
2022-04-27 11:40:41 +00:00
Marian-Vasile Laza 2e328e8040 Merge autoland to mozilla-central. a=merge 2022-04-27 12:35:44 +03:00
Mike Hommey 3da3b13f2a Bug 1766359 - Fix unreachable-code-return warnings in Windows builds. r=emilio,mhowell,nika,rkraesig
dom/system/PathUtils.cpp(77,10): error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return false;
         ^~~~~
ipc/chromium/src/chrome/common/ipc_channel_win.cc(479,10): error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return true;
         ^~~~
mozglue/misc/PreXULSkeletonUI.cpp(1263,10): error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return 0;
         ^
mozglue/tests/TestPEExportSection.cpp(348,12): error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
    return 0;
           ^
security/manager/ssl/OSReauthenticator.cpp(428,10): error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return NS_OK;
         ^~~~~
toolkit/components/maintenanceservice/maintenanceservice.cpp(214,10): error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return 0;
         ^
widget/windows/WindowsUIUtils.cpp(383,10): error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return false;
         ^~~~~

Differential Revision: https://phabricator.services.mozilla.com/D144661
2022-04-26 21:44:54 +00:00
Jan Horak 705f8983d6 Bug 1759840 Add support for location portal; r=emilio
The Firefox in flatpak has no access to the wireless networks to determine
accurate geolocation. We have to use the location portal instead which
provides the current location based on the nearby wireless accesspoints
or other methods.

Differential Revision: https://phabricator.services.mozilla.com/D142329
2022-04-19 11:42:38 +00:00
Molnar Sandor 509c3805f9 Backed out changeset 1529955a0df7 (bug 1759840) for causing build bustage in geolocation/Geolocation CLOSED TREE 2022-04-19 12:41:47 +03:00
Jan Horak f674f55333 Bug 1759840 Add support for location portal; r=emilio
The Firefox in flatpak has no access to the wireless networks to determine
accurate geolocation. We have to use the location portal instead which
provides the current location based on the nearby wireless accesspoints
or other methods.

Differential Revision: https://phabricator.services.mozilla.com/D142329
2022-04-19 09:02:55 +00:00
Jan Rio Krause 057785b6d5 Bug 1519200 - Remove `NS_ERROR_FILE_TARGET_DOES_NOT_EXIST` in favor of `NS_ERROR_FILE_NOT_FOUND`. r=xpcom-reviewers,nika,dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D77575
2022-04-05 15:17:03 +00:00
Barret Rennie 35916358ca Bug 1757849 - Add PathUtils.osTempDir r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D140146
2022-03-25 14:42:44 +00:00
Barret Rennie 4b03c5dadf Bug 1753375 - Disallow PathUtils.get*Dir on main thread r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D140145
2022-03-23 19:34:27 +00:00
Cristian Tuns 4228d282a7 Backed out changeset 6b2cd302a91f (bug 1753375) for causing mochitest failures on test_ioutils_mkdir.html CLOSED TREE 2022-03-21 16:32:40 -04:00
Barret Rennie 41849df494 Bug 1753375 - Disallow PathUtils.get*Dir on main thread r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D140145
2022-03-21 14:59:04 +00:00
Barret Rennie 6c8b6222a7 Bug 1746667 - Replace PathUtils.getTempDir with PathUtils.tempDir in IOUtils tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137218
2022-02-01 04:06:14 +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
Barret Rennie c4d027fbb0 Bug 1743671 - Keep worker threads alive while IOUtils tasks are running r=Gijs,dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D137465
2022-02-01 03:23:44 +00:00
Barret Rennie d754f5e02d Bug 1752432 - Fix IOUtils setModificationTime tests on directories r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137216
2022-01-28 19:21:36 +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 f9a2e4cbd1 Bug 1745427 - Do not eagerly fetch non-requested directories in PathUtils r=nika
PathUtils.getTempDir() was failing in xpcshell tests for two reasons:

1. It was requesting NS_APP_CONTENT_PROCESS_TEMP_DIR, which resolves to
   `ContentTmpD`, which the directory provider did not have an entry for.
2. By default, XPC shell tests do not have a profile set up, so when we request
   the temporary directory and eagerly fetch the profile directory, we would fail.

We now only fetch the entry for the single directory that is requested to work
around these edge cases in tests. xpcshell has been modified so that requests
for the `ContentTmpD` are forwarded to requests for the regular OS temporary
directory.

Differential Revision: https://phabricator.services.mozilla.com/D134877
2022-01-24 20:48:10 +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
Sandor Molnar 39a9cccb92 Backed out changeset 9743e5209921 (bug 1745427) for causing mochitest failures in dom/system/tests/test_pathutils.html CLOSED TREE 2022-01-22 04:04:25 +02:00
Barret Rennie 85c0fc57eb Bug 1745427 - Do not eagerly fetch non-requested directories in PathUtils r=nika
PathUtils.getTempDir() was failing in xpcshell tests for two reasons:

1. It was requesting NS_APP_CONTENT_PROCESS_TEMP_DIR, which resolves to
   `ContentTmpD`, which the directory provider did not have an entry for.
2. By default, XPC shell tests do not have a profile set up, so when we request
   the temporary directory and eagerly fetch the profile directory, we would fail.

We now only fetch the entry for the single directory that is requested to work
around these edge cases in tests. xpcshell has been modified so that requests
for the `ContentTmpD` are forwarded to requests for the regular OS temporary
directory.

Differential Revision: https://phabricator.services.mozilla.com/D134877
2022-01-22 01:19:08 +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
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
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
Barret Rennie fd18dfc898 Bug 1744809 - Reduce boilerplate in IOUtils frontend methods r=nika
Differential Revision: https://phabricator.services.mozilla.com/D133832
2021-12-16 04:47:19 +00:00
Marian-Vasile Laza 708d0dccc2 Backed out 2 changesets (bug 1744809, bug 1744316) for causing xpcshell failures on marAppApplyDirLockedStageFailure_win.js.
Backed out changeset d14261ebd3b1 (bug 1744316)
Backed out changeset dbbcea46c9d9 (bug 1744809)
2021-12-16 03:31:32 +02:00
Barret Rennie c7f7e975a9 Bug 1744809 - Reduce boilerplate in IOUtils frontend methods r=nika
Differential Revision: https://phabricator.services.mozilla.com/D133832
2021-12-15 19:56:08 +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
Mark Banner dfb34709b9 Bug 1656282 - Enable ESLint no-unused-vars and no-undef rules where they are disabled on dom/**/*.xhtml files. r=smaug
Depends on D131911

Differential Revision: https://phabricator.services.mozilla.com/D131980
2021-11-24 11:26:37 +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
Barret Rennie 54a0bad626 Bug 1742429 - On Windows, assert IOUtils/PathUtils paths do not contain forward slashes r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131812
2021-11-23 17:27:20 +00:00