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

3349 Коммитов

Автор SHA1 Сообщение Дата
Olli Pettay 93acdfad59 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
Barret Rennie 38a038496a Bug 1783099 - Add PathUtils.xulLibraryPath r=nika
Differential Revision: https://phabricator.services.mozilla.com/D154996
2022-09-02 21:16:50 +00:00
Marian-Vasile Laza 36e9738343 Backed out 2 changesets (bug 1783099, bug 1772178) for causing bc failures on browser_all_files_referenced.js. CLOSED TREE
Backed out changeset c4ca03b83a54 (bug 1772178)
Backed out changeset c5690a290bfe (bug 1783099)
2022-08-25 18:19:23 +03:00
Barret Rennie 0252236b74 Bug 1783099 - Add PathUtils.xulLibraryPath r=nika
Differential Revision: https://phabricator.services.mozilla.com/D154996
2022-08-25 14:29:33 +00:00
Sandor Molnar 8ab85c7325 Backed out 2 changesets (bug 1772178, bug 1783099) for causing build bustages in dom/bindings/PathUtilsBinding.cpp CLOSED TREE
Backed out changeset c31245b98fd7 (bug 1772178)
Backed out changeset d79196b62ab2 (bug 1783099)
2022-08-25 05:58:51 +03:00
Barret Rennie 1c667ade89 Bug 1783099 - Add PathUtils.xulLibraryPath r=nika
Differential Revision: https://phabricator.services.mozilla.com/D154996
2022-08-25 02:43:28 +00:00
criss f14d9ca58e Backed out 2 changesets (bug 1783099, bug 1772178) for causing bustages on PathUtilsBinding.cpp. CLOSED TREE
Backed out changeset 12b01db19aa6 (bug 1772178)
Backed out changeset 8d668e43cbd8 (bug 1783099)
2022-08-23 17:51:28 +03:00
Barret Rennie 691ac6cb81 Bug 1783099 - Add PathUtils.xulLibraryPath r=nika
Differential Revision: https://phabricator.services.mozilla.com/D154996
2022-08-23 14:38:18 +00:00
Barret Rennie 0be1598127 Bug 1769152 - Add support for profile-before-change-telemetry in IOUtils r=nika
Differential Revision: https://phabricator.services.mozilla.com/D152923
2022-08-12 22:55:44 +00:00
Barret Rennie fc03dd4050 Bug 1769152 - Make IOUtils Shutdown blockers depend on previous phase completion r=nika
Now we create barriers for all shutdown phases (xpcom-will-shutdown included)
and have them register the previous phase's completion as a blocker. This
allows for a simplified implementation of IOUtilsShutdownBlocker, especially in
the next patch where we add support for an additional shutdown phase.

In normal shutdown, the previous phase will already be completed by the time we
hit the blocker. However, in xpcshell tests, we are not going to hit the
profile-before-change etc. shutdown phases, so we still need to ensure that IO
finished, so we can recursively wait on previous phases to complete.

Differential Revision: https://phabricator.services.mozilla.com/D152922
2022-08-12 22:55:44 +00:00
Barret Rennie 0798cb0da7 Bug 1769152 - Refactor IOUtils to use an EnumeratedArray for shutdown blockers r=nika
Differential Revision: https://phabricator.services.mozilla.com/D152921
2022-08-12 22:55:43 +00:00
Narcis Beleuzu 83400739bd Backed out 4 changesets (bug 1769152, bug 1779759) for mochitest failures on TerminatorTelemetry.jsm
Backed out changeset adc608dc4add (bug 1779759)
Backed out changeset 81b4e1ce2626 (bug 1769152)
Backed out changeset 53c04446c380 (bug 1769152)
Backed out changeset ecced395ea6b (bug 1769152)
2022-08-12 23:59:02 +03:00
Barret Rennie 503a75d070 Bug 1769152 - Add support for profile-before-change-telemetry in IOUtils r=nika
Differential Revision: https://phabricator.services.mozilla.com/D152923
2022-08-12 20:19:06 +00:00
Barret Rennie 2fea077e49 Bug 1769152 - Make IOUtils Shutdown blockers depend on previous phase completion r=nika
Now we create barriers for all shutdown phases (xpcom-will-shutdown included)
and have them register the previous phase's completion as a blocker. This
allows for a simplified implementation of IOUtilsShutdownBlocker, especially in
the next patch where we add support for an additional shutdown phase.

In normal shutdown, the previous phase will already be completed by the time we
hit the blocker. However, in xpcshell tests, we are not going to hit the
profile-before-change etc. shutdown phases, so we still need to ensure that IO
finished, so we can recursively wait on previous phases to complete.

Differential Revision: https://phabricator.services.mozilla.com/D152922
2022-08-12 20:19:05 +00:00
Barret Rennie e908e2015a Bug 1769152 - Refactor IOUtils to use an EnumeratedArray for shutdown blockers r=nika
Differential Revision: https://phabricator.services.mozilla.com/D152921
2022-08-12 20:19:05 +00:00
Sandor Molnar 17df968a7e Backed out 4 changesets (bug 1779759, bug 1769152) for causing build bustages in dom/system/IOUtils.cpp
Backed out changeset 84d85b2c2c57 (bug 1779759)
Backed out changeset 9ab377e88dc8 (bug 1769152)
Backed out changeset 95f5ca920916 (bug 1769152)
Backed out changeset 297dcbc2bb0a (bug 1769152)
2022-08-09 21:16:36 +03:00
Jed Davis 996eb87d1d Bug 1276388 - Use IPC process launching for Subprocess.jsm on Unix. r=kmag,nika,barret
Currently, Subprocess.jsm on Unix uses js-ctypes to call `posix_spawn`.
This has some issues, primarily that file descriptors are inherited by
the child process unless explicitly opted-out, which unfortunately a lot
of code doesn't do.  This patch changes it to use IPC process launching,
where fd inheritance is opt-in, by:

1. Extending `base::LaunchApp` to handle a few features that Subprocess
   needs (setting the process's working directory, specifying the full
   environment, and the macOS `disclaim` flag)

2. Adding a WebIDL method to `IOUtils` to expose that function to JS
   (currently Unix-only; Windows could also be supported but it would
   probably want to use a different IDL type for strings, given that the
   OS APIs use 16-bit code units).

3. Replacing the part of Subprocess that invokes `posix_spawn` (and
   related functions) by calling that method; the rest of Subprocess's
   machinery to manage pipes and I/O is unchanged.  (The Windows backend
   is also unchanged; I'm not aware of any functional issues there.)
   This results in some dead code, which is removed.

Differential Revision: https://phabricator.services.mozilla.com/D152336
2022-08-09 17:32:22 +00:00
Barret Rennie 8cf22152f5 Bug 1769152 - Add support for profile-before-change-telemetry in IOUtils r=nika
Differential Revision: https://phabricator.services.mozilla.com/D152923
2022-08-09 17:23:01 +00:00
Barret Rennie ca38cfe9a4 Bug 1769152 - Make IOUtils Shutdown blockers depend on previous phase completion r=nika
Now we create barriers for all shutdown phases (xpcom-will-shutdown included)
and have them register the previous phase's completion as a blocker. This
allows for a simplified implementation of IOUtilsShutdownBlocker, especially in
the next patch where we add support for an additional shutdown phase.

In normal shutdown, the previous phase will already be completed by the time we
hit the blocker. However, in xpcshell tests, we are not going to hit the
profile-before-change etc. shutdown phases, so we still need to ensure that IO
finished, so we can recursively wait on previous phases to complete.

Differential Revision: https://phabricator.services.mozilla.com/D152922
2022-08-09 17:23:01 +00:00
Barret Rennie 1c6c5c78c0 Bug 1769152 - Refactor IOUtils to use an EnumeratedArray for shutdown blockers r=nika
Differential Revision: https://phabricator.services.mozilla.com/D152921
2022-08-09 17:23:00 +00:00
Mark Banner 7428be4a86 Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Tom Ritter 519e427b97 Bug 1770498: Correct a call to ShouldRFP r=smaug
Instead of trying to get the ScriptObjectPrincipal
of a window; use the window's Document, which will
take into account a lot more context.

Differential Revision: https://phabricator.services.mozilla.com/D150584
2022-07-15 20:39:16 +00:00
Barret Rennie ddeadecee4 Bug 1779562 - Always perform parent process assertion in IOUtils methods r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D151820
2022-07-14 12:59:47 +00:00
Barret Rennie c50b2c34fa Bug 1778553 - Include JS caller in IOUtils non parent process crashes r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D151313
2022-07-12 18:41:23 +00:00
Tooru Fujisawa 54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Barret Rennie 305b4cd077 Bug 1772941 - Port osfile.jsm usage to IOUtils in toolkit/content/ r=florian,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149303
2022-07-12 00:25:35 +00:00
Andreea Pavel 7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa 8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa 03b55aae15 Bug 1667455 - Part 10: Stop importing Services.jsm from chrome-priv HTML code, multi-line cases. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150899
2022-07-11 12:41:53 +00:00
Tooru Fujisawa 52c95734e7 Bug 1667455 - Part 9: Stop importing Services.jsm from chrome-priv HTML code, single-line cases. r=kmag,necko-reviewers,geckoview-reviewers,extension-reviewers,m_kato,dragana
Differential Revision: https://phabricator.services.mozilla.com/D150898
2022-07-11 12:41:52 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Olivia Hall 93187cda98 Bug 1771229 - Pause Location Updates on Android when in Background r=geckoview-reviewers,owlish
This bug unsets the location listeners when the Android lifecycle
`onPause` is called and sets the location listeners when `onResume` is
called (if location was in use).

Differential Revision: https://phabricator.services.mozilla.com/D149442
2022-06-29 21:22:01 +00:00
Barret Rennie 5703e6ec6b Bug 1773186 - Add IOUtils::ComputeHexDigest r=nika,keeler
Differential Revision: https://phabricator.services.mozilla.com/D148966
2022-06-28 19:42:34 +00:00
Marian-Vasile Laza 6abce8c12a Backed out changeset b10faac4d933 (bug 1773186) for causing bustages on chrome.ini (test_ioutils_hashfile.html). 2022-06-28 22:18:15 +03:00
Barret Rennie d91299421f Bug 1773186 - Add IOUtils::ComputeHexDigest r=nika,keeler
Differential Revision: https://phabricator.services.mozilla.com/D148966
2022-06-28 18:47:44 +00:00
smolnar 3a496831ac Backed out 2 changesets (bug 1773186, bug 1772742) for causing mochitest failures in dom/system/tests/ioutils/test_ioutils_hashfile.html
Backed out changeset ef49b1ddf9f1 (bug 1772742)
Backed out changeset 8ec51be873d4 (bug 1773186)
2022-06-28 18:50:16 +03:00
Barret Rennie d570723e06 Bug 1773186 - Add IOUtils::ComputeHexDigest r=nika,keeler
Differential Revision: https://phabricator.services.mozilla.com/D148966
2022-06-28 15:03:43 +00:00
Barret Rennie 3a4f541617 Bug 1776481 - Classify IOUtils and PathUtils under Toolkit: OS.File r=nika
Differential Revision: https://phabricator.services.mozilla.com/D150272
2022-06-27 19:41:53 +00:00
Kris Maglione 27515a3d83 Bug 1770237: Part 17 - Rename mozJSComponentLoader to mozJSModuleLoader r=mccr8,decoder
Differential Revision: https://phabricator.services.mozilla.com/D148197
2022-06-22 20:31:37 +00:00
Tooru Fujisawa 5e0731b2a4 Bug 1608282 - Part 4: Remove Cu.defineLazyGlobalGetters from JSM. r=webdriver-reviewers,extension-reviewers,jdescottes,kmag
Depends on D149196

Differential Revision: https://phabricator.services.mozilla.com/D149197
2022-06-16 00:19:54 +00:00
Butkovits Atila 8218713aac Backed out 4 changesets (bug 1608282) for causing hazard failures. CLOSED TREE
Backed out changeset 32aebc8be201 (bug 1608282)
Backed out changeset 37c970364269 (bug 1608282)
Backed out changeset ced8d82cc2d2 (bug 1608282)
Backed out changeset e26e480c7dd6 (bug 1608282)
2022-06-16 03:10:02 +03:00
Tooru Fujisawa 8b8d6b141a Bug 1608282 - Part 4: Remove Cu.defineLazyGlobalGetters from JSM. r=webdriver-reviewers,extension-reviewers,jdescottes,kmag
Depends on D149196

Differential Revision: https://phabricator.services.mozilla.com/D149197
2022-06-15 20:34:35 +00:00
David Parks 7713d94171 Bug 1774073: Backout bug 1704500 from mozilla-central and mozilla-beta r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D149163
2022-06-13 19:14:06 +00:00
Joel Maher 8411de78e3 Bug 1769257 - run a subset of mochitests with a conditioned profile. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D148651
2022-06-10 19:57:36 +00:00
Tooru Fujisawa c2bba3bcf0 Bug 1772094 - Part 8: Use plain object for lazy getter in dom/system/. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D147915
2022-06-07 04:29:14 +00:00
Emilio Cobos Álvarez 1c7e13ae63 Bug 1772125 - Implement MLS fallback for GeoclueLocationProvider. r=maciejsszmigiero
Even tho it is a configuration error, it is extremely confusing to click
"Allow" in Firefox and get a "denied access" error.

Instead fall back to MLS once we error, like other location providers
do.

MANUAL PUSH: Maciej doesn't have editbugs to approve patches yet, see
bug 1772813.

Differential Revision: https://phabricator.services.mozilla.com/D147864
2022-06-06 13:57:20 +02:00
serge-sans-paille 2f3f06ad63 Bug 1772747 - Cleanup dom/geolocation, dom/system, dom/battery and dom/canvas includes r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D148351
2022-06-06 08:13:34 +00:00
David Parks b2b9a42399 Bug 1704500: Windows ILocation should be allowed in all COM execution contexts r=Jamie
CLSCTX_ALL is in line with MSDN sample code.

Differential Revision: https://phabricator.services.mozilla.com/D148080
2022-06-02 19:09:36 +00:00
Barret Rennie 868f461b18 Bug 1769094 - nsLocalFile::Append{,RelativePath} should throw when appending .. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D146228
2022-05-21 23:03:51 +00:00
Butkovits Atila 7bbda20470 Backed out changeset 37142ab92a09 (bug 1769094) for causing gecko view failures at TestFilePreferencesUnix. CLOSED TREE 2022-05-20 08:25:24 +03:00