776852 Commits

Author SHA1 Message Date
Ben Hearsum
72b7841950 Bug 1737177: Add nsSystemInfo runtime flag for whether running application is running under Microsoft Windows S Mode. r=mhowell
This patch uses the Windows.System.Profile.WindowsIntegrityPolicy class to determine whether or not Windows is in S mode. This class is only available beginning with SDK 17763 (newer than what we use right now), so we need to fetch it at runtime with some magic.

This is a completely no-op for Windows versions older than 1810, where the WindowsIntegrityPolicy class is not available.

Differential Revision: https://phabricator.services.mozilla.com/D130397
2021-11-16 15:11:32 +00:00
Greg Tatum
0f0b78cc1d Bug 1736907 - Add a build flag to experimentally build with ICU4X static data; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D129080
2021-11-16 15:09:09 +00:00
Henrik Skupin
57bc6555f9 Bug 1740225 - [wdspec] Don't print async shutdown logs for CI jobs. r=webdriver-reviewers,jdescottes
These logs have been added to help with the investigation of shutdown issues. But it turned out to not be that helpful. Lets get it removed from wdspec jobs to lesser clutter the logs.

Differential Revision: https://phabricator.services.mozilla.com/D130974
2021-11-16 14:58:50 +00:00
Henrik Skupin
bece95705b Bug 1740798 - [puppeteer] Update expected meta data. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131212
2021-11-16 14:58:11 +00:00
Henrik Skupin
d505f7b753 Bug 1740798 - [remote] Await the mouse event before returning from Input.dispatchMouseEvent(). r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131211
2021-11-16 14:58:11 +00:00
Kershaw Chang
32a2353494 Bug 1740515 - Add 'socket' in record_in_processes for telemetry probes in socket process, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D130980
2021-11-16 14:56:30 +00:00
Dave Townsend
45cb59267a Bug 1740539: Get siteName, image and description from twitter cards. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D130884
2021-11-16 14:54:09 +00:00
Dave Townsend
55b5583284 Bug 1740538: Get site name from organization microdata. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D130883
2021-11-16 14:54:09 +00:00
Dave Townsend
90890337d7 Bug 1740536: Support descriptions for pages. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D130882
2021-11-16 14:54:08 +00:00
Andrew McCreight
8648653dd1 Bug 1741246 - Pass JS::GCCellPtr in nsCycleCollectionTraversalCallback::NoteJSChild(). r=jonco
This is a pointer-sized value, so there's no need to pass it by
value. All of the SpiderMonkey places that pass GCCellPtr are doing
it by value, so this is aligning with that.

In addition, I removed a NoteJSChild() overload that is no longer
used.

Differential Revision: https://phabricator.services.mozilla.com/D131163
2021-11-16 14:52:54 +00:00
Julian Descottes
d226afc848 Bug 1740438 - [devtools] Remove backward compatibility code for recordAllocations target configuration option r=devtools-reviewers,bomsy
Depends on D130847

Differential Revision: https://phabricator.services.mozilla.com/D130848
2021-11-16 14:34:27 +00:00
Julian Descottes
474ba47047 Bug 1740438 - [devtools] Remove backward compatibility code for clearPickerSupport trait r=devtools-reviewers,bomsy
Depends on D130846

Differential Revision: https://phabricator.services.mozilla.com/D130847
2021-11-16 14:34:27 +00:00
Julian Descottes
cbd04951b9 Bug 1740438 - [devtools] Remove backward compatibility code for typename browsingContextTarget r=devtools-reviewers,bomsy
Depends on D130845

Differential Revision: https://phabricator.services.mozilla.com/D130846
2021-11-16 14:34:26 +00:00
Julian Descottes
a33af7064f Bug 1740438 - [devtools] Remove backward compatibility code for useChildTargetToFetchChildren r=devtools-reviewers,bomsy
Depends on D130844

Differential Revision: https://phabricator.services.mozilla.com/D130845
2021-11-16 14:34:26 +00:00
Julian Descottes
4e5f134653 Bug 1740438 - [devtools] Remove backward compatibility code for event-breakpoints trait r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130844
2021-11-16 14:34:25 +00:00
M. Sirringhaus
59c1dc3789 Bug 1736990 - Expose /dev/random and /proc/sys/crypto/fips_enabled in sandboxes. r=bryce,gcp
For running in FIPS mode, NSS needs to check /proc/sys/crypto/fips_enabled, to be able to tell whether FIPS is enabled or not.
FIPS also mandates using /dev/random instead of /dev/urandom.

Differential Revision: https://phabricator.services.mozilla.com/D129126
2021-11-16 14:16:19 +00:00
Dão Gottwald
57aa369908 Bug 1740950 - Remove arrow coloring code for CFR milestone notifications. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131057
2021-11-16 14:03:29 +00:00
Henrik Skupin
b7152c9264 Bug 1418778 - [wdspec] Re-enable disabled tests for CCOV on Windows. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131226
2021-11-16 13:46:56 +00:00
criss
523d8fe9b6 Backed out 3 changesets (bug 1740536, bug 1740538, bug 1740539) for causing xpcshell failures on test_snapshots_page_image.js. CLOSED TREE
Backed out changeset 5799bb789d17 (bug 1740539)
Backed out changeset 7b6d2c239663 (bug 1740538)
Backed out changeset 6d91e21a9ae3 (bug 1740536)
2021-11-16 16:12:08 +02:00
Dave Townsend
3dda387a13 Bug 1740539: Get siteName, image and description from twitter cards. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D130884
2021-11-16 13:13:26 +00:00
Dave Townsend
fe86d983fc Bug 1740538: Get site name from organization microdata. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D130883
2021-11-16 13:13:26 +00:00
Dave Townsend
606a3f598a Bug 1740536: Support descriptions for pages. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D130882
2021-11-16 13:13:25 +00:00
Will Kahn-Greene
e6d2fa42bb Bug 1594515 - Pass INTERNET_FLAG_SECURE when using https symbol supplier. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D130927
2021-11-16 13:13:23 +00:00
Dragana Damjanovic
2ed21be3b6 Bug 1740208 - mEarlyHintObserver needs to be called with a lock. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D131223
2021-11-16 12:28:13 +00:00
Dragana Damjanovic
89e1663bd8 Bug 1740208 - Implement an EarlyHint listener r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D130729
2021-11-16 12:28:13 +00:00
André Bargull
6befc832ea Bug 1739660 - Part 3: Transpile SpreadNew and SpreadSuperCall. r=iain
After the preparations from the preceding patches, we can now simply enable
transpiling `SpreadNew` and `SpreadSuperCall`.

Differential Revision: https://phabricator.services.mozilla.com/D130490
2021-11-16 12:19:15 +00:00
André Bargull
fec72f55dd Bug 1739660 - Part 2: Record 'needsThisCheck' in MConstructArray. r=iain
Adds `MConstructArray::needsThisCheck` so we can pass this flag to `MakeCall()`
in `ArrayMemoryView::visitConstructArray()`. This is needed because the next
patch will change `MConstructArray` to store a single caller in
`MConstructArray::target_` and we have assertions in place which disallow to
emit a `this`-check when we know it's unnecessary (because the target function
is known).

Differential Revision: https://phabricator.services.mozilla.com/D130494
2021-11-16 12:19:14 +00:00
André Bargull
9aee391250 Bug 1739660 - Part 1: Support constructing in makeSpreadCall. r=iain
No change in behaviour, only changes `build_SpreadNew()` to call `makeSpreadCall()`
in preparation for the next patches in this stack.

Additionally moves the `MCreateThis::New` call from `WarpBuilder::buildCallOp()`
into a new method `WarpBuilder::buildCreateThis()`.

Differential Revision: https://phabricator.services.mozilla.com/D130489
2021-11-16 12:19:14 +00:00
André Bargull
e68a9d44fd Bug 1700398 - Part 3: Support scalar replacement for rest arguments in construct calls. r=iain
Adds a copy of `ApplyArgs` to handle constructor calls. This new instruction is
then used to scalar replace rest arrays in `new` and `super` spread calls.

With this patch applied, we can scalar replace rest parameters in derived class
constructors:
```
class Derived extends Base {
  constructor(...args) {
    super(...args);
  }
}
```

Differential Revision: https://phabricator.services.mozilla.com/D130485
2021-11-16 12:19:13 +00:00
André Bargull
a68365c840 Bug 1700398 - Part 2: Scalar replace rest arrays. r=iain
This follows the existing scalar replacement support for `arguments`. When the
rest array isn't modified, we can read the rest array elements from the frame.
And the rest array length can be computed through `max(numActuals - numFormals, 0)`.

There isn't yet support for scalar replacing rest arrays in `MApplyArray` when
additional formals are present, because `MApplyArgs` doesn't yet cover this case.

Differential Revision: https://phabricator.services.mozilla.com/D130484
2021-11-16 12:19:13 +00:00
André Bargull
2266623d72 Bug 1700398 - Part 1: Recover MRest. r=iain
Add recover support for `MRest`. When rest arguments are present, the `arguments`
object isn't mapped, so the rest array can be directly recovered from the frame.

Differential Revision: https://phabricator.services.mozilla.com/D130483
2021-11-16 12:19:12 +00:00
OnuohaOluebube
4e0acf805c Bug 1673438 -[remote] Refactored evaluate.fromJSON parameters into an options object r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129597
2021-11-16 11:25:52 +00:00
Emilio Cobos Álvarez
9d20445d1e Bug 1741251 - Use rect rather than point for button box position computation. r=dholbert
Otherwise the origin of the rect might not be correctly converted.

We have a supposed test for something like this:

  layout/reftests/forms/input/number/spinner-overflow-vertical.html

But in practice it doesn't work, because I removed the "overflowing
descendants inflate outlines" behavior (bug 1739894), and even with that
pref it doesn't seem to cut it... So repurpose that test to test both.

Differential Revision: https://phabricator.services.mozilla.com/D131175
2021-11-16 10:57:05 +00:00
criss
507f143b88 Backed out 2 changesets (bug 1617611) for causing mochitest failures on storageAccessWithDynamicFpi.js. CLOSED TREE
Backed out changeset fdb2c6bfc0c6 (bug 1617611)
Backed out changeset c3352f4b3681 (bug 1617611)
2021-11-16 13:02:05 +02:00
Dave Townsend
bda0bb4a05 Bug 1740531: Move page data collection into PageDataSchema for easier testing. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D130881
2021-11-16 10:29:17 +00:00
Niklas Goegge
5b684c7fc6 Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-16 10:15:45 +00:00
Niklas Goegge
707d824008 Bug 1617611: Enable SameSite=Lax by default in mochitests. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D129162
2021-11-16 10:15:44 +00:00
Hubert Boma Manilla
de4e58224c Bug 1736366 - [devtools] Refactor the getBreakpointSources selector to no longer use makeShallowQuery r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D128742
2021-11-16 09:51:18 +00:00
Mirko Brodesser
628629cf0c Bug 1741162: refine <jsactors.rst> a little. r=nika
To someone new to Fission and Gecko, it's unclear the Message Manager
mechanism is pre-Fission.

Differential Revision: https://phabricator.services.mozilla.com/D131126
2021-11-16 09:30:40 +00:00
Andreea Pavel
caa6cc4f0b Backed out changeset 3d28e4c556d7 (bug 1740208) for ThreadSanitizer failures in assign_assuming_AddRef on a CLOSED TREE 2021-11-16 11:35:29 +02:00
Jon Coppeard
1ab5c358ce Bug 1693775 - Change remaining uses to pass GCCellPtr by value r=sfink
Depends on D131142

Differential Revision: https://phabricator.services.mozilla.com/D131143
2021-11-16 09:09:38 +00:00
Jon Coppeard
d89836b479 Bug 1693775 - Change CallbackTracer::onChild to pass GCCellPtr by value r=sfink,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D131142
2021-11-16 09:09:37 +00:00
Marcos Cáceres
0f403e17c7 Bug 1735098 - Implement EpochTimeStamp from HR-Time r=edgar
Add the EpochTimeStamp, which can be used to incrementally rename/remove DOMTimeStamp. See also https://github.com/w3c/hr-time/pull/124 and https://github.com/whatwg/webidl/pull/1021

Differential Revision: https://phabricator.services.mozilla.com/D128030
2021-11-16 08:50:37 +00:00
Lars T Hansen
1ad8c73f5c Bug 1739971 - Make it possible to throttle debug machine code. r=jseward
Introduce a command line jit option that allows codegen functions that
emit debug code to know when to emit less of it.  I'm currently using
this only in one place but it would be useful to use it more often, to
simplify whitebox testing of codegen.

Also give a better (and more typical) name to a function that
emits debug code.

Differential Revision: https://phabricator.services.mozilla.com/D130619
2021-11-16 08:47:01 +00:00
Dragana Damjanovic
d30cb41384 Bug 1740208 - Implement an EarlyHint listener r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D130729
2021-11-16 08:45:09 +00:00
sotaro
dc41fd6a96 Bug 1740673 - Ensure d3d device re-creation before sessions re-creation in GPUProcessManager::OnInProcessDeviceReset() r=nical,gfx-reviewers
Current code is not explicit about device recreation before session re-creation. It is actually done by nsWindow::OnPaint() before OnInProcessDeviceReset() call. But it is not explicit.

gfxWindowsPlatform::HandleDeviceReset() does d3d device re-creation if it is necessary.

Differential Revision: https://phabricator.services.mozilla.com/D130957
2021-11-16 08:25:09 +00:00
Bob Owen
6233ec443f Bug 1669149 p7: Always use size from device context for print paper size on Windows. r=jwatt
This is always available and makes it more consistent for comparing print
settings.
Also change to round when converting back to DEVMODE for better accuracy.

Depends on D99810

Differential Revision: https://phabricator.services.mozilla.com/D99811
2021-11-16 08:17:05 +00:00
Bob Owen
c105e16a8d Bug 1669149 p6: Change print settings stored as floats to be stored as doubles. r=jwatt
This more precisely matches what we get from the printer and use in layout.

Depends on D99808

Differential Revision: https://phabricator.services.mozilla.com/D99810
2021-11-16 08:17:04 +00:00
Bob Owen
571f1db901 Bug 1669149 p5: Make nsPrintSettingsService::ReadPrefs return NS_ERROR_NOT_AVAILABLE, not NS_OK, if no prefs are read. r=jwatt
This allows us to detect if any prefs were read in JavaScript.

Depends on D99807

Differential Revision: https://phabricator.services.mozilla.com/D99808
2021-11-16 08:17:04 +00:00
Bob Owen
773d934c75 Bug 1669149 p4: Change unwriteable margin pref to be stored in twips. r=jwatt
This means that more precise values can be stored, so that they match what we
actually retrieve from the printer and use in layout.

Depends on D99806

Differential Revision: https://phabricator.services.mozilla.com/D99807
2021-11-16 08:17:04 +00:00