Commit Graph

820682 Commits

Author SHA1 Message Date
stransky
d02fafe749 Bug 1800972 [Linux] Implement drag of multiple items r=emilio
- Remove nsDragService::CreateURIList() and replace it by nsDragService::SourceDataGetUriList().
  It reads all items from nsITransferable and put them to uri list.
  If data drop is performed to another application which doesn't have access to internal data storages (mailbox:// for instance),
  request download and save referenced items to /tmp directory.

- Implement SourceDataAppendURLItem() which read one item from nsITransferable and append it to uri list.
  Download and store internal files in /tmp directory.

- Make CreateTempFile() to block native events processing. nsIOutputStream/nsIInputStream read and write operations run
  event loop and can abort D&D operation before we write all data to /tmp. Use nsAppShell to block native event processing
  during read/write to prevent it.

Differential Revision: https://phabricator.services.mozilla.com/D162473
2022-11-22 08:14:27 +00:00
stransky
ecd42fb817 Bug 1800972 [Linux] Don't query fallback mime type for image/XDND mime types r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162469
2022-11-22 08:14:27 +00:00
stransky
fd206af3cd Bug 1800972 [Linux] Factor out text mime types to extra function r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162468
2022-11-22 08:14:27 +00:00
stransky
de4c14cf3f Bug 1800972 [Linux] Factor out image drop r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162467
2022-11-22 08:14:26 +00:00
stransky
5b605e4811 Bug 1800972 [Linux] Factor out XDND to extra function r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162466
2022-11-22 08:14:26 +00:00
stransky
6bcfbacc6d Bug 1800972 [Linux] Use XdndDirectSave on X.org only as it's no supported on XWayland r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162465
2022-11-22 08:14:25 +00:00
stransky
bebf9e9a8f Bug 1800972 [Linux] Update logging and clean up of nsDragService r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162463
2022-11-22 08:14:25 +00:00
Marco Castelluccio
2cb1a1b750 Bug 1758419 - Remove comment in xpidl.py mentioning Python 2 support as Searchfox is now using Python 3. r=mccr8 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D162675
2022-11-22 08:10:46 +00:00
Kaiido
a454232b54 Bug 1799058 - Reset context on SetWidth and SetHeight. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D161925
2022-11-22 07:53:29 +00:00
André Bargull
06528cdbaa Bug 1799288: Cover destructuring parameters in the parameters try-catch block for async functions. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D161600
2022-11-22 07:05:25 +00:00
Mozilla Releng Treescript
bdc412e198 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
oc -> 608b566c3e1da6336a4e5915c247b648ef161b58
sc -> a387aeadfa4fce84450c59014f2eaa11a1d40119
th -> 31c79342548ca48a8fc406af1b342d88d3f2fb42
2022-11-22 07:02:12 +00:00
Hiroyuki Ikezoe
3a5650ace5 Bug 1794070 - Make a pan start event wait for the browser gesture code response. r=botond,dlrobertson
So that APZ can wait to handle the event to do overscrolling until the browser
responds that the event wasn't used for gestures.

Differential Revision: https://phabricator.services.mozilla.com/D160438
2022-11-22 06:52:53 +00:00
Hiroyuki Ikezoe
d33990bcde Bug 1794070 - Ignore overscrollable check in CanScrollTargetHorizontally. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D162362
2022-11-22 06:52:52 +00:00
Hiroyuki Ikezoe
d32e0125e8 Bug 1794070 - Introduce PanGestureInput::AllowsSwipe(). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D160437
2022-11-22 06:52:52 +00:00
Hiroyuki Ikezoe
f7ce055162 Bug 1794070 - Refer mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection flag instead of calling SwipeTrackker::CanTriggerSwipe(). r=botond
And rename mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection to
mMayTriggerSwipe.

So basically once after the flag is set, we should use it.

Differential Revision: https://phabricator.services.mozilla.com/D160436
2022-11-22 06:52:52 +00:00
Hiroyuki Ikezoe
ebfe7e293e Bug 1794070 - Make mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection private. r=botond
And initialized it only in ctors so that in the next change we can use it to
tell whether this pan event may trigger swipe or not without calling
SwipeTracker::CanTriggerSwipe every time.

There's an unintuitive change in a GTest sending a horizontal pan-start event.
With this changeset, all incomming pan-start events on desktop platforms
basically set mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection
to true even if the event is generated in GTests. So the pan start event runs
into the short circuit path for swipe-to-navigation. This is a good thing because
it means the GTest replicates what our browser does properly.

Differential Revision: https://phabricator.services.mozilla.com/D160435
2022-11-22 06:52:51 +00:00
Hiroyuki Ikezoe
4c8d1c6a7f Bug 1794070 - Check mOverscrollBehaviorAllowsSwipe whether we do the short circuit for swipe. r=botond
Though this isn't a real bug at all since later we check the flag in
nsBaseWidget::MayStartSwipeForAPZ [1], this change includes a browser
mochitest to make sure `overscroll-behavior: contain` prevents swipe
navigations.


[1] https://searchfox.org/mozilla-central/rev/c5c002f81f08a73e04868e0c2bf0eb113f200b03/widget/nsBaseWidget.cpp#2294

Differential Revision: https://phabricator.services.mozilla.com/D160434
2022-11-22 06:52:51 +00:00
Hiroyuki Ikezoe
9f0a9b18a2 Bug 1794070 - Run the test case listening "wheel" event at the last in browser_test_swipe_gesture.js. r=botond
There's a bug (bug 1800022) that wheel event listeners in the browser process
badly interact with overscroll even so we'd avoid the bug here.

Differential Revision: https://phabricator.services.mozilla.com/D161752
2022-11-22 06:52:50 +00:00
Hiroyuki Ikezoe
e6a13e599b Bug 1794070 - Use await SpecialPowers.popPrefEnv() explicitly at the end of each test. r=tnikkel
Otherwise prefs set in the previous test case will persist. In fact
some of test cases were lacking "browser.swipe.navigation-icon-move-distance".

Differential Revision: https://phabricator.services.mozilla.com/D161751
2022-11-22 06:52:50 +00:00
Hiroyuki Ikezoe
62bd053169 Bug 1794070 - Fix preference name typos in browser_test_swipe_gesture.js. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D161750
2022-11-22 06:52:50 +00:00
Hiroyuki Ikezoe
329099d5b3 Bug 1794070 - Add "overscrolled" state in APZTestData.additionalData. r=botond
We'd like to use this for testing overscroll state in mochitests.

Differential Revision: https://phabricator.services.mozilla.com/D160433
2022-11-22 06:52:49 +00:00
Hiroyuki Ikezoe
78c3424efe Bug 1794070 - Do the stuff for short circuit of swipe-to-navigation after calling MaybeRequestContentResponse. r=botond
The stuff calls PanGestureBlockState::SetNeedsToWaitForContentResponse which sets
mWaitingForContentResponse flag, but the flag will clobbered in
MaybeRequestContentResponse().

Differential Revision: https://phabricator.services.mozilla.com/D160432
2022-11-22 06:52:49 +00:00
Hiroyuki Ikezoe
e46cc3cbef Bug 1794070 - Remove APZEventStat::ProcessClusterHit declaration. r=botond
The implementation got removed in bug 1618545.
https://hg.mozilla.org/mozilla-central/rev/3de8fd99080d63f47da911afe39f489de5864e9e

Differential Revision: https://phabricator.services.mozilla.com/D160431
2022-11-22 06:52:48 +00:00
Hiroyuki Ikezoe
9a4979471f Bug 1794070 - Drop "OS X" or macOS in comments about swipe-to-navigation. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D160430
2022-11-22 06:52:48 +00:00
Arthur Carcano
0030786063 Bug 1796543 - Add a subcommand cargo udeps to ./mach. r=glandium,firefox-build-system-reviewers
This adds a subcommand ./mach cargo udeps with the following
sub command arguments:

Sub Command Arguments:
  --all-crates          Check all of the crates in the tree.
  crates                The crate name(s) to check.
  --jobs [jobs], -j [jobs]
                        Run the tests in parallel using multiple
processes.
  -v, --verbose         Verbose output.
  --message-format-json
                        Emit error messages as JSON.
  --expect-unused       Do not return an error exit code if udeps
detects unused dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D159838
2022-11-22 06:22:17 +00:00
Drew Willcoxon
72261a2637 Bug 1801244 - Make Merino opt out on Beta. r=daisuke,nanj,RyanVM,chutten
This makes Merino opt out on Beta. There are two different parts:

1. Decide what "Beta" means. After discussing this with RyanVM, I'm using the
   same definition [used by telemetry](https://searchfox.org/mozilla-central/rev/2f47e3dacf0d773e9c7f363cecf10cfbea490679/toolkit/components/telemetry/app/TelemetryControllerBase.jsm#103,112-114): (a) if `MOZ_UPDATE_CHANNEL` is "beta"
   or (b) if it's "release" and `app.update.channel` is "beta". The latter case
   is true for RC builds delivered to the Beta channel. I moved the relevant
   telemetry logic to `AppConstants` so I can easily use it too. Bug 1435753 has
   context on this logic w/r/t telemetry.
2. Change the Merino default so it's enabled on Beta in the offline scenario. I
   kept the online scenario's disabled default since the only point of
   delivering the online scenario to the user now is to prompt them to opt in to
   Merino. This change is in UrlbarPrefs.sys.mjs.

The rest of the patch updates tests.

The effect of this patch will be to use a new default value of true for the
`quicksuggest.dataCollection.enabled` pref on Beta in the offline scenario. If
the user didn't touch the pref at all, then its previous default value was
false, and the new default will now be true.

If the user enabled the pref, it will remain enabled. If the user enabled and
then disabled it, it will remain disabled. That's because the pref is sticky, so
once it has a value on the user branch, it will keep that value. This patch only
changes the value of the pref on the default branch, so it won't override the
user's previous choice since that is set on the user branch.

Differential Revision: https://phabricator.services.mozilla.com/D162353
2022-11-22 06:19:24 +00:00
Csoregi Natalia
69b86f1ded Backed out changeset 440b5894d289 (bug 1799423) as per request. CLOSED TREE 2022-11-22 08:24:23 +02:00
Shravan Narayan
c375efadca Bug 1751818 - Remove use tainted_opaque from callbacks of libGraphite r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D162363
2022-11-22 06:06:36 +00:00
serge-sans-paille
f8aeb3cbd7 Bug 1799423 - link clang with lld r=firefox-build-system-reviewers,glandium
As a side effect, this obsoletes the "link" config as clang always uses
the lld linker alongside its own install.

Differential Revision: https://phabricator.services.mozilla.com/D161436
2022-11-22 05:54:51 +00:00
sotaro
71a7be2831 Bug 1801767 - Remove fs::remove_dir_all usage in remove_disk_cache() r=gfx-reviewers,bradwerth
From Bug 1799442, fs::remove_dir_all is not stable on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D162682
2022-11-22 05:35:25 +00:00
Lee Salzman
f5ed77ef10 Bug 1801446 - Limit the maximum complexity of paths used with wpf-gpu-raster. r=jrmuizel
Some paths may contain so many types that their vertex representation far exceeds their
software rasterized representation in memory size. As a sanity-check, we should just set
a hard limit on the maximum allowed complexity of a path that we attempt to supply to
wpf-gpu-raster. Beyond that, we will instead just rasterize in software and upload
to a texture which can be more performant.

Differential Revision: https://phabricator.services.mozilla.com/D162481
2022-11-22 05:25:59 +00:00
James Teh
fc48558dff Bug 1778433 part 3: Remove defunct *AccessibleWrap types. r=nlapre
Now that they're no longer referenced, we can get rid of them.

Differential Revision: https://phabricator.services.mozilla.com/D162457
2022-11-22 04:55:11 +00:00
James Teh
1fc8f98cd1 Bug 1778433 part 2: Change references to defunct *AccessibleWrap types to use the corresponding *Accessible classes. r=nlapre
These are effectively type aliases on all platforms now and are no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D162456
2022-11-22 04:55:11 +00:00
James Teh
c40b2a87c0 Bug 1778433 part 1: Move Windows specific functionality from XULMenuItemAccessibleWrap to MsaaXULMenuitemAccessible. r=nlapre
This never really belonged in XULMenuItemAccessibleWrap::Name, as it's specific to MSAA.
This will allow us to remove this Wrap class.

Differential Revision: https://phabricator.services.mozilla.com/D162455
2022-11-22 04:55:11 +00:00
Mike Hommey
98437139e6 Bug 1801743 - Stop bootstrapping uuid. r=firefox-build-system-reviewers,nalexander
It was not installed consistently across platforms, and I think the only
reason we installed it had been superseded by the `mach uuid` command
(which didn't rely on it), and the `mach uuid` command was removed in
bug 1639509.

Differential Revision: https://phabricator.services.mozilla.com/D162636
2022-11-22 04:36:35 +00:00
Mike Hommey
2094c5ed88 Bug 1801742 - Stop bootstrapping zip. r=firefox-build-system-reviewers,nalexander
It has not been required since bug 1717683

Differential Revision: https://phabricator.services.mozilla.com/D162635
2022-11-22 04:36:17 +00:00
James Teh
fadbd93a95 Bug 1766147: Remove now unused eProxyType, Accessible::IsProxy and LocalAccessible::mBits. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D162448
2022-11-22 04:17:41 +00:00
Niklas Baumgardner
2c1ec36cab Bug 1779119 - Add video scrubber to PiP window. r=pip-reviewers,kpatenio,cmkm
Differential Revision: https://phabricator.services.mozilla.com/D160940
2022-11-22 03:52:32 +00:00
Greg Stoll
52dce57a86 Bug 1793834 - part 9: add copy to clipboard button and styling and localize text r=Gijs,bigiri,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D161157
2022-11-22 03:44:54 +00:00
Greg Stoll
26b89142d8 Bug 1793834 - part 8: add preference for number of messages to keep r=handyman
One thing to note is that if the user shrinks this number we won't reclaim any memory - this is because I wanted to avoid doing any more work than necessary when we're logging messages. Let me know if you think this is a problem!

Differential Revision: https://phabricator.services.mozilla.com/D161156
2022-11-22 03:44:54 +00:00
Greg Stoll
454d73d35f Bug 1793834 - part 7: delete entries when a window closes r=handyman
At :handyman's suggestion, just removing the messages when we get a WM_DESTROY message works great and is way less complicated than the previous version of this :-)

Differential Revision: https://phabricator.services.mozilla.com/D161155
2022-11-22 03:44:54 +00:00
Greg Stoll
2e6fb83a5b Bug 1793834 - part 6: show window messages in about page r=bigiri
Differential Revision: https://phabricator.services.mozilla.com/D161737
2022-11-22 03:44:53 +00:00
Greg Stoll
f879fb0dbe Bug 1793834 - part 5: return window messages for about page from C++ code r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D161152
2022-11-22 03:44:53 +00:00
Greg Stoll
c0063c0b1a Bug 1793834 - part 4/12: log window messages and expose entry point for retrieving them r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D161151
2022-11-22 03:44:52 +00:00
Greg Stoll
0455759851 Bug 1793834 - part 3/12: always record a few special messages for about page r=handyman
This is the list of messages that handyman and rkraesig suggested.

Since we're recording WM_GETMINMAXINFO, we now have better logging for that message.

Differential Revision: https://phabricator.services.mozilla.com/D161150
2022-11-22 03:44:52 +00:00
Greg Stoll
9aa69a4b5c Bug 1793834 - part 2/12: also log HWND in message logs r=handyman
This is helpful for the normal event log, and also necessary since we want to group the messages up by window in the about page.

Differential Revision: https://phabricator.services.mozilla.com/D161149
2022-11-22 03:44:51 +00:00
Greg Stoll
5265544a3f Bug 1793834 - part 1/12: adding a mostly-empty about:windows-messages page r=Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D161148
2022-11-22 03:44:51 +00:00
Cristian Tuns
4bf00e9d1e Backed out changeset 1dddc130f67e (bug 1779119) for causing Documentation failures CLOSED TREE 2022-11-21 22:16:19 -05:00
Noemi Erli
76383f548e Backed out 2 changesets (bug 1801726) as requested by glandium CLOSED TREE
Backed out changeset 5af80708af6a (bug 1801726)
Backed out changeset c74ad6c6196a (bug 1801726)
2022-11-22 04:55:41 +02:00
James Teh
da36b6436a Bug 1800755: Don't send selection changes for defunct Accessibles. r=morgan
When a selection event is dropped due to coalescence, we still include the impacted Accessible in the SelectedAccessiblesChanged notification we send to the parent process.
Although we skip events with defunct targets, we weren't skipping defunct items referenced by selection events.
This meant that if an Accessible was selected/unselected but was shut down before we sent SelectedAccessiblesChanged, the notification would include a dead Accessible.
This was causing an assertion in the parent process.
To fix this, we now ignore defunct items in selection events.

Differential Revision: https://phabricator.services.mozilla.com/D162551
2022-11-22 02:24:28 +00:00