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

779953 Коммитов

Автор SHA1 Сообщение Дата
Jan Rio Krause 9b755d54c9 Bug 1740985 - Consistent error messages for scripts which failed to load. r=dom-storage-reviewers,edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D133515
2021-12-17 16:18:24 +00:00
Andreas Farre 59cac0e2a0 Bug 1741610 - Start LoginDetectionService on Android. r=agi,dimi
Differential Revision: https://phabricator.services.mozilla.com/D131357
2021-12-17 16:06:25 +00:00
Nicolas Chevobbe f47f462297 Bug 1746150 - [devtools] Reset vertical scroll position when updating HTMLTooltip container. r=jdescottes.
This fixes issues with the iframe dropdown when it overflows and targets are
added/removed.

Differential Revision: https://phabricator.services.mozilla.com/D134039
2021-12-17 16:00:11 +00:00
Nicolas Chevobbe c33cb4b2ec Bug 1743594 - [devtools] Fix browser_styleinspector_tooltip-background-image.js intermittent. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D134130
2021-12-17 15:52:58 +00:00
Tom Ritter 7a0ec6862a Bug 1432983 - Remove mdns r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D134147
2021-12-17 15:46:32 +00:00
Randell Jesup 856dc877f5 Bug 1746314 ffmpeg cleanup r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D133983
2021-12-17 15:30:17 +00:00
Randell Jesup 742ff90d2f Bug 1746322: MediaSource cleanup r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D133986
2021-12-17 15:19:57 +00:00
Julian Seward b71f48bafa Bug 1716580 - ARM64+x64: Generate good code for i64 compare-and-select. r=lth.
For all targets, we generate good code for i32 compare followed by i32 select,
provided the compare result is only used once.  "Good" in the sense that the
comparison result is not materialised into a register, but is instead
transmitted to the select instruction as a condition code.

On various targets float64 and float32 arguments are variously accepted as the
comparison and/or selection types.  However, on no targets are 64-bit integers
accepted as either type.

This patch extends the machinery to create good code for the cases
compare-i32-select-i64, compare-i64-select-i32 and compare-i64-select-i64, on
x64 and arm64.  All other targets are unaffected.  The patch uses the existing
`LWasmCompareAndSelect` LIR node since that already has meaning "single
register compare, single register select", and we are not introducing any
double-register working here.

The methods `LIRGenerator*::canSpecializeWasmCompareAndSelect`,
`LIRGenerator*::lowerWasmCompareAndSelect` and
`CodeGenerator*::visitWasmCompareAndSelect` have been completely un-shared
(they were previously partly shared) and specialised to their specific
architectures.  With the addition of the {i32,i64} x {i32,i64} cases the
remaining sharing is minimal and makes the code harder to follow.

The rest of the changes are straightforward.

tests/wasm/binop-arm64-ion-codegen.js
tests/wasm/binop-x64-ion-codegen.js
* new tests

jit/shared/Lowering-shared.cpp
* remove generic {canSpecialize,lower}WasmCompareAndSelect

jit/CodeGenerator.cpp:
* remove generic emitWasmCompareAndSelect

jit/arm64/Lowering-arm64.cpp
* extend existing {canSpecialize,lower}WasmCompareAndSelect

jit/arm64/CodeGenerator-arm64.cpp
* extend existing visitWasmCompareAndSelect

jit/x64/Lowering-x64.cpp
* private versions of {canSpecialize,lower}WasmCompareAndSelect

jit/x64/CodeGenerator-x64.cpp
* new method visitWasmCompareAndSelect (heavily modified generic)

jit/arm/Lowering-arm.cpp
* private versions of {canSpecialize,lower}WasmCompareAndSelect

jit/arm/CodeGenerator-arm.cpp
* private version of emitWasmCompareAndSelect (specialisation of generic)

jit/x86/Lowering-x86.cpp
* private versions of {canSpecialize,lower}WasmCompareAndSelect

jit/x86/CodeGenerator-x86.cpp
* private version of emitWasmCompareAndSelect (copy of generic)

jit/arm64/MacroAssembler-arm64.h
* new insn support for arm64

jit/x64/MacroAssembler-x64.h
jit/x64/MacroAssembler-x64.cpp
* new insn support for x64

Differential Revision: https://phabricator.services.mozilla.com/D133738
2021-12-17 14:18:42 +00:00
Nicolas Chevobbe 997279c94d Bug 1746149 - [devtools] Remove OSX-specific Cmd+G shortcut in debugger. r=jdescottes.
The keyboard shortcut was supposed to move to the next search
result, but was only working on OSX. As you can already cycle
through search results with Enter, and given that Cmd+G only (barely)
work on OSX, it's safe to remove it.

Differential Revision: https://phabricator.services.mozilla.com/D134128
2021-12-17 13:53:55 +00:00
Randell Jesup e42701e569 Bug 1746451: apz cleanup r=botond
Differential Revision: https://phabricator.services.mozilla.com/D134054
2021-12-17 13:45:31 +00:00
stransky 7342689d41 Bug 1746170 [Wayland] Really return from RequestFocusWaylandWindow when we're missing gFocusWindow r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D134141
2021-12-17 13:40:33 +00:00
Kagami Sascha Rosylight d99a294a3b Bug 1539884 - Part 20: Mark XULBroadcastManager::ExecuteOnBroadcastHandlerFor as CAN_RUN_SCRIPT r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D134111
2021-12-17 13:27:53 +00:00
Kagami Sascha Rosylight 593535bad1 Bug 1539884 - Part 19: Mark XMLDocument::EndLoad as CAN_RUN_SCRIPT_BOUNDARY r=masayuki
Depends on D134109

Differential Revision: https://phabricator.services.mozilla.com/D134110
2021-12-17 13:27:52 +00:00
Kagami Sascha Rosylight 65777f8c50 Bug 1539884 - Part 18: Mark AsyncTimeEventRunner::Run as CAN_RUN_SCRIPT_BOUNDARY r=masayuki
Depends on D134108

Differential Revision: https://phabricator.services.mozilla.com/D134109
2021-12-17 13:27:52 +00:00
Kagami Sascha Rosylight d5c873e8f4 Bug 1539884 - Part 17: Mark nsIScriptLoaderObserver::scriptEvaluated as can_run_script r=masayuki
Depends on D134107

Differential Revision: https://phabricator.services.mozilla.com/D134108
2021-12-17 13:27:52 +00:00
Kagami Sascha Rosylight 6a8c77d944 Bug 1539884 - Part 16: Mark BrowserParent::RecvReplyKeyEvent/RecvAccessKeyNotHandled as CAN_RUN_SCRIPT_BOUNDARY r=masayuki
Depends on D134106

Differential Revision: https://phabricator.services.mozilla.com/D134107
2021-12-17 13:27:51 +00:00
Kagami Sascha Rosylight 7775bba438 Bug 1539884 - Part 15: Mark BrowserBridgeChild::RecvMaybeFireEmbedderLoadEvents as CAN_RUN_SCRIPT_BOUNDARY r=masayuki
Depends on D134105

Differential Revision: https://phabricator.services.mozilla.com/D134106
2021-12-17 13:27:51 +00:00
Kagami Sascha Rosylight 39ed8d6613 Bug 1539884 - Part 14: Mark nsGenericHTMLElement::Click/DispatchSimulatedClick as CAN_RUN_SCRIPT r=masayuki
Depends on D134104

Differential Revision: https://phabricator.services.mozilla.com/D134105
2021-12-17 13:27:51 +00:00
Kagami Sascha Rosylight d1cd38ef73 Bug 1539884 - Part 13: Mark HTMLMenuElement::SendShowEvent as CAN_RUN_SCRIPT r=masayuki
Depends on D134103

Differential Revision: https://phabricator.services.mozilla.com/D134104
2021-12-17 13:27:50 +00:00
Kagami Sascha Rosylight 05393198e0 Bug 1539884 - Part 12: Mark HTMLInputElement::DispatchSelectEvent as CAN_RUN_SCRIPT r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D134103
2021-12-17 13:27:50 +00:00
Emilio Cobos Álvarez 10f75929c1 Bug 1746407 - Fix layer-import-parsing.html. r=boris
This test should pass, actually, but it was failing because we don't
allow loading @import rules in a detached stylesheet because it's not
clear which document should own the load.

The sheet doesn't need to be removed for the test to be correct.

Differential Revision: https://phabricator.services.mozilla.com/D134019
2021-12-17 12:58:57 +00:00
Emilio Cobos Álvarez 8fdcc6a236 Bug 1746391 - Deal with layers and at-rules. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D134010
2021-12-17 12:58:32 +00:00
Edgar Chen e88b81fa72 Bug 367028 - Prevent drag-and-drop operation while dragging a scrollbar; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D131736
2021-12-17 12:10:58 +00:00
Markus Stange 875a34857d Bug 1362277 - Add an entry for dyld to the shared library list on macOS. r=gerald
This patch was r+ed before by Ted, but it never landed because I initially intended
to address Ted's review comment (about making it work on 10.11 and below), and
because it needed to be rebased around bug 1374888.
The rebase turned out to be really simple, and Ted's review comment no longer applies
because Firefox no longer runs on 10.11 and below.

Profile with fix: https://share.firefox.dev/3oYzvO6

Differential Revision: https://phabricator.services.mozilla.com/D134008
2021-12-17 11:54:28 +00:00
Markus Stange b9622a7b8f Bug 1745978 - Add the ability to fetch source code from disk to the Profiler WebChannel's querySymbolicationApi method. r=canaltinova
This updates profiler-get-symbols to the latest version.
The new /source/v1 entry point was implemented in
edb78205d1

Furthermore, this update also picks up a fix for macOS 12 system library symbolication.

Differential Revision: https://phabricator.services.mozilla.com/D133757
2021-12-17 11:11:48 +00:00
Masayuki Nakano f96606fb74 Bug 1355842 - Re-enable layout/base/tests/test_reftests_with_caret.html on Android r=geckoview-reviewers,emilio,m_kato
All of them are still disabled for some test failures.  There are 3 patterns
failures:

1. Tests with `<input type="password">` assumes that last input character is
masked immediately.
2. Tests with synthesizing mouse button events in editable element
3. Test with DnD

The first case can be fixed with disabling echoing last input character by the
pref.

The second case can be fixed with disabling "zoom to editable element" by the
pref.

The last case cannot be fixed, therefore I disable it on Android.

Differential Revision: https://phabricator.services.mozilla.com/D133719
2021-12-17 11:05:40 +00:00
Julian Descottes 78e5eb0c46 Bug 1742491 - [remote] Filter out parent process frames in MessageHandlerFrameChild r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D131897
2021-12-17 09:48:50 +00:00
Edgar Chen f9a4a6bd64 Bug 1739220 - Handle fullscreen state in a more reliable way; r=smaug,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131185
2021-12-17 09:15:10 +00:00
Mike Hommey 73230b8c3e Bug 1744234 - Bump minimum Rust version to 1.57. r=firefox-build-system-reviewers,andi
Also update the table of Firefox requirements. It's worth noting that I
actually upgraded to 1.57 earlier than I should have (too close to
freeze), but what is done is done.

Differential Revision: https://phabricator.services.mozilla.com/D134124
2021-12-17 08:37:39 +00:00
Mark Banner 5276658850 Bug 1746160 - Stop using the second argument to ChromeUtils.import in various files in toolkit/components/crashes. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D133880
2021-12-17 07:56:17 +00:00
Iulian Moraru bc54af97a3 Backed out changeset 5d4fad943435 (bug 1745022) for causing mochitest failures on browser_xpcom_graph_wait.js. CLOSED TREE 2021-12-17 10:16:43 +02:00
Nicolas Chevobbe 96fd8e5787 Bug 1736183 - [devtools] Add test for reset of node picker hovered node reference. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D133879
2021-12-17 07:18:18 +00:00
Julian Descottes 0b7fd00802 Bug 1736183 - [devtools] Reset hovered node reference when cancelling node picker r=nchevobbe
Quick patch, but needs test coverage

Differential Revision: https://phabricator.services.mozilla.com/D131375
2021-12-17 07:18:17 +00:00
Karl Tomlinson d9ea0ec247 Bug 1744346 remove unused AnonymizeDevices path for empty aOriginKey r=jib
AnonymizeDevices() will not be called if GetPrincipalKey() rejects.
https://searchfox.org/mozilla-central/rev/5c35d0f53fbd1b8b992d192cb5239bf2cc3e6e6e/dom/media/MediaManager.cpp#2999

Depends on D132880

Differential Revision: https://phabricator.services.mozilla.com/D132881
2021-12-17 05:54:29 +00:00
Karl Tomlinson cbb8cb44e2 Bug 1744346 simplify MediaDevice group id changes r=jib
Depends on D132879

Differential Revision: https://phabricator.services.mozilla.com/D132880
2021-12-17 05:54:28 +00:00
Karl Tomlinson 388a704752 Bug 1744346 remove unused raw MediaDevice constructor parameter aRawID r=jib
This may have been unused since a different constructor was added for AnonymizeDevices() in
https://hg.mozilla.org/mozilla-central/rev/d4d476a32ea823ee98a40bedbcdd509dee5dc84c#l3.256

Depends on D132878

Differential Revision: https://phabricator.services.mozilla.com/D132879
2021-12-17 05:54:28 +00:00
Karl Tomlinson 79aa7ea4c8 Bug 1744346 remove unused nsIMediaDevice properties r=jib
Depends on D132877

Differential Revision: https://phabricator.services.mozilla.com/D132878
2021-12-17 05:54:28 +00:00
Karl Tomlinson 630f8a0746 Bug 1744346 test that the mochitest window is among the scary r=jib
Depends on D132876

Differential Revision: https://phabricator.services.mozilla.com/D132877
2021-12-17 05:54:27 +00:00
Karl Tomlinson 5b0374554e Bug 1744346 consolidate boolean device enumeration parameters into a flags parameter r=jib
The key motivator here was the misleading aForceNoPermRequest parameter.
This came from an unreviewed change in response to a review request.
https://phabricator.services.mozilla.com/D14575?vs=44463&id=47352#inline-82282
The newer variable name described the opposite of its use, but its usage was
not negated.

The logical change to the AllowPermissionRequest flag no longer passed from
MediaDevices::GetSinkDevice() has little effect because any permission
required would be obtained from getUserMedia() or selectAudioOutput() prior to
setSinkId().  A permission request is not expected during setSinkId().

The EnumerateAudioOutputs flag removes some use of the confusing
MediaSinkEnum::Other and makes the long list of parameters slightly easier to
read.

Differential Revision: https://phabricator.services.mozilla.com/D132875
2021-12-17 05:54:27 +00:00
Chris Peterson f445b7454a Bug 1745249 - Graduate Fission Beta 96-97 rollout. r=mythmon
Fission is enabled by default in Firefox 97 (by bug 1732358), so we won't need this rollout in Beta 97.

The rollout's Experimenter ticket:

https://experimenter.services.mozilla.com/experiments/fission-beta-96-97-rollout/

Differential Revision: https://phabricator.services.mozilla.com/D133852
2021-12-17 05:44:22 +00:00
Gerald Squelart 4199f5065e Bug 1734867 - Use single static buffer when capturing stacks for main-thread markers - r=florian
The main thread is the busiest, so it benefits the most from having its own chunked buffer. This removes one allocation when capturing a marker stack on the main thread of each process.
That buffer is allocated when the first profiler starts, and is destroyed when the last profiler stops.

Note: Further improvements are possible (e.g.: Pool of pre-allocated buffers, attempting to use a stack-based buffer, etc.), but they are more complex and will require more work in future bugs.

Differential Revision: https://phabricator.services.mozilla.com/D133725
2021-12-17 05:27:06 +00:00
Gerald Squelart 0b5f1f299e Bug 1734867 - Refactor stack-capturing path in AddMarkerToBuffer - r=florian
The resulting code should be the same. The factored lambda will be called in the next patch with a different chunked buffer.

Differential Revision: https://phabricator.services.mozilla.com/D133724
2021-12-17 05:27:06 +00:00
Gerald Squelart 212a940977 Bug 1734867 - Allocate ProfilerBuffer's worker ChunkManager only when first needed - r=florian
Some ProfileBuffers are temporary and don't actually need this allocation.

Differential Revision: https://phabricator.services.mozilla.com/D133723
2021-12-17 05:27:05 +00:00
Karl Tomlinson 24d0bd8cec Bug 1729128 remove unused "media.navigator.streams.fake" pref r=bryce
"media.navigator.streams.fake" has no effect on getDisplayMedia() because it
affects only cameras and microphones.
https://searchfox.org/mozilla-central/rev/667224045f6e624ac4e730171c75c21945f1b336/dom/media/MediaManager.cpp#2672-2683

Depends on D133988

Differential Revision: https://phabricator.services.mozilla.com/D133989
2021-12-17 02:40:54 +00:00
Karl Tomlinson 6d0a65c506 Bug 1729128 start gesture activation immediately before getDisplayMedia() r=bryce
DisplayMediaStreamConstraints.video defaults to true.
https://searchfox.org/mozilla-central/rev/667224045f6e624ac4e730171c75c21945f1b336/dom/webidl/MediaStream.webidl#27

Differential Revision: https://phabricator.services.mozilla.com/D133988
2021-12-17 02:40:53 +00:00
Glenn Watson 6ca5c48c9b Bug 1745878 - Temporary fix for incorrect surface opaqueness test. r=gfx-reviewers,nical
Revert "Bug 1742742 - Use backdrop candidates for opaque picture detection r=gfx-reviewers,nical"

This reverts commit 6d918f342ae9dedaed4b411efe7998342f00fcf3.

The patch above can incorrectly determine a surface to be opaque
when it may not be, due to a child picture surface having a rect
that extends outside the parent estimate picture rect. The problem
is not the patch itself, but that it exposes an existing bug with
how bounding rects of child surfaces are handled.

I'm currently refactoring the visibility pass to fix how child
bounding rect propagation and inflation works. Because of this,
it's simpler to revert this change for now, and re-land once the
rest of the visibility pass work is complete.

Differential Revision: https://phabricator.services.mozilla.com/D133971
2021-12-17 01:26:45 +00:00
Mike Hommey d94d03bafc Bug 1744886 - Forbid `mach vendor rust` vendoring some crates. r=firefox-build-system-reviewers,andi
Also fail when Cargo.toml patches end up unused.

Differential Revision: https://phabricator.services.mozilla.com/D133849
2021-12-17 01:16:06 +00:00
Mike Hommey bd5b9568e1 Bug 1744886 - Override the vcpkg and cmake crates. r=firefox-build-system-reviewers,andi,mhentges
with mostly empty crates.

We don't want cargo to be unexpectedly calling into other build systems.

Differential Revision: https://phabricator.services.mozilla.com/D133848
2021-12-17 01:16:06 +00:00
Patrick ab5ce94360 Bug 1743102 Added color-scheme meta tag to remaining about: pages r=Gijs,necko-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D133743
2021-12-17 00:42:23 +00:00
Cristian Tuns 348796281f Backed out changeset f90cb649f371 (bug 1729815) for causing mochitest failures on Mutex_posix.cpp CLOSED TREE 2021-12-16 19:45:55 -05:00