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

7715 Коммитов

Автор SHA1 Сообщение Дата
Masatoshi Kimura b9a2ffc214 Bug 1482279 - Stop using Cu.forcePermissiveCOWs() in SpecialPowers. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D74641
2020-05-31 03:41:03 +00:00
Tilden Windsor 9dd0c82162 Bug 1334305 - Refactored DebugDump. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D77128
2020-05-29 16:57:57 +00:00
Andrew McCreight 69800c1e15 Bug 1640964 - Remove NS_ERROR_XPC_CANT_PASS_CPOW_TO_NATIVE. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D76870
2020-05-26 22:19:33 +00:00
Adam Vandolder a7c1394496 Bug 1640188 - Add pref and flag to enable Iterator Helpers in nightly, off by default. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D76542
2020-05-26 14:31:48 +00:00
Gijs Kruitbosch 38b061ef45 Bug 1638373 - remove js/ipc now that CPOWs are dead, r=mccr8
Depends on D76597

Differential Revision: https://phabricator.services.mozilla.com/D76598
2020-05-24 18:47:04 +00:00
Gijs Kruitbosch 2f983e6cfa Bug 1638373 - remove Cu.isCrossProcessWrapper now that CPOWs are dead, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D76597
2020-05-24 23:38:17 +00:00
Tom Schuster 98d62427ed Bug 1636691 - Use pending exception stack as rejection stack for Promises. r=arai<Paste>
Differential Revision: https://phabricator.services.mozilla.com/D74541
2020-05-23 11:53:48 +00:00
Andrew McCreight 81acf0a57c Bug 1636991 - Add a comment about XPCWrappedNativeProto ownership. DONTBUILD r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D74690
2020-05-22 23:02:27 +00:00
Mihai Alexandru Michis 37ef8a125d Backed out changeset a845717e4d10 (bug 1482279) for causing multiple failures.
CLOSED TREE
2020-05-23 02:22:20 +03:00
Masatoshi Kimura 0701e89b7e Bug 1482279 - Stop using Cu.forcePermissiveCOWs() in SpecialPowers. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D74641
2020-05-22 21:46:25 +00:00
Jon Coppeard 056fa68d8e Bug 1637318 - Add GC_PRETENURE_COUNT_2 telemetry and mark GC_PRETENURE_COUNT for expiry r=sfink
Depends on D75524

Differential Revision: https://phabricator.services.mozilla.com/D75525
2020-05-15 17:00:26 +00:00
Jon Coppeard bbb770e96c Bug 1637318 - Add GC_BUDGET_MS_2 telemetry and mark GC_BUDGET_MS for expiry r=sfink
Depends on D75523

Differential Revision: https://phabricator.services.mozilla.com/D75524
2020-05-15 15:54:16 +00:00
Jon Coppeard c1ae910c44 Bug 1637318 - Add GC_MARK_RATE_2 telemetry and mark GC_MARK_RATE for expiry r=sfink
Depends on D75522

Differential Revision: https://phabricator.services.mozilla.com/D75523
2020-05-15 15:49:31 +00:00
Jon Coppeard aa4ce4cca7 Bug 1637318 - Add GC_MARK_GRAY_MS_2 telemetry and mark GC_MARK_GRAY_MS for expiry r=sfink
Depends on D75520

Differential Revision: https://phabricator.services.mozilla.com/D75522
2020-05-15 15:48:46 +00:00
Jon Coppeard 273f5b75f3 Bug 1637318 - Add GC_MARK_ROOTS_US telemetry and mark GC_MARK_ROOTS_MS for expiry r=sfink
Most samples are between 0 and 1 ms so replace with measurement in microseconds.

Differential Revision: https://phabricator.services.mozilla.com/D75520
2020-05-15 15:47:47 +00:00
Frederik Braun de3412e689 Bug 1613609 - Add required loadinfo flag requests initiated with SystemPrincipal r=necko-reviewers,dragana
Adding the flag to existing channel/loadinfo object for:
- PushServices HTTP, WebSocket
- NetworkGeolocationProvider
- NetUtil.jsm's NewChannel
- NetworkConnectivityService
- OCSP
- Portal Detection
- ProductAddonChecker.jsm
- URLClassifier

Differential Revision: https://phabricator.services.mozilla.com/D75063
2020-05-19 08:54:58 +00:00
Tom Tung b66c778c91 Bug 1606624 - Changes on a xpconnect test; r=lth
Depends on D74596

Differential Revision: https://phabricator.services.mozilla.com/D74597
2020-05-18 02:22:21 +00:00
Tom Schuster 23d6a01f6d Bug 1638549 - Fix test broken by disabled asyncstacks. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D75682
2020-05-17 17:58:52 +00:00
Nicklas Boman 4f2fa0cfa7 Bug 1515419 - fixing ToNewCString (and ToNewUnicode as well) xpcom/string/nsReadableUtils.cpp r=froydnj,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D17411
2020-05-17 06:58:48 +00:00
Tom Schuster a5a57442ed Bug 1636590 - Expose isPromiseRejection on nsIScriptError. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D74549
2020-05-15 20:18:34 +00:00
Tom Schuster cb531f543a Bug 1636590 - Add a test suite for nsIScriptError. r=baku
This makes is easier to actually assert that we have the right exception value.
We do have similar tests already, but most of them aren't based directly
on nsIScriptError.

Differential Revision: https://phabricator.services.mozilla.com/D74528
2020-05-15 20:18:34 +00:00
Jon Coppeard 03014d6e7c Bug 1637642 - Add telemetry for weak marking phases r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D75149
2020-05-15 07:17:25 +00:00
Jon Coppeard be8edb839f Bug 1637642 - Add telemetry for GC preparation phase that occurs before root marking r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D75148
2020-05-15 07:14:39 +00:00
Jon Coppeard 7acb0aa81c Bug 1637663 - Remove SCC telemetry r=sfink
This was added for incremental sweeping of groups of zones (or compartments as they were then).  This has been working fine for a long time and I don't think we need to continue collecting telemetry about it.

This leaves the data collection in place as it's still reported to the profile (which makes more sense I think).

Differential Revision: https://phabricator.services.mozilla.com/D75147
2020-05-15 07:14:00 +00:00
Tom Schuster d76da80aa0 Bug 1636624 - Mitigate leaks involving exceptions with CreateSciptError. r=mccr8
Doing this kind of censoring in "CreateScriptError" turns out to be more effort
than I thought. We don't have a JSContext to create Rooted instances.
This still catches all the relevant places where we are creating script-errors without inner-window-ids.

Differential Revision: https://phabricator.services.mozilla.com/D75152
2020-05-13 17:53:57 +00:00
Iain Ireland 9206b149be Bug 1634135: Update test_xrayToJS to handle Regexp.prototype.dotAll r=bholley
We are adding support for the dotAll (/s) RegExp flag, so the list of expected properties on the RegExp prototype has to be updated.

Differential Revision: https://phabricator.services.mozilla.com/D74149
2020-05-13 16:23:33 +00:00
André Bargull 8642ae3db5 Bug 1629796: Replace finalization iterator with multiple callback calls. r=jonco
Implements the spec changes from: https://github.com/tc39/proposal-weakrefs/pull/187

The spec change removes the `FinalizationRegistryCleanupIterator` in favour of
calling the clean-up callback for each finalised value. It also allows to call
`cleanupSome()` within the callback function.

`FinalizationRegistryObject::cleanupQueuedRecords()` has been changed to iterate
from back to front, because this allows us to call `GCVector::popCopy()`, which
makes it more efficient to remove entries from the `records` vector.

Differential Revision: https://phabricator.services.mozilla.com/D70821
2020-05-13 15:25:24 +00:00
Dorel Luca 609e319c24 Merge mozilla-central to autoland. CLOSED TREE 2020-05-12 17:32:56 +03:00
Sebastian Hengst ff55bf0ffc Backed out 12 changesets (bug 1634135) for causing crashes e.g. when urls get pasted in Slack (bug 1637243). a=backout
Backed out changeset ee1018a8611a (bug 1634135)
Backed out changeset 0081b4c73633 (bug 1634135)
Backed out changeset 4eda5acc8e1f (bug 1634135)
Backed out changeset d8f770d123f2 (bug 1634135)
Backed out changeset 3f680457842f (bug 1634135)
Backed out changeset f3b9c956fa85 (bug 1634135)
Backed out changeset b3b82e1cda7f (bug 1634135)
Backed out changeset 9dddfd577a3d (bug 1634135)
Backed out changeset ba01ceb63cf3 (bug 1634135)
Backed out changeset f53110858cb9 (bug 1634135)
Backed out changeset 49b9d6a8a3a5 (bug 1634135)
Backed out changeset a73e5ff68480 (bug 1634135)
2020-05-12 16:00:06 +02:00
Yoshi Cheng-Hao Huang ede21ac58b Bug 1634720 - use UniquePtr::reset to release the pointer. r=KrisWright
After fixing the timeout, I found there's a leak for the RunnableTask
dispatched to HelperThreadPool.

Differential Revision: https://phabricator.services.mozilla.com/D74736
2020-05-12 07:15:24 +00:00
Yoshi Cheng-Hao Huang abb43a4823 Bug 1634720 : Add HelperThreadPoolShutdownObserver to shut down HelperThreadPool. r=KrisWright
When nsThreadManager shuts down, it will shutdown all the threads,
including the main thread of HelperThreadPool.

However the main thread of HelperThreadPool has been waiting.
https://searchfox.org/mozilla-central/rev/446160560bf32ebf4cb7c4e25d7386ee22667255/xpcom/threads/nsThreadPool.cpp#277

and nsThreadManager will have to wait until HelperThreadPool wakes up to
shutdown the main thread of HelperThreadPool.

Adding a HelperThreadPoolShutdownObserver to observe the
xpcom-shutdown-threads notification, and shut down HelperThreadPool
accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D74735
2020-05-12 03:38:54 +00:00
Andrew McCreight f9c07914d4 Bug 1636990 - Inline NS_NewBackstagePass. r=kmag
Also, make an NS_ERROR in ~mozJSComponentLoader() into an assertion.

Differential Revision: https://phabricator.services.mozilla.com/D74691
2020-05-11 22:46:24 +00:00
Tom Schuster 25a8ce26ec Bug 1277801 - Introduce Cu.isOpaqueWrapper. r=peterv
With the following changes Object.prototype.toString is not using the JSClass' name
anymore. This means we now fail to detect opaque wrappers, because they just get the default string: [object Object]

Differential Revision: https://phabricator.services.mozilla.com/D74016
2020-05-11 20:53:10 +00:00
Iain Ireland c329847916 Bug 1634135: Update test_xrayToJS to handle Regexp.prototype.dotAll r=bholley
We are adding support for the dotAll (/s) RegExp flag, so the list of expected properties on the RegExp prototype has to be updated.

Differential Revision: https://phabricator.services.mozilla.com/D74149
2020-05-10 16:00:27 +00:00
Tom Schuster 4f64f475f2 Bug 1595046 - Make it possible to inspect every exception value in the web console. r=jonco,baku,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D64437
2020-05-08 20:54:17 +00:00
Logan Smyth 208709890a Bug 1628853 - Expose a feature flag to enable/disable //# sourceXX= parsing. r=arai
These pragmas can be used to influence stack trace filenames, and to affect
how and where files show up in developer tools. In some circumstances, it can
be nice to disable allof that functionality in order to ensure that you get
the stack trace and debug information as SpiderMonkey sees it.

Differential Revision: https://phabricator.services.mozilla.com/D72103
2020-05-08 00:37:21 +00:00
Florian Quèze fa2f59b3f7 Bug 1630982 - Terminate browser-chrome mochitests with an exit(0), r=gbrown,dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D71336
2020-05-07 17:34:30 +00:00
Dorel Luca d9c6949cf6 Backed out changeset b77388326b1b (bug 1630982) for causing leaks on mochitest jobs. CLOSED TREE 2020-05-07 13:49:20 +03:00
Florian Quèze c1fe95dc03 Bug 1630982 - Terminate browser-chrome mochitests with an exit(0), r=gbrown,dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D71336
2020-05-07 09:25:57 +00:00
Tom Schuster f77a3af47a Bug 1277799 - Define @@toStringTag on all DOM interface prototype objects. r=peterv
Instead of manually defining toStringTag we now add the toStringTag symbol to the list of properties.
This is also how we usually define toStringTag in the JS engine.
Even though this changes more code I like this approach better. Everything is centralized in the generated bindings file.

Differential Revision: https://phabricator.services.mozilla.com/D72179
2020-05-05 17:54:51 +00:00
Simon Giesecke cbc8da0cf3 Bug 1626570 - Improve handling of copying arrays in js/xpconnect/. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D72349
2020-05-05 10:40:31 +00:00
Razvan Maries c2b627950c Backed out 10 changesets (bug 1626570) for build bustages. CLOSED TREE
Backed out changeset a3f17d392234 (bug 1626570)
Backed out changeset 5247e1ddd5d6 (bug 1626570)
Backed out changeset c339fd44c9f8 (bug 1626570)
Backed out changeset 4c69a4c013b3 (bug 1626570)
Backed out changeset e85450d69351 (bug 1626570)
Backed out changeset 793f978248b3 (bug 1626570)
Backed out changeset 68b4c2418d83 (bug 1626570)
Backed out changeset 52d0911d4ad3 (bug 1626570)
Backed out changeset a7d4e3a59ee3 (bug 1626570)
Backed out changeset 6c06d397a5d2 (bug 1626570)
2020-05-05 13:37:08 +03:00
Simon Giesecke f13b476ee4 Bug 1626570 - Improve handling of copying arrays in js/xpconnect/. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D72349
2020-05-05 09:49:40 +00:00
Lars T Hansen 414fee387b Bug 1478632 - wasm simd, part 1: feature gating and related prep. r=rhunt
We add a configuration option for SIMD and apply ENABLE_WASM_SIMD
throughout the engine as appropriate, mostly to insert #error or
MOZ_CRASH where things need to be done in later patches or for
architectures that we won't currently consider.

We add a command line switch for the shell and an option for
about:config and plumb the value of this through the engine.

Differential Revision: https://phabricator.services.mozilla.com/D57940
2020-05-05 08:17:47 +00:00
Gijs Kruitbosch b8cdf2ffcc Bug 1631021 - enable global sharing for BrowserTestUtils.jsm, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D72396
2020-04-29 19:47:09 +00:00
Tom Schuster bd161088e3 Bug 1633145 - Replace INTERNED_STRING_TO_JSID. r=jandem
I am honstely still not convinced that this function should actually exists.
It seems like a convulted way of saying AtomToId, while also asserting that the atom is pinned.

Differential Revision: https://phabricator.services.mozilla.com/D72563
2020-04-30 18:18:12 +00:00
Benjamin Bouvier 675cdfa277 Bug 1618595: Disable Cranelift on aarch64 when reftypes are enabled; r=lth,perftest-reviewers,sparky
This requires adding a new JSOptions field (for internal use within the shell),
as well as a new browser pref (to support possible Cranelift benchmarking on
aarch64).

Differential Revision: https://phabricator.services.mozilla.com/D72907
2020-04-30 11:55:13 +00:00
Liang-Heng Chen 9d2d8bbeb9 Bug 1629707 - add `IntrinsicStoragePrincipal` to `nsIScriptObjectPrincipal`; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D73132
2020-04-30 05:24:10 +00:00
Andrew McCreight 6bc3c0572e Bug 1632338 - Allow remote window proxies before SetNewDocument. r=peterv
In BrowsingContext::SetDocShell(), we indicate that any remote outer window
proxies need to be cleaned up, if we've transitioned from a remote window
proxy to a local one. However, we don't actually do the cleanup until
nsGlobalWindowOuter::SetNewDocument(), so don't assert if we find remote
window proxies when we're in between these two periods.

Also includes a formatting fix by clang-format.

Differential Revision: https://phabricator.services.mozilla.com/D72251
2020-04-27 15:22:53 +00:00
Tom Schuster 037471de0d Bug 1633145 - Add PropertyKey::isWellKnownSymbol. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D72537
2020-04-26 17:01:57 +00:00