Commit Graph

788374 Commits

Author SHA1 Message Date
Karl Tomlinson
0c75d61776 Bug 1753266 don't start a video capture thread after AppShutdown r=jib
RecvPCamerasConstructor() is used because IPC messages cannot be sent from
AllocPCamerasParent() because SetManagerAndRegister() has not been called to
change mLinkStatus to Connected.

Differential Revision: https://phabricator.services.mozilla.com/D140022
2022-03-16 06:37:23 +00:00
Botond Ballo
9604c80ac1 Bug 1759631 - Back out the crashtest for bug 1749190. r=tnikkel
This test runs a lot of JS and triggers a lot of unrelated assertions,
some of which are fatal. The test added in bug 1755790 is much simpler
and a better fit for providing test coverage for the patches in bug
1749190.

Differential Revision: https://phabricator.services.mozilla.com/D141177
2022-03-16 06:00:27 +00:00
Eitan Isaacson
ce4771430d Bug 1713050 - P3: Add more granularities to AXSelectedTextChanged events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D139747
2022-03-16 05:56:26 +00:00
Eitan Isaacson
a479c8f191 Bug 1713050 - P2: Add granularity to a11y caret move events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D139746
2022-03-16 05:56:25 +00:00
Eitan Isaacson
d4418e9378 Bug 1713050 - P1: Add granularity to selection change notification. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139745
2022-03-16 05:56:25 +00:00
Daniel Holbert
ccfc2564d5 Bug 133984: Remove no-longer-needed print-specific 'height' for file input widgets. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D141169
2022-03-16 04:45:09 +00:00
Haik Aftandilian
e08fe4e5c5 Bug 1759408 - [macOS] Add sandboxing tests to more process types r=gerard-majax
Add the WindowServer test and process launch tests to each Mac child process type.

Differential Revision: https://phabricator.services.mozilla.com/D140941
2022-03-16 04:36:54 +00:00
Botond Ballo
d3db8ed4cd Bug 1753779 - Avoid emitting the same deferred transform item onto an ancestor and descendant WebRenderLayerScrollData node. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D141064
2022-03-16 04:35:07 +00:00
Karl Tomlinson
33229c7294 Bug 1753350 Don't block PBackgroundParent thread while the main thread processes its queued tasks r=jib
Assumptions about safety of waiting on other threads are very risky when the
threads are shared with other consumers that may be making different
assumptions.  cf. https://phabricator.services.mozilla.com/D29701#872962

The thread creation hop was introduced under the assumption that creating and
joining threads from different threads would be problematic.
https://bugzilla.mozilla.org/show_bug.cgi?id=1209987#c6
No-one identified any particular OS that was problematic.

https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createthread
says
> When a thread terminates, the thread object attains a signaled state,
> satisfying any threads that were waiting on the object.

man 3p pthread_join says
> The results of multiple simultaneous calls to pthread_join() specifying the
> same target thread are undefined.

Differential Revision: https://phabricator.services.mozilla.com/D140021
2022-03-16 04:06:32 +00:00
Karl Tomlinson
dfd09d19d5 Bug 1753350 - remove unnecessary sVideoCaptureThread.IsRunning() tests r=jib
sThreadMonitor is held by the main thread while it sets sVideoCaptureThread
until after StartWithOptions() returns, at which point IsRunning() will
already return true and tasks can be queued for sVideoCaptureThread.
The queuing thread does not call PostTask() until it holds sThreadMonitor and
sVideoCaptureThread is set.

sVideoCaptureThread is cleared with sThreadMonitor held, so only one
CamerasParent will delete the thread.
StartWithOptions() is always called if sVideoCaptureThread is set and failure
is handled with a MOZ_CRASH(), so the thread always needs to be Stop()ed.

Depends on D140019

Differential Revision: https://phabricator.services.mozilla.com/D140020
2022-03-16 04:06:32 +00:00
Karl Tomlinson
d889c90763 Bug 1753350 reduce scope of CamerasParent::sMutex lock in constructor r=jib
sMutex protects sNumOfCamerasParents and sThreadMonitor,
not mPBackgroundEventTarget nor event dispatch.

Differential Revision: https://phabricator.services.mozilla.com/D140019
2022-03-16 04:06:31 +00:00
Narcis Beleuzu
4977e9fdb7 Backed out changeset 90e8b423f4bb (bug 1759602) for reftest failures on caret_on_presshell_reinit-2.html . CLOSED TREE 2022-03-16 04:43:46 +02:00
Tooru Fujisawa
d3c9c2abef Bug 1752624 - Skip drawing border if the dirty rect and the border rect do not intersect. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D141104
2022-03-15 18:36:04 +00:00
sotaro
32ba88374f Bug 1759323 - Disable NoCopyNV12Texture with SW-WR r=gfx-reviewers,nical
It is not expected to use NoCopyNV12Texture with SW-WR.

Differential Revision: https://phabricator.services.mozilla.com/D140942
2022-03-16 00:16:35 +00:00
Narcis Beleuzu
c4cce6ea63 Backed out changeset 6fd4b72c9a6c (bug 1617283) for dt failure on browser_dbg-backgroundtask-debugging.js . CLOSED TREE 2022-03-16 02:26:38 +02:00
Daniel Holbert
b1b2dd2f1a Bug 1759763: Fix typo in IPC in-tree docs. r=mccr8
DONTBUILD because just editing an in-tree doc.

This patch fixes a typo by adding a word that was previously missed ("in").

Differential Revision: https://phabricator.services.mozilla.com/D141164
2022-03-15 23:37:21 +00:00
Andrew Osmond
b6d49952d7 Bug 1757755 - Add size validation when restoring a WebGL context. r=jgilbert
This matches the validation done in ClientWebGLContext::SetDimensions.

Differential Revision: https://phabricator.services.mozilla.com/D141136
2022-03-15 23:25:25 +00:00
Julian Descottes
5bb2a7a008 Bug 1737387 - [devtools] Add option to wait for devices list in openRDM r=ochameau
Depends on D141021

Differential Revision: https://phabricator.services.mozilla.com/D141088
2022-03-15 23:22:23 +00:00
Emilio Cobos Álvarez
2dd7088690 Bug 1759163 - Add origin trial support for worklets. r=asuth
Move the trial getter to nsIGlobalObject, make every implementation
provide a reasonable value, and add a test.

Differential Revision: https://phabricator.services.mozilla.com/D140848
2022-03-15 23:16:14 +00:00
Alexandre Poirot
d2bd129d14 Bug 1759146 - [devtools] Avoid unexpected GC while running testSourceTextContent. r=bomsy
This test assert that the debugger doesn't get unexpected request while debugging a page.
But for that, we should open the page while the debugger is opened.
Otherwise the page resources might be GC-ed, forcing the debugger to fetch some content again.

Differential Revision: https://phabricator.services.mozilla.com/D141078
2022-03-15 21:58:29 +00:00
Yury Delendik
7c6e931b8d Bug 1757244 - Support VEX encoding for swizzle operations. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D140117
2022-03-15 21:55:51 +00:00
Yury Delendik
2f1eb45418 Bug 1757244 - Support VEX encoding for misc multiplication operations. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D140112
2022-03-15 21:55:51 +00:00
Yury Delendik
2af2e9f582 Bug 1757244 - Support VEX encoding for misc min/max operations. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D140100
2022-03-15 21:55:50 +00:00
Yury Delendik
4e25ad7c39 Bug 1757244 - Support VEX encoding for all comparison operations. r=jseward
* Refactors all masm functions
* Add alternative i64x2.{gt,ge,lt,le} implementations
* Fix lowering of swapped ops
* Fix compareForOrderingInt64x2 comment

Differential Revision: https://phabricator.services.mozilla.com/D139772
2022-03-15 21:55:49 +00:00
gliu20
00177a2841 Bug 1755008 - Fix cut off buttons styling from Add New Address modal. r=tgiles
Fixes the Add New Address modal buttons getting clipped in certain locales.

Differential Revision: https://phabricator.services.mozilla.com/D140912
2022-03-15 21:53:14 +00:00
Marian-Vasile Laza
e2b28a4ce9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2022-03-15 15:34:30 -07:00
Marian-Vasile Laza
b80ddea98c Backed out changeset 831481b0bc78 (bug 1759498) for causing bc failures on browser_popupNotification.js. CLOSED TREE 2022-03-15 15:25:14 -07:00
Marian-Vasile Laza
f0b42c159c Backed out changeset 558e256fcb31 (bug 1759163) for causing mochitest failures on test_header_simple.html. 2022-03-15 15:23:04 -07:00
Marian-Vasile Laza
21901659f3 Backed out changeset bf5828257d6e (bug 1752624) for causing reftest failures on caret_on_presshell_reinit-2.html. 2022-03-15 15:18:40 -07:00
Marian-Vasile Laza
535a70075a Backed out changeset 472418229a51 (bug 1757733) for causing bustages on testWasm.cpp. 2022-03-15 14:53:38 -07:00
Marian-Vasile Laza
fa69d8b248 Merge autoland to mozilla-central. a=merge 2022-03-15 14:36:41 -07:00
Dão Gottwald
7d21796130 Bug 1759498 - Clean up panel footer button styling after Proton. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D140971
2022-03-15 21:07:57 +00:00
Luca Greco
4cb9fc7f3b Bug 1759162 - Fix pkcs11.isModuleInstalled regressions triggered on non-windows builds. r=barret,willdurand
PathUtils.filename throws if the path is not an absolute path, which was likely
not the case with the OS.Path.basename call used previously.

This internal change of behavior shouldn't be triggering any issue on Windows,
where the hostInfo.manifest.path seems to be always normalized into an absolute
path (by computing it as relative to the hostInfo.manifest if it wasn't already
an absolute path), but it makes browser.pkcs11.isModuleInstalled to regress
on Linux (and maybe also on MacOS if the pkcs11 manifest files include only
the library name and not its full path, as it seems to be the case for
the Belgium eID pkcs11 manifest packaged for Linux).

The result of PathUtils.filename is expected to only include the basename of
the file (without the full dir path and the file extension) and so to fix
the regression being triggered on non-windows platform we could use a fake
absolute url to get the expected result using PathUtils.filename as is.

Differential Revision: https://phabricator.services.mozilla.com/D141097
2022-03-15 20:13:16 +00:00
Shazib Summar
d3f3302860 Bug 1617283 - Shifted AudioSession to MTA and removed COM violations r=handyman
Pointer to AudioSession object is made std::atomic to resolve crashes (bug 1755700) by atomically modifying/reading the pointer as an effort to make sure any update to the pointer is seen across other threads immediately while not using locks to maintain such concurrency and avoiding dataraces.

This patch is built upon the work done in D136377.

Differential Revision: https://phabricator.services.mozilla.com/D140741
2022-03-15 19:48:43 +00:00
Ryan Hunt
67f4e6da62 Bug 1757733 - wasm: Don't report warnings from AsmJS compilation, which may be off-main-thread. r=yury
AsmJS compilation may be off the main thread, so we cannot report warnings
to JSContext. wasm::Log may do this if the right pref is on. CompileArgs::
build() uses wasm::Log. AsmJS uses CompileArgs::build(). This commit adds
a separate version of CompileArgs::build() which will not log or report
errors. AsmJS then asserts that only an OOM may be possible here, as we
should ensure a wasm compiler is available before compiling.

Differential Revision: https://phabricator.services.mozilla.com/D141007
2022-03-15 19:48:41 +00:00
Ryan Hunt
5c1adb9411 Bug 1759281 - wasm: Fix build bustage. r=lth
Rebasing left an unused setPendingException method that
somehow didn't cause an error, until it causes compile
errors without exception handling.

There's also offsetof methods that need conditional
compilation.

Differential Revision: https://phabricator.services.mozilla.com/D140992
2022-03-15 19:47:50 +00:00
Tom Ritter
64f7c67b25 Bug 1759149: Retry commit fetch r=jewilde
Occassionally the request fails. If it does, try it
again. It'll probably work, and if it doesn't, we're
no worse off.

Differential Revision: https://phabricator.services.mozilla.com/D140840
2022-03-15 19:47:03 +00:00
Joel Maher
580ec6c92d Bug 1758984 - add status to mozlog crash so group summary is not marked as OK. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D141102
2022-03-15 19:40:49 +00:00
Botond Ballo
936a965479 Bug 1755790 - Add a crashtest. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D141063
2022-03-15 19:14:34 +00:00
Marian-Vasile Laza
ee9d80f003 Bug 1757863 - lint fix r=fix CLOSED TREE 2022-03-15 12:23:32 -07:00
Kirk Steuber
46a7c25076 Bug 1754656 - Renew os.environment.launch_method r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D140253
2022-03-15 19:09:51 +00:00
Tooru Fujisawa
f5f878afab Bug 1436400 - Part 14: Add testcases for bytecode encoding and module with iframes. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140864
2022-03-15 19:05:59 +00:00
Tooru Fujisawa
75cbcc6176 Bug 1436400 - Part 13: Add testcases for bytecode encoding and module with SRI fallback. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140554
2022-03-15 19:05:58 +00:00
Tooru Fujisawa
1a8b8d8467 Bug 1436400 - Part 12: Add testcases for bytecode encoding and module with import. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140553
2022-03-15 19:05:58 +00:00
Tooru Fujisawa
5bbb605209 Bug 1436400 - Part 11: Modify test_script_loader_js_cache.html to test basic module script. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140552
2022-03-15 19:05:57 +00:00
Tooru Fujisawa
141090b932 Bug 1436400 - Part 10: Support bytecode cache for module script. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140297
2022-03-15 19:05:57 +00:00
Tooru Fujisawa
82b9ddf3a3 Bug 1436400 - Part 9: Support restarting module load request. r=jonco
After enabling bytecode cache for module script, we need to handle
the SRI mismatch on bytecode cache, that requires reloading the script source
again.

Differential Revision: https://phabricator.services.mozilla.com/D140551
2022-03-15 19:05:57 +00:00
Tooru Fujisawa
c963262d5c Bug 1436400 - Part 8: Add code path for bytecode encoding module scripts. r=nbp
The module scripts are scanned immediately before executing, and if the
module script is not yet executed, and it matches the requirement for encoding
(size, fetch count, etc), it's marked as encode,
and they're scanned again immediately after executing, and marked scripts are
queued for bytecode encoding.

This patch doesn't actually enable the encoding, given ShouldCacheBytecode
returns false because the caching is not enabled for the channel and
GetCacheTokenFetchCount fails.

Differential Revision: https://phabricator.services.mozilla.com/D140296
2022-03-15 19:05:56 +00:00
Tooru Fujisawa
1f7d1985f5 Bug 1436400 - Part 7: Split ScriptLoader::MaybePrepareForBytecodeEncoding into 2 parts. r=nbp
As a preparation to use the bytecode encoding in the module evaluation code,
ScriptLoader::MaybePrepareForBytecodeEncoding is split into 2 parts:
  * one for performing preparation before executing script
  * one for queuing the request for bytecode encoding after executing script

In module's case, the bytecode encoding handling must be done on the entire
import tree, and also the module object's ScriptSlot is cleared on execution.
So, the script reference must be copied to the corresponding script load request
field before execution, and the script source must be queued for bytecode
encoding after executing the top-level script, so that incremental encoding
reflects functions called there.

Differential Revision: https://phabricator.services.mozilla.com/D140295
2022-03-15 19:05:56 +00:00
Tooru Fujisawa
bd752a1119 Bug 1436400 - Part 6: Add JS::IsModuleEvaluated. r=jonco
Module's ScriptSlot is cleared after evaluating the top-level script.
In order to skip modules imported multiple times when encoding, added
JS::IsModuleEvaluated.

Differential Revision: https://phabricator.services.mozilla.com/D140294
2022-03-15 19:05:55 +00:00