8872 Commits

Author SHA1 Message Date
Norisz Fay
e86f1fa0e9 Backed out 5 changesets (bug 1838829) for causing mochitest failures CLOSED TREE
Backed out changeset 693d34c8447d (bug 1838829)
Backed out changeset 903d9ff4afaa (bug 1838829)
Backed out changeset 5e51feff7467 (bug 1838829)
Backed out changeset e125be49d2a6 (bug 1838829)
Backed out changeset 1a8cf3c83dc4 (bug 1838829)
2023-06-22 03:37:07 +03:00
Kershaw Chang
2cdb6b3a96 Bug 1838829 - Skip failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,dimi,valentin,robwu
Differential Revision: https://phabricator.services.mozilla.com/D181251
2023-06-21 19:43:33 +00:00
Peter Van der Beken
14320c7601 Bug 1837370 - "DataCloneError: The object could not be cloned" when using the Firefox Translations addon. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D180385
2023-06-21 05:57:52 +00:00
Alexandre Lissy
d5174158c5 Bug 1830523 - Make IOInterposer RAII to avoid leaks r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D180924
2023-06-15 12:53:59 +00:00
Tom Schuster
e468e1cdc8 Bug 1837153 - Remove more RFPTarget::Unknown default parameters in classes inheriting from nsIGlobalObject. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D180198
2023-06-13 19:32:17 +00:00
Andrew McCreight
0e8ae89e8c Bug 1834365 - Add a test to demonstrate that XPCOM JS objects don't work as weak map keys. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D178692
2023-06-12 20:31:07 +00:00
Cristian Tuns
bc4cfd88c2 Backed out 4 changesets (bug 1837582, bug 1837153) for causing build bustages in nsGlobalWindowInner.cpp on Android CLOSED TREE
Backed out changeset e17bfa5f8959 (bug 1837153)
Backed out changeset 662b7f7504b9 (bug 1837582)
Backed out changeset 7c5fa154397d (bug 1837153)
Backed out changeset b447d95efe6e (bug 1837153)
2023-06-12 06:23:38 -04:00
Tom Schuster
d505c2c62e Bug 1837153 - Remove more RFPTarget::Unknown default parameters in classes inheriting from nsIGlobalObject. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D180198
2023-06-12 09:48:03 +00:00
Norisz Fay
e78fa454b2 Backed out changeset 7d3fb55b4418 (bug 1837370) for causing hazard bustage on StructuredCloneHolder.cpp CLOSED TREE 2023-06-09 13:53:18 +03:00
Peter Van der Beken
c51d0fdda5 Bug 1837370 - "DataCloneError: The object could not be cloned" when using the Firefox Translations addon. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D180385
2023-06-09 07:03:15 +00:00
Jan de Mooij
302ec1c38d Bug 1835876 part 2 - Disable code write protection in content processes. r=nbp
We've worked with the security and performance teams to re-evaluate the W^X policy
we have in place to mark JIT code memory pages as either writable or executable
(but not both).

Recommendation from the security team is to disable this mitigation in the content
process, because it's not worth the performance cost since there are known and reusable
techniques to bypass it. The V8 team has recently reached a similar conclusion.

We still leave write protection enabled in the parent process and other non-content
processes, because performance is less of a concern there and it's unclear if the techniques
to bypass this mitigation apply to these processes as well.

This patch adds a `javascript.options.content_process_write_protect_code` pref for this
and sets it to false. The JS shell has a new `--write-protect-code=off/on` flag. This
defaults to `on` for now to help catch W^X violations early on.

This is expected to improve performance on Speedometer 3 by about 3-4%. We've seen similar
numbers for other benchmarks including page load measurements.

Depends on D179468

Differential Revision: https://phabricator.services.mozilla.com/D179469
2023-06-07 16:34:51 +00:00
Tom Schuster
433ca059f3 Bug 1834744 - Introduce and use two RFPTargets for JS options. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D179535
2023-06-07 10:52:30 +00:00
Mark Banner
6725448902 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Norisz Fay
e5b6fe9dcd Backed out 3 changesets (bug 1835876) for causing process crashes on [@ NS_ABORT_OOM] CLOSED TREE
Backed out changeset 503f95d5ddc5 (bug 1835876)
Backed out changeset 9d31a829691c (bug 1835876)
Backed out changeset 1ce5ad17da6b (bug 1835876)
2023-06-06 22:37:24 +03:00
Daniel Minor
8896bd8a03 Bug 1826574 - Add support for Unicode Sets; r=iain
Differential Revision: https://phabricator.services.mozilla.com/D178942
2023-06-06 12:28:09 +00:00
Otto Länd
6451fe31ee Bug 1835876: apply code formatting via Lando
# ignore-this-changeset
2023-06-06 12:23:37 +00:00
Jan de Mooij
3d410f7cb3 Bug 1835876 part 2 - Disable code write protection in content processes. r=nbp
We've worked with the security and performance teams to re-evaluate the W^X policy
we have in place to mark JIT code memory pages as either writable or executable
(but not both).

Recommendation from the security team is to disable this mitigation in the content
process, because it's not worth the performance cost since there are known and reusable
techniques to bypass it. The V8 team has recently reached a similar conclusion.

We still leave write protection enabled in the parent process and other non-content
processes, because performance is less of a concern there and it's unclear if the techniques
to bypass this mitigation apply to these processes as well.

This patch adds a `javascript.options.content_process_write_protect_code` pref for this
and sets it to false. The JS shell has a new `--write-protect-code=off/on` flag. This
defaults to `on` for now to help catch W^X violations early on.

This is expected to improve performance on Speedometer 3 by about 3-4%. We've seen similar
numbers for other benchmarks including page load measurements.

Differential Revision: https://phabricator.services.mozilla.com/D179469
2023-06-06 12:16:46 +00:00
Tooru Fujisawa
d70e44475d Bug 1831845 - Part 2: Use JS::ConstUTF8CharsZ in JSErrorBase::filename. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D179505
2023-06-06 07:16:08 +00:00
Tooru Fujisawa
1a33bac9cc Bug 1831845 - Part 1: Use JS::ConstUTF8CharsZ in JS::TransitiveCompileOptions::{filename_,introducerFilename_}. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D179504
2023-06-06 07:16:08 +00:00
Cosmin Sabou
565cfe4d40 Backed out 4 changesets (bug 1831845) for causing spidermonkey bustages. CLOSED TREE
Backed out changeset a9765ccd45b1 (bug 1831845)
Backed out changeset 0d23be10f378 (bug 1831845)
Backed out changeset 5c31df65197e (bug 1831845)
Backed out changeset 11e79bc5149a (bug 1831845)
2023-06-06 07:54:03 +03:00
Tooru Fujisawa
517c240172 Bug 1831845 - Part 2: Use JS::ConstUTF8CharsZ in JSErrorBase::filename. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D179505
2023-06-06 04:29:07 +00:00
Tooru Fujisawa
652ad43066 Bug 1831845 - Part 1: Use JS::ConstUTF8CharsZ in JS::TransitiveCompileOptions::{filename_,introducerFilename_}. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D179504
2023-06-06 04:29:07 +00:00
Mark Banner
5d59c7aecd Bug 1824613 - Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis
Depends on D179819

Differential Revision: https://phabricator.services.mozilla.com/D179820
2023-06-02 20:00:35 +00:00
Noemi Erli
fb0108936d Backed out 3 changesets (bug 1826574) for causing failures in browser_script_command_execute_basic.js CLOSED TREE
Backed out changeset e886a7d39892 (bug 1826574)
Backed out changeset 47a50e1c3e11 (bug 1826574)
Backed out changeset 5ece69e22ffd (bug 1826574)
2023-05-30 23:27:28 +03:00
Daniel Minor
03a12f4d8f Bug 1826574 - Add support for Unicode Sets; r=iain
Differential Revision: https://phabricator.services.mozilla.com/D178942
2023-05-30 19:31:19 +00:00
Kris Maglione
e94ae217e5 Bug 1648545: Part 1 - Move most of SpecialPowers to testing-common. r=ahal,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D119448
2023-05-27 03:46:44 +00:00
Matthew Gaudet
a44cb33492 Bug 1795816 - Ship Array.fromAsync r=arai,peterv
Differential Revision: https://phabricator.services.mozilla.com/D178482
2023-05-26 19:16:36 +00:00
Mark Banner
8b4f426ecf Bug 1834204 - Update more consumers to import ES modules directly. r=kpatenio,geckoview-reviewers,whimboo,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D178590
2023-05-26 11:36:33 +00:00
Chris Peterson
07f19511ef Bug 1791961 - js: Fix C++20 -Wambiguous-reversed-operator warnings. r=spidermonkey-reviewers,anba
clang is warning that C++20 expects comparison operators to be commutative: `a == b` and `b == a` should resolve to the same comparison operator function. Warnings about the comparison of const and non-const objects can be fixed by making the comparison operator function const.

Depends on D179020

Differential Revision: https://phabricator.services.mozilla.com/D179021
2023-05-26 04:51:43 +00:00
Tim Chevalier
64b1488006 Bug 1811057 - Ship Change Array by Copy Feature r=mgaudet,devtools-reviewers,peterv CLOSED TREE
Set the `--enable-change-array-by-copy` shell flag and the
`javascript.options.experimental.enable_change_array_by_copy` pref to true
by default in all builds.

Remove the `--enable-change-array-by-copy` build flag from `js/moz.configure`
and make all code previously guarded by `#ifdef ENABLE_CHANGE_ARRAY_BY_COPY`
compile unconditionally.

Remove `change-array-by-copy` from testing build configurations (non262
and jit-test tests are no longer guarded with
`getBuildConfiguration()['change-array-by-copy']`

Remove all code from test config files that sets
`javascript.options.experimental.enable_change_array_by_copy`; only
`StaticPrefList.yaml` should set this pref.

Fix non262 unscopables test that apparently wasn't running before to use
the correct names for change-array-by-copy methods

Remove the `TypedArray` property from `gPrototypeProperties` in
`test_xrayToJS.xhtml`, as this property was written but never read.

Differential Revision: https://phabricator.services.mozilla.com/D174699
2023-05-25 21:25:13 +00:00
Cristian Tuns
1bdbc86b4f Backed out changeset f49b182be8f3 (bug 1811057) for causing conflicts with merge back, will reland. 2023-05-25 20:34:44 -04:00
Noemi Erli
06b68d0d45 Backed out 4 changesets (bug 1648545) for causing mass failures
Backed out changeset ac3d639547fa (bug 1648545)
Backed out changeset f63760c845f3 (bug 1648545)
Backed out changeset 652b48b10d37 (bug 1648545)
Backed out changeset 1ca7abd873d1 (bug 1648545)
2023-05-26 02:12:58 +03:00
Kris Maglione
d648a1f5fe Bug 1648545: Part 1 - Move most of SpecialPowers to testing-common. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D119448
2023-05-25 22:04:31 +00:00
Tim Chevalier
fb0c2b49ca Bug 1811057 - Ship Change Array by Copy Feature r=mgaudet,devtools-reviewers,peterv
Set the `--enable-change-array-by-copy` shell flag and the
`javascript.options.experimental.enable_change_array_by_copy` pref to true
by default in all builds.

Remove the `--enable-change-array-by-copy` build flag from `js/moz.configure`
and make all code previously guarded by `#ifdef ENABLE_CHANGE_ARRAY_BY_COPY`
compile unconditionally.

Remove `change-array-by-copy` from testing build configurations (non262
and jit-test tests are no longer guarded with
`getBuildConfiguration()['change-array-by-copy']`

Remove all code from test config files that sets
`javascript.options.experimental.enable_change_array_by_copy`; only
`StaticPrefList.yaml` should set this pref.

Fix non262 unscopables test that apparently wasn't running before to use
the correct names for change-array-by-copy methods

Remove the `TypedArray` property from `gPrototypeProperties` in
`test_xrayToJS.xhtml`, as this property was written but never read.

Differential Revision: https://phabricator.services.mozilla.com/D174699
2023-05-25 21:25:13 +00:00
Erik Nordin
38fc79310f Bug 1834595 - Improve clarity of defineLazyPreferenceGetter r=kmag
Improves the clarity of defineLazyPreferenceGetter by resolving
ambiguity around the intended type of parameter aDefaultValue

Differential Revision: https://phabricator.services.mozilla.com/D178828
2023-05-25 17:08:58 +00:00
Mark Banner
b20b7a1265 Bug 1834176 - Avoid using NetUtil as a test file in js/xpconnect/tests. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D178588
2023-05-25 14:12:11 +00:00
Butkovits Atila
2250cee76d Backed out 3 changesets (bug 1795816, bug 1833946) for causing failures at from_async.js. CLOSED TREE
Backed out changeset c717912156f5 (bug 1795816)
Backed out changeset 7c2aa1e8b112 (bug 1795816)
Backed out changeset d99d41fd6d86 (bug 1833946)
2023-05-25 18:03:23 +03:00
Matthew Gaudet
2c85996683 Bug 1795816 - Ship Array.fromAsync r=arai,peterv
Differential Revision: https://phabricator.services.mozilla.com/D178482
2023-05-25 13:16:39 +00:00
Cosmin Sabou
bb4c6b6b81 Backed out 2 changesets (bug 1834176) for having an unreferenced file in NetUtil.sys.mjs. CLOSED TREE
Backed out changeset 2cc40181bae9 (bug 1834176)
Backed out changeset f17584d19ea7 (bug 1834176)
2023-05-24 19:47:31 +03:00
Mark Banner
7adf681210 Bug 1834176 - Avoid using NetUtil as a test file in js/xpconnect/tests. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D178588
2023-05-24 16:11:15 +00:00
Sandor Molnar
9851fc3f10 Backed out changeset cb6db65172c6 (bug 1811057) for causing browser-time failures. CLOSED TREE 2023-05-24 09:14:11 +03:00
Tim Chevalier
d62299d426 Bug 1811057 - Ship Change Array by Copy Feature r=mgaudet,devtools-reviewers,peterv
Set the `--enable-change-array-by-copy` shell flag and the
`javascript.options.experimental.enable_change_array_by_copy` pref to true
by default in all builds.

Remove the `--enable-change-array-by-copy` build flag from `js/moz.configure`
and make all code previously guarded by `#ifdef ENABLE_CHANGE_ARRAY_BY_COPY`
compile unconditionally.

Remove `change-array-by-copy` from testing build configurations (non262
and jit-test tests are no longer guarded with
`getBuildConfiguration()['change-array-by-copy']`

Remove all code from test config files that sets
`javascript.options.experimental.enable_change_array_by_copy`; only
`StaticPrefList.yaml` should set this pref.

Fix non262 unscopables test that apparently wasn't running before to use
the correct names for change-array-by-copy methods

Remove the `TypedArray` property from `gPrototypeProperties` in
`test_xrayToJS.xhtml`, as this property was written but never read.

Differential Revision: https://phabricator.services.mozilla.com/D174699
2023-05-23 22:01:18 +00:00
Natalia Csoregi
e87ecf485e Backed out 3 changesets (bug 1834222, bug 1834176) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset 346d3a1568dd (bug 1834222)
Backed out changeset ea1d8b634bfc (bug 1834176)
Backed out changeset 74d1880272d3 (bug 1834176)
2023-05-24 04:29:45 +03:00
Mark Banner
fbc15bdb60 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 19:09:29 +00:00
Mark Banner
f9b1e17bf3 Bug 1834176 - Avoid using NetUtil as a test file in js/xpconnect/tests. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D178588
2023-05-23 19:09:29 +00:00
Iulian Moraru
0c63be14bc Backed out 3 changesets (bug 1795816, bug 1833946) for causing multiple failures on test_xrayToJS.xhtml.
Backed out changeset 25ce4c12dfca (bug 1795816)
Backed out changeset a05698163bc8 (bug 1795816)
Backed out changeset 70e3ee0a0312 (bug 1833946)
2023-05-24 01:48:01 +03:00
Matthew Gaudet
f55b9c08a6 Bug 1795816 - Ship Array.fromAsync r=arai
Differential Revision: https://phabricator.services.mozilla.com/D178482
2023-05-23 15:23:04 +00:00
André Bargull
0265a0f789 Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D151449
2023-05-23 12:11:39 +00:00
André Bargull
6028cd6b2b Bug 1492090 - Part 2: Use UTF-8 encoding when printing to stdout and use CompileUtf8Path for xpc-shells. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D151446
2023-05-23 12:11:38 +00:00
André Bargull
cc39659e1d Bug 1492090 - Part 1: Fix some comments, remove a #define, and make one fclose call more robust. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D151445
2023-05-23 12:11:38 +00:00