Commit Graph

742721 Commits

Author SHA1 Message Date
Bogdan Tara
7d42985d48 Merge mozilla-central to autoland. CLOSED TREE 2021-01-29 18:05:04 +02:00
Bogdan Tara
d8afadc6ab Merge autoland to mozilla-central. a=merge 2021-01-29 18:00:25 +02:00
Mats Palmgren
3168235844 Bug 1686728 - Make nsCheckboxRadioFrame::GetUsableScreenRect a static function for its only consumer. r=layout-reviewers,TYLin
Differential Revision: https://phabricator.services.mozilla.com/D101777
2021-01-29 15:45:39 +00:00
Mats Palmgren
7b6d28bc4a Bug 1686395 - Remove [Un]RegisterAccessKey calls in frame code (idempotent change). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D101556
2021-01-29 15:45:31 +00:00
Mats Palmgren
ca5460eda2 Bug 1683748 - Support Grid/Flex/Table/Column layout for the rendered legend of a fieldset. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D101555
2021-01-29 15:45:42 +00:00
Jan de Mooij
cf120c95c0 Bug 1689308 part 2 - Fix typed array length limit to match ArrayBuffer limit. r=anba
Until this point the maximum typed array length was one less than the actual
limit. This fixes bug 1592547.

Differential Revision: https://phabricator.services.mozilla.com/D103297
2021-01-29 11:30:44 +00:00
Jan de Mooij
06f055e154 Bug 1689308 part 1 - Support allocating large typed arrays in JIT fast paths. r=anba
* In `AllocateAndInitTypedArrayBuffer`, use `TypedArrayObject::maxByteLength()` instead of `INT32_MAX`.
* Remove uses of `CheckedUint32(size_t)` where other assertions imply no overflow is possible.
* JIT code only optimize the int32 case so assert `length <= INT32_MAX` in a few places.

Differential Revision: https://phabricator.services.mozilla.com/D103296
2021-01-29 15:37:32 +00:00
Cosmin Sabou
dd042f25a8 Backed out changeset c7dd9e63300d (bug 1649611) for causing bug 1689404. a=backout 2021-01-29 11:57:53 +02:00
Mirko Brodesser
ab4314f6af Bug 1688832: part 6) Hide AccessibleCaretManager::Carets::mFirst, mSecond. r=smaug
Helps to see that they're never replaced with new instances.

Differential Revision: https://phabricator.services.mozilla.com/D103313
2021-01-29 09:46:09 +00:00
emcminn
b87b847209 Bug 1687910 - Move date calculation to Fluent for Milestone CFR r=andreio,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103179
2021-01-29 09:15:20 +00:00
nirmay
74d4d3ad21 Bug 1543327 - Explicitly disables alerts for non-Firefox browsers. r=perftest-reviewers,alexandru.irimovici,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D102780
2021-01-29 15:27:43 +00:00
Nihanth Subramanya
95c3dc2f49 Bug 1688806 - Reset TRRService confirmation retry interval and cancel an ongoing retry timer when captive-portal-connectivity is observed. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103005
2021-01-29 15:13:49 +00:00
Gregory Mierzwinski
009b517f40 Bug 1689377 - Add chromedriver for chrome 88. r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D103334
2021-01-29 15:19:38 +00:00
Nicolas Chevobbe
6ef703115e Bug 1689548 - [devtools] Don't simulate flash on screenshot when prefers-reduced-motion is enabled. r=ladybenko.
We also take this opportunity to simplify the simulateCameraFlash function by
using a simpler version of element.animate.

Differential Revision: https://phabricator.services.mozilla.com/D103457
2021-01-29 15:05:05 +00:00
Nicolas Chevobbe
2eaa5a9634 Bug 1687915 - [devtools] Display a warning message when the --selector argument passed to :screenshot does not match any node. r=ladybenko.
When the selector doesn't return any node, we log a warning on the page.
A test case is added in browser_jsterm_screenshot_command_selector.js to ensure
this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D102753
2021-01-29 15:04:52 +00:00
Julian Descottes
4dde3238fa Bug 1689572 - [devtools] Re-enable browser_animation_fission_switch-target.js r=ladybenko
The blocking bug 1611096 was resolved some time ago

Differential Revision: https://phabricator.services.mozilla.com/D103460
2021-01-29 14:59:28 +00:00
Julian Descottes
f682e58f62 Bug 1689561 - [devtools] Remove unused isResponsiveDesignMode flag r=nchevobbe,mconley
This flag is no longer set anywhere since the old RDM implementation was removed in https://bugzilla.mozilla.org/show_bug.cgi?id=1585084

Differential Revision: https://phabricator.services.mozilla.com/D103459
2021-01-29 14:58:55 +00:00
Jan de Mooij
77aeac4ab2 Bug 1687441 part 23 - Add JIT support for large buffers. r=anba
This switches all CacheIR and MIR instructions that use a TypedArray or DataView
index from Int32 to IntPtr.

The int32-index and non-int32-index cases in the GetElem/SetElem/In CacheIR generators
are now unified into a single method. This way it's easy to see that in-bounds Int32
and Double indexes are handled exactly the same way.

The IRGenerators call IRGenerator::guardToIntPtrIndex to convert key values to an
IntPtrOperandId. All TypedArray/DataView accesses optimized by CacheIR go through
there now.

The GuardToTypedArrayIndex CacheIR and MIR instruction is replaced with a similar
GuardNumberToIntPtrIndex instruction. It accepts a Number instead of a Value.

Differential Revision: https://phabricator.services.mozilla.com/D102739
2021-01-29 07:23:37 +00:00
Bryce Seager van Dyk
d49006a0f4 Bug 1689266 - Extend MEDIA_MKV_CANPLAY_REQUESTED probe collection. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D103338
2021-01-28 20:29:34 +00:00
Bogdan Tara
0878c2f990 Backed out changeset 5dcce2988489 (bug 1689403) for load-nonsyntactic.js failures CLOSED TREE 2021-01-29 16:43:19 +02:00
Julian Descottes
9e73accb3e Bug 1689559 - [devtools] Remove devtools.target-switching.enabled preference r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D103452
2021-01-29 14:37:21 +00:00
Emilio Cobos Álvarez
ab8b88783f Bug 1689355 - Prevent uneven checkbox margin from growing the line with the non-native theme. r=spohl
The non-native theme does two things which, combined, cause this test to
fail.

The first one is that it has slightly bigger checkboxes than other
themes (14px vs. 13px).

The second one is that it has a 2px widget-imposed border, like Mac:

    https://searchfox.org/mozilla-central/rev/0dfbe5a699cc6c73cf8c14d1aa10ba10ef3ec8fa/widget/nsNativeBasicTheme.cpp#1367-1369

Which causes its baseline to go down by that amount. This was done
intentionally in bug 1675389, though I guess it could be reconsidered.

These two things combined make the checkbox grow the line slightly in
this test-case, causing the elements to move 1px apart.

The test is intended to check that the baseline calculation of a
checkbox/radio is correct, which it is, so prevent that undesired side
effect by resetting the margin to zero.

Differential Revision: https://phabricator.services.mozilla.com/D103324
2021-01-29 14:16:18 +00:00
Emilio Cobos Álvarez
0a06c5acab Bug 1689343 - Enlarge the iframe viewport in bug1448730.html. r=spohl
Without this the non-native theme fails the last assertion of the test.

I couldn't reproduce locally but the word that it's supposed to be
selected is very close to being out of the iframe viewport on my
machine, so it'd make sense if the new non-native theme, which has a bit
more padding, causes the word to move a bit further down.

I've confirmed this fixes the issue.

Differential Revision: https://phabricator.services.mozilla.com/D103317
2021-01-29 14:31:32 +00:00
Tooru Fujisawa
350b9c52f0 Bug 1689102 - Part 2: Refactor AbstractScopePtr not to hold Scope pointer. r=mgaudet
Instead of accessing Scope from AbstractScopePtr, pre-calculate necessary
information in ScopeContext.

Also removed GCThingList.stencil field that's now unnecessary.

Depends on D103453

Differential Revision: https://phabricator.services.mozilla.com/D103454
2021-01-29 13:39:19 +00:00
Tooru Fujisawa
a2bd47351d Bug 1689102 - Part 1: Reorder ScopeContext fields to reduce padding. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D103453
2021-01-29 13:18:00 +00:00
André Bargull
6ae41c9162 Bug 1689294: Update tzdata in ICU data files to 2021a. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103281
2021-01-29 14:25:21 +00:00
Mirko Brodesser
cff5e50b61 Bug 1688832: part 5) Add AccessibleCaretManager::Carets::GetSecond. r=smaug
Depends on D103311

Differential Revision: https://phabricator.services.mozilla.com/D103312
2021-01-28 17:28:19 +00:00
Mirko Brodesser
b0ddf0f1e6 Bug 1688832: part 4) Add AccessibleCaretManager::Carets::GetFirst. r=smaug
Will help to hide the `UniquePtr`s.

Depends on D103310

Differential Revision: https://phabricator.services.mozilla.com/D103311
2021-01-29 09:26:47 +00:00
Kershaw Chang
6cc1ec1655 Bug 1688945 - Make sure we don't query HTTPS RR when we already have one r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103348
2021-01-28 19:34:41 +00:00
Joel Maher
c8cca1ef20 Bug 1683110 - run compiled tests as python 3 r=aki
run compiled tests w/python3

Differential Revision: https://phabricator.services.mozilla.com/D102619
2021-01-28 18:10:56 +00:00
Mirko Brodesser
97b7bf74f3 Bug 1688832: part 3) Add AccessibleCaretManager::Carets::HasVisuallyVisibleCaret. r=smaug
Depends on D103309

Differential Revision: https://phabricator.services.mozilla.com/D103310
2021-01-28 17:20:35 +00:00
Mirko Brodesser
8585eb61e5 Bug 1688832: part 2) Add AccessibleCaretManager::Carets::HasLogicallyVisibleCaret. r=smaug
Depends on D103308

Differential Revision: https://phabricator.services.mozilla.com/D103309
2021-01-28 17:02:40 +00:00
Mirko Brodesser
2ca0daf525 Bug 1688832: part 1) Encapsulate AccessibleCaretManager::mFirstCaret, mSecondCaret in mCarets. r=smaug
They belong together.

Depends on D103307

Differential Revision: https://phabricator.services.mozilla.com/D103308
2021-01-28 17:01:46 +00:00
Mirko Brodesser
1d42184140 Bug 1688832: part 0) Delete copy-constructor and copy-assignment operator of AccessibleCaretManager::LayoutFlusher. r=smaug
Safer.

Differential Revision: https://phabricator.services.mozilla.com/D103307
2021-01-28 16:42:24 +00:00
pawanverma1812
9d84cab460 Bug 1688503 - nsFirstLetterFrame.cpp: do not use 'else' after 'return' r=sylvestre
Removed the 'else' statement to resolve clang-tidy warning.

Differential Revision: https://phabricator.services.mozilla.com/D103347
2021-01-28 17:26:04 +00:00
Henri Sivonen
4da9196207 Bug 1689541 - Review comment fixup for bug 476384. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D103443
2021-01-29 08:51:16 +00:00
Xidorn Quan
ac3ecbadd3 Bug 1688439 - Update several Rust dependencies with known vulnerabilities reported by cargo audit. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D102850
2021-01-29 07:19:58 +00:00
Joel Maher
da90f2d1f7 Bug 1689389 - skip js/src/jit-test/tests/gc/bug-1565272.js to avoid android issues. r=jandem
skip js/src/jit-test/tests/gc/bug-1565272.js to avoid android issues with timeout and hung devices

Differential Revision: https://phabricator.services.mozilla.com/D103386
2021-01-29 08:02:14 +00:00
Jan Varga
6543a55a77 Bug 1681469 - Allow nsBaseHashtable to work with a non-default-constructible/non-movable DataType; r=nika
nsBaseHashtable now supports non-default-constructible DataType and
UserDataType, however not all methods can be instantiated.  All methods which
can't be instantiated with non-default-constructible DataType or UserDataType
are now described as such in method definitions.

The public API of PLDHashTable and nsBaseHashtable/nsDataHashtable was changed:
- A new method PLDHashTable::WithEntryHandle has been added. It allows to use a
  custom function for entry initialization (instead of the global hook).
- A new method nsBaseHashtable::MaybeGet has been added.
- A new overload nsBaseHashtable::Remove has been added.
- The nsDataHashtable::GetAndRemove method has been pulled up to
  nsBaseHashtable.

In addition, the following implementation details have changed:

PLDHashTable:
- The code from the Add method has been split into MakeEntryHandle and a helper
  object called EntryHandle. The Add method is now implemented on top of that.

nsTHashtable:
- A new (non-public) API for WithEntryHandle has been added.
- The InitEntry hook is no longer used. Instead of using the hook, PutEntry
  methods now use nsTHashtable::WithEntryHandle instead of PLDHashTable::Add.
  This change allows to do custom initialization in derived classes.

nsBaseHashtable:
- A new (non-public) API for WithEntryHandle has been added.
- Put methods no longer use nsTHashtable::PutEntry, they now use the new method
  nsBaseHashtable::WithEntryHandle.

Differential Revision: https://phabricator.services.mozilla.com/D99428
2021-01-29 08:39:40 +00:00
David Burns
3cc69b8cc4 Bug 1687021: Allow connection header names to be case insensitive. r=remote-protocol-reviewers,whimboo
Some client bindings will send over the headers with either a capital
first letter and some might not. We need to handle all cases

Differential Revision: https://phabricator.services.mozilla.com/D103384
2021-01-29 08:17:38 +00:00
Bas Schouten
74b40cd436 Bug 1688694: Use faster XorShift128PlusRNG for RandomMidpoint. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D102995
2021-01-29 08:10:39 +00:00
Julian Descottes
89b9f9f096 Bug 1687645 - [devtools] Try/catch calls to legacy resource listeners r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D103176
2021-01-28 13:14:44 +00:00
Mitchell Hentges
776d206d6b Bug 1683797: Removes unnecessary lines from client.mk r=sheehan,firefox-build-system-reviewers,glandium
CWD and BUILDSTATUS are never used, and core-detection happens within
`mach`.

Differential Revision: https://phabricator.services.mozilla.com/D102661
2021-01-29 14:16:50 +00:00
Bogdan Tara
d2a9feb234 Backed out changeset 58936f707b78 (bug 1686652) for wormhole related failures CLOSED TREE 2021-01-29 16:20:16 +02:00
Matthew Gaudet
397dd8a2ff Bug 1689403 - Support envChainObject in combination with loadBytecode in shell evaluate builtin r=arai
Included is a test case that makes use of this newfound capability.

Differential Revision: https://phabricator.services.mozilla.com/D103344
2021-01-29 14:12:03 +00:00
Chris H-C
be464e252b Bug 1681472 - Re-enabled MeasureInitializeTime test r=janerik
Remove the flipping of the data pref during FOG init test because, with the
dispatcher now a part of the RLB, this isn't something we should test at this
level.

Differential Revision: https://phabricator.services.mozilla.com/D103379
2021-01-29 10:55:11 +00:00
Jan Varga
ccef31f31a Bug 1680275 - LSNG: Change gDatastores to use NotNull; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D99198
2021-01-28 21:24:40 +00:00
Emilio Cobos Álvarez
f467ea41bc Bug 1689317 - Clipboard events should be composed. r=smaug
Automate some of the copy event tests which tested for this, since there
seems we/WPT don't have a lot of coverage for them.

Differential Revision: https://phabricator.services.mozilla.com/D103428
2021-01-29 13:30:40 +00:00
Julian Descottes
c61e417a18 Bug 1688569 - [devtools] Watch DOM mutation breakpoints on all targets r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D103072
2021-01-29 13:37:47 +00:00
Tom Ritter
692a5351d2 Bug 1688800: Carve out more edge cases for javascriptLoad restrictions, and let Telemetry ride the trains r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D103043
2021-01-29 13:35:31 +00:00