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

758535 Коммитов

Автор SHA1 Сообщение Дата
Sean Feng e58bb429df Bug 1690905 - Factors DOM memory sizes out to its own struct r=mccr8
This patch factors the DOM related sizes in nsWindowSizes to its own
struct, such that callers can easily acess DOM memory sizes.

Differential Revision: https://phabricator.services.mozilla.com/D111317
2021-05-27 17:55:44 +00:00
Bryce Seager van Dyk a38a1616b0 Bug 1713116 - Replace "mediakeys-request" literal with MediaKeys::kMediaKeysRequestTopic in C++ code. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D116106
2021-05-27 17:48:06 +00:00
Jan-Ivar Bruaroey 6ed5d54a6e Bug 1443294 - Remove getUserMedia's preference for less than ideal cameras/mics that already have permission (minimal patch). r=pbz
The checkRequestAllowed() function that determines whether we can bypass the
permission prompt and fulfill immediately with a device, is given a list of devices
sorted by fitness distance from most ideal to least. — It used to grant any
device on that list that was already active, even if less than ideal (not
first in the list).

This caused problems with sites using ideal constraints to switch between
devices because this function has to fail before Firefox  prompts for a new
device, and the new grace periods added in bug 1697284 extended "active" to
include any device active within the last 60 minutes, making it impossible
to pick anything else using ideal constraints alone.

The fix is to only look at the first device in the list (per kind). If that
device is not active, we should prompt for that device, not return a
different one, which means failing this function.

Differential Revision: https://phabricator.services.mozilla.com/D115523
2021-05-27 17:44:43 +00:00
Rob Wu 4aa25c2995 Bug 1713120 - Fix TypeError: n.getAttribute is not a function in ext-pageAction.js r=rpl
The reported error happens because `.parentNode` can be a document,
which doesn't implement the Element interface. Using `.parentElement`
solves this issue.

And while I'm fixing this: move the logic behind the menu ID check, so
that the logic is not unnecessarily run for non-pageAction contextmenus.

Differential Revision: https://phabricator.services.mozilla.com/D116138
2021-05-27 17:30:03 +00:00
Dzmitry Malyshau 179d3960ce Bug 1713162 - Detect copies into WebGPU swapchain for presentation r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D116132
2021-05-27 17:20:28 +00:00
Jason Kratzer bedc5ab3a3 Bug 1710125 - Update SpiderMonkey build names to match Firefox convention. r=jmaher,sfink
Differential Revision: https://phabricator.services.mozilla.com/D114634
2021-05-27 17:08:01 +00:00
Jan Varga 9111e8dffc Bug 1709352 - Fix compilation when QM_ERROR_STACKS_ENABLED is not defined; r=dom-storage-reviewers,asuth
LogError signature is now separately defined for the case when
QM_ERROR_STACKS_ENABLED is defined and when it's not defined).
HandleError has been changed as well to have explicit handling depending on
QM_ERROR_STACKS_ENABLED.
TestQMResult.cpp has been fixed to compile with undefined
QM_ERROR_STACKS_ENABLED in non-unified builds.

Differential Revision: https://phabricator.services.mozilla.com/D116070
2021-05-27 16:33:32 +00:00
Andrew Halberstadt a9fcd31161 Bug 1713006 - Run telemetry integration tests with Python 3, r=chutten
Depends on D116043

Differential Revision: https://phabricator.services.mozilla.com/D116044
2021-05-27 16:13:07 +00:00
Andrew Halberstadt c04f523f31 Bug 1713004 - Remove unused 'py2' group symbol, r=releng-reviewers,jmaher
Depends on D116042

Differential Revision: https://phabricator.services.mozilla.com/D116043
2021-05-27 16:13:07 +00:00
Andrew Halberstadt 87d37221f4 Bug 1713004 - Stop running mozharness unittests against Python 2, r=releng-reviewers,jmaher
Depends on D116037

Differential Revision: https://phabricator.services.mozilla.com/D116042
2021-05-27 16:13:06 +00:00
Andrew Halberstadt cd486ce48a Bug 1713001 - Convert talos unittests to run with Python 3, r=releng-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D116037
2021-05-27 16:13:06 +00:00
Andrew Halberstadt 7ad44144b6 Bug 1713000 - Convert condprof unittests to use Python 3, r=releng-reviewers,bhearsum
Depends on D116035

Differential Revision: https://phabricator.services.mozilla.com/D116036
2021-05-27 16:13:06 +00:00
Andrew Halberstadt e5f462dca3 Bug 1712998 - Convert telemetry unittests to use Python 3 in CI, r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D116035
2021-05-27 16:13:05 +00:00
Olli Pettay ee2d66f98b WIP: Bug 1708121, keep ticking after page load r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D116040
2021-05-27 16:08:04 +00:00
Joel Maher 2e841d22cb Bug 1704640 - Move mochitest browser-chrome / media from osx 10.14 to osx 10.15. r=ahal,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D115951
2021-05-27 16:06:03 +00:00
Jon Coppeard 52610efe8d Bug 1713082 - Add APIs to get helper thread system thread and CPU counts r=sfink
Rather than including the helper thread internals everywhere, add APIs to get this state.

Differential Revision: https://phabricator.services.mozilla.com/D116126
2021-05-27 16:03:26 +00:00
Jon Coppeard ac8437a782 Bug 1713082 - Don't assume that creating more helper threads succeeded r=sfink
We allow changing the number of helper threads used by GC by setting a GC
parameter, and this can spawn new threads. This operation is actually fallible
at the moment and will never succeed when we use an external thread pool.

This patch changes the code to get the actual number of helper threads after
attempting a change.

Differential Revision: https://phabricator.services.mozilla.com/D116125
2021-05-27 16:03:25 +00:00
Jon Coppeard 2a3f003414 Bug 1713082 - Simplify locking around helper thread initialization r=sfink
This adds isInitialized_ which is set to true when initialization succeeds.

The call to ensureContextList in js::CreateHelperThreadsState was unnecessary
because it happens later on in ensureInitialized. The initialization of
runningTaskCount should only happen in ensureInitialized, otherwise it could
happen if more threads are added later.

Differential Revision: https://phabricator.services.mozilla.com/D116124
2021-05-27 16:03:25 +00:00
Jon Coppeard ace75343e6 Bug 1713082 - Move findHighestPriorityTask method to GlobalHelperThreadState r=sfink
Depends on D113632

Differential Revision: https://phabricator.services.mozilla.com/D116087
2021-05-27 16:03:24 +00:00
Jon Coppeard 3d6489239d Bug 1713082 - Move termination state to GlobalHelperThreadState singleton r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D113632
2021-05-27 16:03:24 +00:00
Ryan Hunt f5ba497a8d Bug 1711073 - wasm: Split out TypeDef family from WasmTypes.h. r=jseward
This commit splits out the TypeDef family.
 * FuncType
 * StructType
 * ArrayType
 * TypeDef
 * TypeContext
 * TypeCache
 * TypeHandle

This one is trickier as these definitions must be serializable
and shareable. The WasmSerialize header is improved to support
this, and a WasmShareable header is added for sharing.

Additionally, TypeContext relies on FeatureArgs. Instead of
adding FeatureArgs to WasmTypeDef, I think it makes more
sense to create a new header for just the 'CompileArgs'
family. CompileArgs from WasmCompile is moved to this file,
as well as CompilerEnvironment from WasmValidate. The
implementations of *Args::build() for these definitions
remain in WasmCompile.cpp for now, as they rely on the
tiering heuristics and platform examination defined in that
file.

Differential Revision: https://phabricator.services.mozilla.com/D115229
2021-05-27 15:50:00 +00:00
Ryan Hunt 779edd0f48 Bug 1711073 - wasm: Move SymbolicAddress family to WasmBuiltins. r=jseward
This commit moves the SymbolicAddress family.
 * SymbolicAddress
 * SymbolicAddressSignature
 * FailureMode
And one method.

Differential Revision: https://phabricator.services.mozilla.com/D115228
2021-05-27 15:50:00 +00:00
Ryan Hunt d18b68ee04 Bug 1711073 - wasm: Split out Val family from WasmTypes.h. r=jseward
This commit splits out the Val family of definitions.
 * V128
 * WasmValueBox
 * AnyRef
 * FuncRef
 * LitVal
 * Val
And associated methods.

Differential Revision: https://phabricator.services.mozilla.com/D115227
2021-05-27 15:49:59 +00:00
Ryan Hunt e38959974f Bug 1711073 - wasm: Split out ValType family from WasmTypes.h. r=jseward
This commit splits out the family of 'ValType' definitions.
 * PackedTypeCode
 * PackedType
 * ValType
 * FieldType
 * RefTypes
And some inline methods.

A header for type declarations was added to be shared.

Differential Revision: https://phabricator.services.mozilla.com/D115226
2021-05-27 15:49:59 +00:00
Jon Bauman 845270db6e Bug 1700452 - Update libdav1d for Firefox 90. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D116038
2021-05-27 15:49:47 +00:00
Gijs Kruitbosch a8f519dda5 Bug 1712141 - fix intermittent browser_ext_menus.js test failures caused by bookmarks toolbar race, r=rpl
This is a bit peculiar. When we show the bookmarks toolbar, we create its children. When it then
gets hidden, they do not get removed. When we then re-enable the bookmarks toolbar, we call
`rebuild` on the next tick (because of the `await` in `init` in PlacesToolbarHelper), which
synchronously removes all the children of the toolbar, and then rebuilds the places node. It
does that async because it avoids doing synchronous layout flushes.

This breaks in the test - and the closer you put the "show the bookmarks toolbar" code to
the code that tries to open the context menu, the more reliably it breaks, because we try
to show the context menu right after we synchronously remove everything, and before we've
(asynchronously) put content back.

To avoid the raciness here, we wait for the custom event in the places toolbar to indicate
we're done building it.

Differential Revision: https://phabricator.services.mozilla.com/D116118
2021-05-27 15:48:31 +00:00
Gregory Mierzwinski 5e8be94459 Bug 1712940 - Add chromedriver for chrome v91. r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D116122
2021-05-27 15:40:05 +00:00
Dorel Luca 61aa3325c5 Backed out 2 changesets (bug 1712819) for Python failures. CLOSED TREE
Backed out changeset f51d72e5f0b8 (bug 1712819)
Backed out changeset 40c109bb5f9a (bug 1712819)
2021-05-27 19:05:15 +03:00
Dorel Luca 9707849e5b Backed out changeset ccdbd76fc479 (bug 1662710) for Browser-chrome failures in toolkit/components/passwordmgr/test/browser/browser_exceptions_dialog.js. CLOSED TREE 2021-05-27 19:03:46 +03:00
Mitchell Hentges 20d4059a6f Bug 1712133: Simplify virtualenv "sitecustomize" writing r=ahal
Child `handle_package(...)` invocations don't need to modify
`sitecustomize.py`, so don't pass it to them.

Differential Revision: https://phabricator.services.mozilla.com/D115924
2021-05-27 15:18:37 +00:00
Mitchell Hentges 17f68a38c4 Bug 1712133: Use if/else chain instead of early-return in handle_package r=ahal
Accidentally missing a `return` in a code path could mean that
`handle_package(...)` would accidentally do an action _and_
raise the "Unknown action" error.

This change resolves that, and it simplifies the code a bit.

Differential Revision: https://phabricator.services.mozilla.com/D115923
2021-05-27 15:18:37 +00:00
Mitchell Hentges 0d1d6ed813 Bug 1712804: Change comm action to be specific to Thunderbird r=rjl,ahal
Avoid the "Error processing command" warning when building virtualenvs
in a Firefox checkout

Differential Revision: https://phabricator.services.mozilla.com/D115922
2021-05-27 15:18:37 +00:00
Mitchell Hentges 9522e92323 Bug 1712382: Remove "set-variable" action support from virtualenvs r=ahal
`MACH_VIRTUALENV` was never used, and `MOZBUILD_VIRTUALENV` was never
set (the virtualenv was always activated during the build, rather
than before).

Differential Revision: https://phabricator.services.mozilla.com/D115921
2021-05-27 15:18:36 +00:00
Mitchell Hentges 04a6f9736c Bug 1712382: Remove "setup.py" action support from virtualenvs r=ahal
The `setup.py` action is no longer used, so we can safely remove it.

Depends on D115641

Differential Revision: https://phabricator.services.mozilla.com/D115913
2021-05-27 15:18:36 +00:00
Mitchell Hentges 5eb07cd570 Bug 1712133: Remove build VIRTUALENV_NAME customization r=glandium
This was originally set up so that tests wouldn't "create a new
`virtualenv` for no reason." However, virtual environments now will have
different packages installed, and therefore the separation is necessary.

So, for the virtual environment used for builds (regular or for tests):
* We want it to be able to reuse the build venv, if it already exists.
* We don't want to pollute a `pytest` virtualenv with build-specific
  packages.

Differential Revision: https://phabricator.services.mozilla.com/D115641
2021-05-27 15:18:35 +00:00
Mitchell Hentges 846e25c93b Bug 1712133: Rename default virtualenv to "common" r=ahal
We had split up `init` from `init_py3` because `mach` had
traditionally been invoked by either Python 2 or Python 3, and
the two couldn't share the same virtualenv.

Now that the same context isn't shared by both Python 2 and 3
3
(developers always use Python 3, and the remaining Python 2
usages are CI jobs that never reuse the objdir with Python 3),
We can centralize on a single default virtualenv.

I've called this "common" instead of "init" to clarify its
existing position as the virtualenv that's used by many different
commands. As we associate virtualenvs with requirement definitions,
it'll also make the file less confusing: it's a "common" requirement
definition as opposed to an "init" one.

Differential Revision: https://phabricator.services.mozilla.com/D115635
2021-05-27 15:18:35 +00:00
Mitchell Hentges d41a0b2774 Bug 1712819: Avoid pip's "outdated" warning in virtualenvs r=ahal
Now, when running mach commands that invoke `pip`, it will no longer
inform the user that it needs an update.

We reach into `distutils` to determine the "site-packages" directory
pattern, then apply it to our virtualenv.

Differential Revision: https://phabricator.services.mozilla.com/D115940
2021-05-27 15:16:16 +00:00
Mitchell Hentges f8ce33772c Bug 1712819: Fix VirtualenvManager not being expandable in debugger r=ahal
At least in PyCharm, expanding a `VirtualenvManager` instance means
resolving all the properties and fields of the instance.
However, if that property is doing non-trivial work, the debugger
wouldn't run that subprocess while we're stopped at a breakpoint.
So, the instance would sit there with the "Collecting data..." text.

Differential Revision: https://phabricator.services.mozilla.com/D115935
2021-05-27 15:16:16 +00:00
Dzmitry Malyshau e827c89a98 Bug 1681765 - Fix accessing implicit WebGPU layouts r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D116033
2021-05-27 15:08:02 +00:00
Jan de Mooij 1deb4708b9 Bug 1713083 part 2 - Remove JSPROP_GETTER and JSPROP_SETTER. r=evilpie
We now set the descriptor's getter or setter when the corresponding argument
to DefineAccessorProperty is non-nullptr.

Usually the flag was passed only if the corresponding object argument was non-nullptr,
so there's no change in behavior for those.

The exception is `Console::PopulateConsoleNotificationInTheTargetScope` where we passed
JSPROP_SETTER with a nullptr setter. Changing this is likely okay; it shouldn't make a
difference for new properties anyway.

Note that code can still use the richer PropertyDescriptor API to set nullptr
getters/setters explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D116091
2021-05-27 15:03:38 +00:00
Jan de Mooij bd2c465bf1 Bug 1713083 part 1 - Stop using JSPROP_GETTER and JSPROP_SETTER to distinguish native vs self-hosted JSPropertySpec accessors. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D116090
2021-05-27 15:03:37 +00:00
Matthew Gaudet eec7e9fd19 Bug 1712138 - Implement Reflect.parse for static class blocks r=arai
Differential Revision: https://phabricator.services.mozilla.com/D115629
2021-05-27 15:01:35 +00:00
Matthew Gaudet 610d1267bb Bug 1712138 - Initial implementation of class-static-fields proposal. r=arai
Reflect.parse will MOZ_CRASH in this patch, but the implementation arrives
in the next.

Differential Revision: https://phabricator.services.mozilla.com/D115628
2021-05-27 15:01:34 +00:00
Matthew Gaudet 6ea6ca495f Bug 1712138 - Add option for class-static blocks r=arai
Differential Revision: https://phabricator.services.mozilla.com/D115627
2021-05-27 15:01:34 +00:00
Thomas Wisniewski e82d19336e Bug 1707797 - Ship v23.0.0 of webcompat system addon; r=ksenia,webcompat-reviewers
This roll-up includes the following fixes:
- Bug 1711082 - Add an intervention for m.aliexpress.com
- Bug 1712807 - Add an override for www.dealnews.com
- Bug 1712833 - Add an intervention for buskocchi.desuca.co.jp
- Bug 1712843 - Add an intervention for snaptik.app
- Bug 1712626 - Change CSS intervention for livescience.com
- Bug 1710993 - Remove Intervention for dev.to
- Bug 1710997 - Remove Intervention for slack.com
- Bug 1711003 - Remove Intervention for store.hp.com

Differential Revision: https://phabricator.services.mozilla.com/D116123
2021-05-27 14:34:29 +00:00
ffxbld 1bf6f19298 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D116105
2021-05-27 14:31:44 +00:00
Mark Hammond 4104732da2 Bug 1713089 - fix autofill syncing. r=fluffyemily
Differential Revision: https://phabricator.services.mozilla.com/D116099
2021-05-27 14:30:56 +00:00
julianwels e9e6d81961 Bug 1662710 - Added UI to manage HTTPS-Only Mode exceptions from about:preferences. r=flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D102401
2021-05-27 14:30:30 +00:00
Lars T Hansen 80e2354a7c Bug 1713108 - Fix. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D116107
2021-05-27 14:19:45 +00:00
Tom Ritter 2b1afa9921 Bug 1712815 - Fix the 'remove a file from a moz.build file' logic r=jewilde
We were raising an exception as a result of a python error
which was masked by a catch statement that thought we didn't
know how to remove the file. But we did.

Fix the python error, and add an exception at the end of the
function to be raised and then caught when we really don't know
how to remove a file.

Differential Revision: https://phabricator.services.mozilla.com/D115936
2021-05-27 14:19:25 +00:00