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

733674 Коммитов

Автор SHA1 Сообщение Дата
Tim Huang df1f9b0c35 Bug 1577076 - Request a longer timeout for browser_blockingIndexedDb.js r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D96001
2020-11-05 11:04:20 +00:00
Jan de Mooij 9503e4fa46 Bug 1674994 part 1 - Make Atomics work with large ArrayBuffers. r=lth
The remaining three uint32_t uses in AtomicsObject.h/cpp are unrelated.

This also fixes the byteLength getter on ArrayBuffer and SharedArrayBuffer.

Differential Revision: https://phabricator.services.mozilla.com/D95688
2020-11-05 11:11:30 +00:00
smolnar 5957a1ba9c Backed out changeset a82a3d7cec03 (bug 1675190) for causing linux toolchains bustage. CLOSED TREE 2020-11-05 13:26:46 +02:00
Philipp Ammann 93c8ef1413 Bug 1661450 - Guard X11-only code behind #ifdef MOZ_X11 r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D88803
2020-08-31 11:41:22 +00:00
Philipp Ammann 72c6c6c137 Bug 1661450 - Move X11 headers behind CONFIG['MOZ_X11'] r=stransky
Required in preparation for a Wayland-only build.

Differential Revision: https://phabricator.services.mozilla.com/D88801

Depends on D88800
2020-08-31 11:41:06 +00:00
Philipp Ammann 8f1eec4740 Bug 1661450 - Explicitly include glib.h r=stransky
The build breaks without MOZ_X11 because gboolean and guint are
undefined.

Differential Revision: https://phabricator.services.mozilla.com/D88800

Depends on D88799
2020-08-31 11:41:00 +00:00
Philipp Ammann 4684b3be1b Bug 1661450 - Copy NPAPI related definitions from Android for Wayland r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D88799
2020-08-31 11:40:55 +00:00
Philipp Ammann 170ce998f6 Bug 1661450 - Move GTK2 checks behind MOZ_X11 r=stransky
GTK2 isn't compatible with Wayland and requires X11. No functional
change.

Differential Revision: https://phabricator.services.mozilla.com/D88797
2020-08-31 11:40:42 +00:00
stransky 0dbc7bd1f2 Bug 1672989 Build PipeWire as a part of default builds, r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D94590
2020-11-05 07:47:03 +00:00
stransky a29f10ad84 Bug 1672947 Update PipeWire WebRTC code to PipeWire 0.3, r=ng
Differential Revision: https://phabricator.services.mozilla.com/D94589
2020-11-05 07:08:31 +00:00
stransky c6b65a4b00 Bug 1672987 Use PipeWire when Wayland display is actually used, r=dminor
Right now PipeWire is enabled when Wayland session is used regardless of an active Gtk backend (X11/Wayland).
Let's use PipeWire only when Wayland Gtk backend is used and disable it for X11 one to avoid possible regressions.

Differential Revision: https://phabricator.services.mozilla.com/D94588
2020-11-05 07:46:56 +00:00
Mark Banner 9ad9fa5a59 Bug 1654392 - Ensure the order of the search engine configuration is consistent, and add some more distribution tests. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D95022
2020-11-04 23:17:29 +00:00
Valentin Gosu 07f304d057 Bug 1675203 - Backed out changeset 0bcd9a5ae49f (Bug 1667581) for causing memory usage regressions a=backout
Differential Revision: https://phabricator.services.mozilla.com/D96007
2020-11-05 10:43:09 +00:00
Lars T Hansen 21e53c53a8 Bug 1674353 - Do not assume ArrayBuffer's length is a valid wasm heap length. r=rhunt
In bug 1673818 an intermediary getter was introduced for the buffer
length, in anticipation of larger buffers and a distinction between
32-bit and 64-bit wasm memories.  This getter asserts that the value
it gets is below the limit for the appropriate memory type, eg,
ByteLength32 asserts that the value it gets is below MaxMemory32Bytes,
which is currently 2^31-64K.  However, ArrayBuffers up to 2^31-1 can
be constructed and passed to asm.js, so asm.js must not use this
getter until after it has validated that the buffer length is below
MaxMemory32Bytes.

Thus we use the unchecked byteLength() accessor on the buffer, and
introduce an additional guard in IsValidAsmJSHeapLength that the
length is also a valid wasm length.  This will have no impact on
asm.js in SpiderMonkey as the largest valid asm.js length is already
below the wasm maximum. (The largest valid asm.js length is the
largest value below 2^31-1 whose low 24 bits are all zero.)

Differential Revision: https://phabricator.services.mozilla.com/D95563
2020-11-05 10:37:20 +00:00
Julian Descottes f5505326a1 Bug 1672788 - [marionette] Record html elements in XUL documents as ChromeWebElements r=marionette-reviewers,whimboo,maja_zf
Introduce a new helper element.isInXULDocument that should be used when we need to infer the context (chrome or content) from a given element.
The existing element.isXULElement is still relevant and should be used to detect actual XUL elements, which need to be handled differently from HTML elements.
Use the new helper isInXULDocument:
- in element.from, to decide to create ChromeWebElement or ContentWebElement for a given node.
- in element.add, to infer the context

Differential Revision: https://phabricator.services.mozilla.com/D94907
2020-11-05 10:27:21 +00:00
Nicolas Chevobbe 4bad3995de Bug 1592584 - [devtools] Accept worker targets in console. r=ochameau.
The `dom.worker.console.dispatch_events_to_main_thread` pref is used by platform
code to check if console API messages in the worker thread should be dispatched
to the main thread. If so, the message parameters are cloned, or stringified if
they can't be. This is currently the default behavior.

The pref is checked on the server side and added as a trait to the root actor.
On the client, if the pref isn't true, then we accept messages coming from
worker targets in the console. We can't accept them without condition, otherwise
we would get duplicated message (from the main thread AND the worker thread).

The browser_webconsole_console_logging_workers_api.js test is repurposed for
worker logging since it was disabled on e10s anyway. We add a few test case
to check we can get cached and live message, and that non-clonable object, like
worker scope, are displayed like regular objects when the pref is false.

Differential Revision: https://phabricator.services.mozilla.com/D85397
2020-11-05 10:17:36 +00:00
Lars T Hansen 274d1a5dde Bug 1674965 - Test harness for code generation tests. r=rhunt
The commonalities of the x64 code generation test cases are factored
into lib/codegen-x64-test.js and that file is included by the test
cases.

The harness allows the expected patterns in the test cases to be much
smaller.  The harness adds the pattern prefix and suffix during
preprocessing, adds the address prefix for each line, and makes
whitespace matching more flexible.

Additionally the harness exports some variables (representing
subpatterns) that can be used within the expected patterns to express
common phrases, such as RIP-relative addresses.

Differential Revision: https://phabricator.services.mozilla.com/D95733
2020-11-05 10:15:17 +00:00
Henrik Skupin b1806d83eb Bug 1673823 - [marionette] Use navigation events from the actor and not the framescript when actors are enabled. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D95179
2020-11-04 15:53:18 +00:00
Henrik Skupin a3dc405c30 Bug 1673823 - [marionette] Rename actor MarionetteReftestFrame to MarionetteReftest. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D95178
2020-11-03 14:53:44 +00:00
Henrik Skupin 551c9220d6 Bug 1673823 - [marionette] Rename actor MarionetteFrame to MarionetteCommands. r=marionette-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D95177
2020-11-03 14:53:37 +00:00
smolnar 4812a2d73b Backed out changeset e1297b6262c4 (bug 1674353) for causing build bustages in AsmJS. CLOSED TREE 2020-11-05 12:15:12 +02:00
Cosmin Sabou 4d167c5d6b Backed out 5 changesets (bug 1661450) for causing build bustages. CLOSED TREE
Backed out changeset b01a3dceb3eb (bug 1661450)
Backed out changeset 4a0b897aa1b2 (bug 1661450)
Backed out changeset 561d7cce5353 (bug 1661450)
Backed out changeset 088f1afeff27 (bug 1661450)
Backed out changeset 04db3acdf84f (bug 1661450)
2020-11-05 12:00:59 +02:00
Victor Porof 8c1171c7f8 Bug 1638977 - Convert 'mach prettier-format' to run with Python 3, r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D93350
2020-11-05 09:45:14 +00:00
Philipp Ammann d3b31d1286 Bug 1661450 - Guard X11-only code behind #ifdef MOZ_X11 r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D88803
2020-08-31 11:41:22 +00:00
Philipp Ammann 8627137b2b Bug 1661450 - Move X11 headers behind CONFIG['MOZ_X11'] r=stransky
Required in preparation for a Wayland-only build.

Differential Revision: https://phabricator.services.mozilla.com/D88801

Depends on D88800
2020-08-31 11:41:06 +00:00
Philipp Ammann 1b86ba73c2 Bug 1661450 - Explicitly include glib.h r=stransky
The build breaks without MOZ_X11 because gboolean and guint are
undefined.

Differential Revision: https://phabricator.services.mozilla.com/D88800

Depends on D88799
2020-08-31 11:41:00 +00:00
Philipp Ammann 2b392266ab Bug 1661450 - Copy NPAPI related definitions from Android for Wayland r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D88799
2020-08-31 11:40:55 +00:00
Philipp Ammann 9eb3f92127 Bug 1661450 - Move GTK2 checks behind MOZ_X11 r=stransky
GTK2 isn't compatible with Wayland and requires X11. No functional
change.

Differential Revision: https://phabricator.services.mozilla.com/D88797
2020-08-31 11:40:42 +00:00
smolnar 625b8a74be Backed out 4 changesets (bug 1673983) for causing build bustages in RenderCompositorD3D11SWGL. CLOSED TREE
Backed out changeset 134e621d0902 (bug 1673983)
Backed out changeset 81601a02d9b7 (bug 1673983)
Backed out changeset 72d4bf5b093e (bug 1673983)
Backed out changeset 99b2e5c55a25 (bug 1673983)
2020-11-05 11:40:36 +02:00
Lars T Hansen e581d4d914 Bug 1674353 - Do not assume ArrayBuffer's length is a valid wasm heap length. r=rhunt
In bug 1673818 an intermediary getter was introduced for the buffer
length, in anticipation of larger buffers and a distinction between
32-bit and 64-bit wasm memories.  This getter asserts that the value
it gets is below the limit for the appropriate memory type, eg,
ByteLength32 asserts that the value it gets is below MaxMemory32Bytes,
which is currently 2^31-64K.  However, ArrayBuffers up to 2^31-1 can
be constructed and passed to asm.js, so asm.js must not use this
getter until after it has validated that the buffer length is below
MaxMemory32Bytes.

Thus we use the unchecked byteLength() accessor on the buffer, and
introduce an additional guard in IsValidAsmJSHeapLength that the
length is also a valid wasm length.  This will have no impact on
asm.js in SpiderMonkey as the largest valid asm.js length is already
below the wasm maximum. (The largest valid asm.js length is the
largest value below 2^31-1 whose low 24 bits are all zero.)

Differential Revision: https://phabricator.services.mozilla.com/D95563
2020-11-05 09:30:17 +00:00
Edgar Chen 327e02d48a Bug 1675397 - Part 2: Use AutoRestore to reset nsFocusManager::mFirst{Blur|Focus}Event; r=hsivonen
Depends on D95946

Differential Revision: https://phabricator.services.mozilla.com/D95947
2020-11-05 09:05:05 +00:00
Edgar Chen 117f50f8ce Bug 1675397 - Part 1: Use RefPtr<Element> for nsFocusManager::mFirst{Blur|Focus}Event; r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D95946
2020-11-05 09:04:38 +00:00
Matt Woodrow a87cdef8a4 Bug 1673983 - Preload d3d11 attachments for CompositorD3D11 if we might use it with software WebRender. r=lsalzman
Depends on D95800

Differential Revision: https://phabricator.services.mozilla.com/D95980
2020-11-05 09:15:32 +00:00
Matt Woodrow f59d6ceb00 Bug 1673983 - Support using D3D11 textures as external compositor surfaces with D3D11 compositor. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95800
2020-11-05 09:15:28 +00:00
Matt Woodrow b8c9f1b675 Bug 1673983 - Add RenderTextureHostSWGL support to D3D11 RenderTextureHosts. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95799
2020-11-05 09:15:05 +00:00
Matt Woodrow f9fe60e315 Bug 1673983 - Add D3D11 RenderCompositor for SWGL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95797
2020-11-05 09:14:52 +00:00
Frederik Braun 92b3faea4e Bug 1674735 - add port 5060 to bad port list r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95504
2020-11-05 00:51:24 +00:00
Lars T Hansen 50879b2236 Bug 1675216 - Insert assertions that scratch registers are available when they are used. r=nbp
Some uses of naked ip0 and ip1 registers really should use the scratch
register scopes to avoid conflict in the Masm, or should have copious
commentary to reason why it is ok not to do so.

This uncovered a minor issue where a register was used while it was
claimed by higher-level code but this was only a scoping bug higher
up, not an actual code bug.

Differential Revision: https://phabricator.services.mozilla.com/D95867
2020-11-05 08:57:09 +00:00
Nicolas Chevobbe 4269e69069 Bug 1674417 - [devtools] Rename SourcesManager instances. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D95333
2020-11-05 08:54:54 +00:00
smolnar a60ce46b27 Backed out 3 changesets (bug 1672987, bug 1672947, bug 1672989) for causing linux bustages. CLOSED TREE
Backed out changeset fc296ca6ed9c (bug 1672989)
Backed out changeset f41784d22570 (bug 1672947)
Backed out changeset 0117c49b1ff6 (bug 1672987)
2020-11-05 10:26:11 +02:00
smolnar c784367df9 Backed out 3 changesets (bug 1660336) for causing build bustages in vaapi. CLOSED TREE
Backed out changeset f53408903b5e (bug 1660336)
Backed out changeset 450b4f240ff5 (bug 1660336)
Backed out changeset 7694d9e2424b (bug 1660336)
2020-11-05 10:25:11 +02:00
Martin Stransky 84655dbdb1 Bug 1660336 Implement FFmpegLibWrapper::LinkVAAPILibs() to link VAAPI libraries and use at at FFmpegRuntimeLinker/FFVPXRuntimeLinker, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D90556
2020-11-05 07:38:26 +00:00
Martin Stransky 78ed8d65db Bug 1660336 Implement DMABufSurfaceWrapper and VAAPIDisplayHolder as templates, r=jya
Implemented DMABufSurfaceWrapper and VAAPIDisplayHolder as a versioned class templates
as they are going to be used by both system ffmpeg and bundled ffvpx decoders.

Differential Revision: https://phabricator.services.mozilla.com/D90555
2020-11-05 07:36:35 +00:00
Martin Stransky 84d22b3544 Bug 1660336 Add VP8/VP9 VAAPI HW decode code to bundled ffvpx and build it with MOZ_WAYLAND target, r=jya
- Update in-tree ffvpx library with VP8/VP9 VAAPI HW decode code from FFmpeg 4.2.
- Enable VP8/VP9 VAAPI HW decode on MOZ_WAYLAND target.

Differential Revision: https://phabricator.services.mozilla.com/D90554
2020-11-05 07:34:57 +00:00
stransky 5d32082985 Bug 1672989 Build PipeWire as a part of default builds, r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D94590
2020-11-05 07:47:03 +00:00
stransky 4e199e5fc1 Bug 1672947 Update PipeWire WebRTC code to PipeWire 0.3, r=ng
Differential Revision: https://phabricator.services.mozilla.com/D94589
2020-11-05 07:08:31 +00:00
stransky 4422f81baa Bug 1672987 Use PipeWire when Wayland display is actually used, r=dminor
Right now PipeWire is enabled when Wayland session is used regardless of an active Gtk backend (X11/Wayland).
Let's use PipeWire only when Wayland Gtk backend is used and disable it for X11 one to avoid possible regressions.

Differential Revision: https://phabricator.services.mozilla.com/D94588
2020-11-05 07:46:56 +00:00
alwu 0c0c2f3994 Bug 1674845 - part4 : add 'browser' subfolder for autoplay browser tests. r=bryce
subsuite media for browser tests.

Differential Revision: https://phabricator.services.mozilla.com/D95881
2020-11-05 06:15:07 +00:00
alwu 31f03aa534 Bug 1674845 - part3 : create 'mochitest' subfolder for autoplay related plain mochitests. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D95880
2020-11-05 04:50:13 +00:00
alwu 35d0af6eef Bug 1674845 - part2 : create 'autoplay' subfolder and move related files. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D95879
2020-11-05 04:50:11 +00:00