Commit Graph

784979 Commits

Author SHA1 Message Date
Dimi
f6b81eaac0 Bug 1753588 - Restrict the number of form looked up while checking whether autofilling a username-only form r=tgiles,sgalich
This patch adds a pref "signon.usernameOnlyForm.formThreshold" to limit
the number of form we processed while receiving "PWMGR_NUM_FORM_HAS_POSSIBLE_USERNAME_EVENT_PER_DOC"
event. This improves the performance while loading a page with multiple username-only likely form.

Differential Revision: https://phabricator.services.mozilla.com/D138121
2022-02-11 08:28:38 +00:00
smolnar
f362689008 Bug 1753820 - Update wpt expectancies in the-offscreen-canvas/offscreencanvas.getcontext.html.ini/offscreencanvas.getcontext.worker.js.ini r=aryx DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D138500
2022-02-11 08:19:37 +00:00
stransky
7d218e435f Bug 1743365 [Linux] Cache clipboard targets r=emilio
nsClipboard::HasDataMatchingFlavors() calls nsRetrievalContext::GetTargets() which obtains clipboard targets. We need to call Gtk code for that and spin evetn loop to get the targets.
In this patch we store clipboard tragets internally to speed up nsClipboard::HasDataMatchingFlavors() calls. We also listen at owner-change signal to clear target cache when clipboard content changes.

Differential Revision: https://phabricator.services.mozilla.com/D137899
2022-02-11 07:43:11 +00:00
Marian-Vasile Laza
bb43a35448 Backed out 8 changesets (bug 1753192) for causing Gtest failures on GeckoProfiler.cpp. CLOSED TREE
Backed out changeset 2f0c24b1f049 (bug 1753192)
Backed out changeset 1a71d954b83f (bug 1753192)
Backed out changeset 07a8ffa8d12f (bug 1753192)
Backed out changeset f79cd543e537 (bug 1753192)
Backed out changeset c2f22d8a8fc8 (bug 1753192)
Backed out changeset c8a0d3c41d2f (bug 1753192)
Backed out changeset 1d5d69d92db9 (bug 1753192)
Backed out changeset 5bc8bd033453 (bug 1753192)
2022-02-11 09:39:38 +02:00
James Teh
f65b9ea3f5 Bug 1730085 part 4: Implement support for BOUNDARY_WORD_END in TextLeafPoint and HyperTextAccessibleBase. r=eeejay
BOUNDARY_WORD_END is implemented using BOUNDARY_WORD_START and adjusting for spaces, which are word end boundaries.
This is arguably less efficient than it could be, since we will walk over space and then reverse course to compensate.
However, the alternative would mean keeping two slightly different versions of the word boundary check code in sync, plus compensating for the fact that a word often ends before a line start while still supporting words split by line wrapping.
I felt the lower complexity here outweighed the potential slight loss in efficiency.
We can always revisit this if this turns out to be a real problem.

Differential Revision: https://phabricator.services.mozilla.com/D138105
2022-02-11 06:27:03 +00:00
James Teh
08355e27b6 Bug 1730085 part 3: Move GetWordBreakClass out of PrevWordBreakClassWalker, as it will be needed outside of that class soon. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D138104
2022-02-11 06:27:03 +00:00
James Teh
a8bd05cd9a Bug 1730085 part 2: Implement support for BOUNDARY_LINE_END in TextLeafPoint and HyperTextAccessibleBase. r=eeejay
BOUNDARY_LINE_END is implemented using BOUNDARY_LINE_START and adjusting for line feed characters, which are line end boundaries where present.

Differential Revision: https://phabricator.services.mozilla.com/D138103
2022-02-11 06:27:03 +00:00
James Teh
7039008a5d Bug 1730085 part 1: Fix some bugs in TextLeafPoint::FindBoundary for BOUNDARY_CHAR. r=eeejay
These bugs cause problems for the upcoming implementation of BOUNDARY_LINE_END.

1. Don't always return no character at the caret. Only do that if the caret is at the end of the line. This was always the intent; this was just a silly mistake.
2. When moving to the next character in an Accessible, don't move past the last character. This was a simple off-by-one error.

Differential Revision: https://phabricator.services.mozilla.com/D138102
2022-02-11 06:27:02 +00:00
Nicolas Chevobbe
98fbe382c9 Bug 1754453 - [devtools] Early exit getWarningGroupType when message can't be in a warningGroup. r=dthayer.
If the message isn't a warning or an info, it can't
be in a warningGroup, so we can exit the function
earlier and avoid useless checks.

Differential Revision: https://phabricator.services.mozilla.com/D138299
2022-02-11 06:06:19 +00:00
Hubert Boma Manilla
67566267d9 Bug 1753626 - [devtools] Repurpose browser_dbg-reload.js to test breakpoints on reload when source content changes r=ochameau
This repurposes browser_dbg-reload.js which tested breakpoints resync after reload when the source
content changes.
This renamed test (browser_dbg-breakpoints-reloading-with-source-changes.js) covers the expected behaviour after breakpoint shifting is removed.

The sceanarios covered are :-

- When new content is added and the breakpoint points to a different source code
- When the content changes and the breakpoint is on a non-breakable line
- When the content changes and the line for the breakpoint has been removed.

Currently we use IS_BREAKPOINT_SHIFTING_ENABLED to make the test pass with all the issues.

Also removing old example files that are no longer used.

Differential Revision: https://phabricator.services.mozilla.com/D136720
2022-02-11 06:00:32 +00:00
Mike Hommey
dbc7289949 Bug 1754668 - Adjust clang trunk patches. r=firefox-build-system-reviewers,andi
llvmorg-13-init-8182-gc2297544c047 was finally backed out upstream which
means we don't need to revert it or its followups
(llvmorg-14-init-3651-g85ba583eba19 and llvmorg-14-init-3652-gf3c2094d8c11)

Differential Revision: https://phabricator.services.mozilla.com/D138399
2022-02-11 03:54:04 +00:00
Gerald Squelart
194a013384 Bug 1753192 - Add handover marker - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D137805
2022-02-11 03:13:53 +00:00
Gerald Squelart
9f19f2143b Bug 1753192 - Use combined core buffer, and transfer ownership of chunk manager from base to gecko profiler - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D137804
2022-02-11 03:13:52 +00:00
Gerald Squelart
f811caf3b2 Bug 1753192 - ThreadRegistrationInfo reuses the Base Profiler thread registration time if any - r=canaltinova
Once the buffers are combined, some data could be stored in a thread before its registration with the Gecko Profiler.
Without this fix, the front-end would think the thread had not started yet, which could prevent interacting with that early data.

Differential Revision: https://phabricator.services.mozilla.com/D138239
2022-02-11 03:13:52 +00:00
Gerald Squelart
6906b4d69a Bug 1753192 - Fix apparent negative leak of RequestedChunkRefCountedHolder - r=canaltinova
Once the buffers are combined, a RequestedChunkRefCountedHolder could be referenced from the Base Profiler, which is invisible to the leak catcher; then handed over to the Gecko Profiler where it will eventually be dereferenced, which is logged with the leak catcher, resulting in an apparent negative leak.
This is fixed by keeping all (de)references secret.

Differential Revision: https://phabricator.services.mozilla.com/D138238
2022-02-11 03:13:51 +00:00
Gerald Squelart
adf6de3385 Bug 1753192 - Make ActivePS::mProfileBufferChunkManager a UniquePtr, to allow transferring it between profilers - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D137803
2022-02-11 03:13:51 +00:00
Gerald Squelart
f3c4f65d02 Bug 1753192 - Move core ProfileChunkedBuffers to static singletons in profiler_get_core_buffer() - r=canaltinova
Note that they are still separate buffers for now.

Differential Revision: https://phabricator.services.mozilla.com/D137802
2022-02-11 03:13:51 +00:00
Gerald Squelart
aa44b10600 Bug 1753192 - Removed unused ProfileChunkedBuffer::ExtractChunkManager() - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D137801
2022-02-11 03:13:50 +00:00
Gerald Squelart
9d51c7527c Bug 1753192 - Move InChunkPointer to new header ProfileChunkedBufferDetail.h - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D137800
2022-02-11 03:13:50 +00:00
smolnar
af6e7b57c0 Backed out 4 changesets (bug 1730085) for causing bp-hybrid build bustages. CLOSED TREE
Backed out changeset dd90514bc052 (bug 1730085)
Backed out changeset 750f98502e6d (bug 1730085)
Backed out changeset e15365af4131 (bug 1730085)
Backed out changeset f08f12d82f7f (bug 1730085)
2022-02-11 05:25:29 +02:00
smolnar
290a28b6d5 Backed out changeset 260a3d2ed070 (bug 1747149) for causing android xpc failures in test_BrowserUtils. 2022-02-11 05:04:29 +02:00
James Teh
f5a04369df Bug 1754360: Move EndOffset to base Accessible. r=eeejay
Similar to StartOffset:

1. There was a Windows non-cached RemoteAccessible implementation, but it was never actually called, so I removed it.
2. The sync IPDL RemoteAccessible implementation previously provided a boolean indicating success.
    I removed this because the LocalAccessible implementation doesn't have this and it doesn't seem like remote is special in this respect.

Differential Revision: https://phabricator.services.mozilla.com/D138243
2022-02-11 02:37:13 +00:00
James Teh
3934c7d529 Bug 1730085 part 4: Implement support for BOUNDARY_WORD_END in TextLeafPoint and HyperTextAccessibleBase. r=eeejay
BOUNDARY_WORD_END is implemented using BOUNDARY_WORD_START and adjusting for spaces, which are word end boundaries.
This is arguably less efficient than it could be, since we will walk over space and then reverse course to compensate.
However, the alternative would mean keeping two slightly different versions of the word boundary check code in sync, plus compensating for the fact that a word often ends before a line start while still supporting words split by line wrapping.
I felt the lower complexity here outweighed the potential slight loss in efficiency.
We can always revisit this if this turns out to be a real problem.

Differential Revision: https://phabricator.services.mozilla.com/D138105
2022-02-11 02:25:21 +00:00
James Teh
6102cca20f Bug 1730085 part 3: Move GetWordBreakClass out of PrevWordBreakClassWalker, as it will be needed outside of that class soon. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D138104
2022-02-11 02:25:21 +00:00
James Teh
df5caa3102 Bug 1730085 part 2: Implement support for BOUNDARY_LINE_END in TextLeafPoint and HyperTextAccessibleBase. r=eeejay
BOUNDARY_LINE_END is implemented using BOUNDARY_LINE_START and adjusting for line feed characters, which are line end boundaries where present.

Differential Revision: https://phabricator.services.mozilla.com/D138103
2022-02-11 02:25:21 +00:00
James Teh
9e62d53a3d Bug 1730085 part 1: Fix some bugs in TextLeafPoint::FindBoundary for BOUNDARY_CHAR. r=eeejay
These bugs cause problems for the upcoming implementation of BOUNDARY_LINE_END.

1. Don't always return no character at the caret. Only do that if the caret is at the end of the line. This was always the intent; this was just a silly mistake.
2. When moving to the next character in an Accessible, don't move past the last character. This was a simple off-by-one error.

Differential Revision: https://phabricator.services.mozilla.com/D138102
2022-02-11 02:25:20 +00:00
ahochheiden
883848bcf0 Bug 1752879 - Remove unnecessary check for Homebrew PATH ordering r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D137565
2022-02-11 02:12:15 +00:00
Andrew McCreight
f4d8751f09 Bug 1754652 - Remove WINDOW_REMOTE_SUBFRAMES_ENABLED_STATUS telemetry. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D138472
2022-02-11 02:11:08 +00:00
Meg Viar
c62eb53c24 Bug 1747149 - Consolidate logic for when to show VPN promo and add BrowserUtils tests r=dmose,preferences-reviewers,prathiksha,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D134874
2022-02-11 02:06:56 +00:00
Andrew Osmond
5e0eefe182 Bug 1754556 - Update WebGPU external image resource only after present is complete. r=kvark
This patch ensures that we only update the external image resource for
WebGPU when there has been an actual change for the resource. In order
to guarantee this, we wait for the present to complete, and only then
issue the update. WebRenderBridgeChild::SendResourceUpdates will also
trigger a frame generation if any resources were changed, which means we
don't need to trigger a paint on the frame itself anymore.

Note that we still have a race condition when we write into the
MemoryTextureHost while in PresentCallback, and the renderer thread may
be accessing the pixel data to upload to the GPU.

Differential Revision: https://phabricator.services.mozilla.com/D138349
2022-02-11 01:26:42 +00:00
Markus Stange
99a2412c5e Bug 1451902 - Enable framepointers for all macOS builds on all channels. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D138051
2022-02-11 00:38:45 +00:00
Matthew Gregan
13a95078c3 Bug 1754861 - Update AudioIPC macOS branch to 8b5c7db0. r=cubeb-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D138478
2022-02-10 23:07:39 +00:00
Abhishek Aggarwal
7e23d5abd5 Bug 1754207 - Updating the vendor intgemm library r=yury
Differential Revision: https://phabricator.services.mozilla.com/D138462
2022-02-10 23:02:03 +00:00
ahochheiden
c5a6f22e14 Bug 1751781 - Intentionally #undef NAN and redefine it with the value from the STL r=glandium
With the latest Windows 10 SDK (10.0.20348.0), the value of NAN has changed
to differ from the STL. We intentionally #undef the value gotten from the SDK
and replace it with the STL value so that the comparison tests pass regardless
of the Windows SDK version.

Differential Revision: https://phabricator.services.mozilla.com/D137598
2022-02-10 22:47:15 +00:00
Byron Campen
ed0747f425 Bug 1753938: Return a resolved promise instead of a nullptr here. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D138047
2022-02-10 22:34:25 +00:00
Byron Campen [:bwc]
2de4cb5a57 Bug 1753938: Test case for bug. r=jib
Note that we do not pass this test even with the patch, but at least we don't crash.

Differential Revision: https://phabricator.services.mozilla.com/D138148
2022-02-10 22:34:25 +00:00
smolnar
e62f3ab431 Backed out changeset ea9c0779e27f (bug 1754861) for causing mda failures. CLOSED TREE 2022-02-11 00:24:21 +02:00
Randell Jesup
04eee57501 Bug 1748759: ipc cleanup r=ipc-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D135184
2022-02-10 22:01:17 +00:00
Matthew Gregan
fe86399007 Bug 1754861 - Update AudioIPC macOS branch to d4ea0f2e. r=cubeb-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D138478
2022-02-10 21:46:19 +00:00
Nicholas Rishel
ee26d5ca8e Bug 1754409 - Add catch for invalid manual update url. r=bytesized,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D138473
2022-02-10 21:40:12 +00:00
smolnar
4b52196621 Merge mozilla-central to autoland. a=merge 2022-02-10 23:35:37 +02:00
smolnar
81c52abeec Merge autoland to mozilla-central. a=merge 2022-02-10 23:30:17 +02:00
Daisuke Akatsuka
52f770a48d Bug 1750583: Compress whitespaces in heading content. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D138242
2022-02-10 20:46:54 +00:00
Morgan Reschenberg
56b2c85bf3 Bug 1750583: Create MOXRootGroup for all body elements without a document role r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D138174
2022-02-10 20:46:54 +00:00
Cosmin Sabou
873cae9829 Backed out changeset 2f3db059a9d0 (bug 1748548) for xpcshell failures on test_ext_browserSettings.js. CLOSED TREE 2022-02-10 22:36:35 +02:00
Joel Maher
917006a675 Bug 1754098 - run mochitest as -no-fission. r=releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D138375
2022-02-10 20:26:37 +00:00
Byron Campen
7719bd317d Bug 1754797: Use .data() instead of subscripting at 0. r=mjf,heftig
Differential Revision: https://phabricator.services.mozilla.com/D138455
2022-02-10 20:22:44 +00:00
Gabriele Svelto
74cab0b0fc Bug 1754578 - Make the pthread_create() interposer work on glibc 2.34+ r=jld
Differential Revision: https://phabricator.services.mozilla.com/D138355
2022-02-10 20:18:57 +00:00
Nick Alexander
15d6ff018b Bug 1753718 - Post: Docs for shutdown background tasks process lifetimes. r=application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D138086
2022-02-10 20:12:26 +00:00
Nick Alexander
5c80bab6eb Bug 1753718 - Add test(s) ensuring that a running background task does not prevent application updates. r=application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D138085
2022-02-10 20:12:26 +00:00