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

3757 Коммитов

Автор SHA1 Сообщение Дата
Narcis Beleuzu 2fb77a351a Backed out 2 changesets (bug 1652785) for bc failure on browser_test_procinfo.js
Backed out changeset 7e71f3cff603 (bug 1652785)
Backed out changeset efdd8cffde2b (bug 1652785)
2020-09-04 11:57:28 +03:00
David Teller e071745684 Bug 1652785 - Extract title, uri, window id for content processes;r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87972
2020-09-02 12:59:49 +00:00
Timothy Nikkel b5e6c5d19a Bug 1661108. Only send pan events from DManip if the delta is at least 1. r=kats
This seems to match what Chrome does. On macOS we only get sent deltas from the OS that are at least 1.

Differential Revision: https://phabricator.services.mozilla.com/D88542
2020-09-04 03:27:09 +00:00
Butkovits Atila 6d98ba37a5 Backed out changeset a95c23aa4e10 (bug 1661108) for build bustage at DirectManipulationOwner. CLOSED TREE 2020-09-03 20:55:07 +03:00
Timothy Nikkel 04e99e931f Bug 1661108. Only send pan events from DManip if the delta is at least 1. r=kats
This seems to match what Chrome does. On macOS we only get sent deltas from the OS that are at least 1.

Differential Revision: https://phabricator.services.mozilla.com/D88542
2020-09-03 13:10:38 +00:00
Simon Giesecke 5cacc3e1dc Bug 1661502 - Make Result move-only. r=froydnj,jandem
Differential Revision: https://phabricator.services.mozilla.com/D88443
2020-09-02 17:56:23 +00:00
Nicklas Boman 72bf374f5c Bug 1659828 - Get rid of `virtualMemorySize` in ProcInfo r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D89013
2020-09-02 12:56:46 +00:00
Edgar Chen 36ccda1d13 Bug 1653949 - Part 1: Change mExitFrom in WidgetMouseEvent to be Maybe<ExitFrom>; r=smaug
mExitFrom now contains a value only when mMessage is eMouseExitFromWidget

Differential Revision: https://phabricator.services.mozilla.com/D88225
2020-08-27 17:19:03 +00:00
Toshihito Kikuchi 3b8a3fad8f Bug 1657208 - Dynamic-load urlmon.dll for x86 system. r=freddyb,mhowell
Our data indicates a few users of x86 system hit failure to load urlmon.dll
for unknown reasons.  Since we don't always require urlmon.dll,
we delay-load it, which causes a crash if loading urlmon.dll fails.

A proposed fix is to dynamically load urlmon.dll on x86.

Differential Revision: https://phabricator.services.mozilla.com/D88534
2020-08-28 21:27:22 +00:00
Bob Owen c17154d7f3 Bug 1661731: Fix use of nsAutoPrinter in nsPrinterWin::DefaultSettings. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D88621
2020-08-28 18:44:12 +00:00
Jonathan Kew 307030428e Bug 1659856 - followup - Also handle duplex field in nsPrintSettingsWin::InitWithInitializer. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D88585
2020-08-28 13:30:14 +00:00
Cosmin Sabou 403893bc7e Backed out 5 changesets (bug 1653949) for assertion failures on EventStateManager.cpp. CLOSED TREE
Backed out changeset ad7c35ab2a40 (bug 1653949)
Backed out changeset 31cb90ef998a (bug 1653949)
Backed out changeset 03e65cbd2a11 (bug 1653949)
Backed out changeset a87ac2a7db70 (bug 1653949)
Backed out changeset 390dd2c04cd4 (bug 1653949)
2020-08-27 20:13:20 +03:00
Edgar Chen 363e80d673 Bug 1653949 - Part 1: Change mExitFrom in WidgetMouseEvent to be Maybe<ExitFrom>; r=smaug
mExitFrom now contains a value only when mMessage is eMouseExitFromWidget

Differential Revision: https://phabricator.services.mozilla.com/D88225
2020-08-26 14:19:46 +00:00
Toshihito Kikuchi 739b831899 Bug 1630444: Part1 - Put LauncherError behind MOZ_USE_LAUNCHER_ERROR. r=aklotz
This patch defines a new macro `MOZ_USE_LAUNCHER_ERROR` and keeps
the use of `LauncherError` behind `MOZ_USE_LAUNCHER_ERROR` instead of
`MOZILLA_INTERNAL_API` so that we can selectively use `LauncherError`
in locations where `MOZILLA_INTERNAL_API` is defined.

Differential Revision: https://phabricator.services.mozilla.com/D83638
2020-08-26 19:01:44 +00:00
Jonathan Kew 37cafa1ff1 Bug 1659856 - patch 2 - Handle duplex setting in nsPrintSettingsWin. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87959
2020-08-25 20:31:53 +00:00
Razvan Maries 7c244c8454 Backed out 3 changesets (bug 1659856) for perma multiple perma failures. CLOSED TREE
Backed out changeset b61a789151df (bug 1659856)
Backed out changeset e0b318464ca0 (bug 1659856)
Backed out changeset f0090d86ffb5 (bug 1659856)
2020-08-25 22:37:40 +03:00
Jonathan Kew 12fd6aba39 Bug 1659856 - patch 2 - Handle duplex setting in nsPrintSettingsWin. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87959
2020-08-25 17:29:06 +00:00
Emilio Cobos Álvarez a465787688 Bug 1660986 - Revert patch since it landed twice.
MANUAL PUSH: Harmless patch that landed twice.
2020-08-25 17:07:05 +02:00
Bob Owen 302eb33363 Bug 1660993: Reset dmScale in nsPrintSettingsWin::InitWithInitializer. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D88152
2020-08-25 14:51:11 +00:00
Emilio Cobos Álvarez 414e22d1c4 Bug 1660986 - Handle print in color setting on Windows. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D88128
2020-08-25 12:29:17 +00:00
Emilio Cobos Álvarez cb8b44285b Bug 1660986 - Handle print in color setting on Windows. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D88128
2020-08-25 12:29:17 +00:00
Jonathan Watt 0882201445 Bug 1660918. Fix nsIPrintSettings.clone() to copy all members. r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D88094
2020-08-24 23:56:55 +00:00
Tom Schuster 14657c9047 Bug 1526820 - Handle WM_INITDIALOG in the ColorPicker hook to enable keyboard focus r=cmartin
WM_INITDIALOG is a special case for this hook. Returning TRUE tells it to set they keyboard focus.
In all other cases returning 0 from the hook invokes the standard behavior.

Differential Revision: https://phabricator.services.mozilla.com/D87870
2020-08-24 16:58:11 +00:00
David Teller 6d1e142463 Bug 1652813 - Extract resident unique size in GetProcInfo;r=froydnj
Somewhere along the way, we fix the tests that are too fragile with respect to race conditions between processes to make them pass chaos mode testing.

Depends on D83623

Differential Revision: https://phabricator.services.mozilla.com/D83971
2020-08-20 13:32:11 +00:00
Bob Owen 72fd7de5a6 Bug 1658299 Part 2: Add createDefaultSettings() to nsIPrinter for Windows. r=jwatt,jfkthame
This retrieves the same settings from the printer as
InitPrintSettingsFromPrinter.
There is probably a lot of scope for de-duplication of code here, but I decided
to try and protect the old fallback paths.

Depends on D87125

Differential Revision: https://phabricator.services.mozilla.com/D87604
2020-08-20 23:25:10 +00:00
Jonathan Kew 9f640d3ca0 Bug 1658300 - Implement NamedPrinter() for nsPrinterListWin, and remove the base implementation. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D87450
2020-08-20 11:21:34 +00:00
Emily McDonough 6e197b450a Bug 1658300 - Implement a promise-based nsIPrinterList::getNamedOrDefaultPrinter. r=jwatt,emilio
This only works for CUPS, and will do nothing on Windows yet.

Co-Authored-By: Jonathan Kew <jkew@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D86851
2020-08-20 11:59:46 +00:00
Erik Nordin b81a2922ac Bug 1658299 - Part 1: Add createDefaultSettings() to nsIPrinter for CUPS r=jwatt,emilio,geckoview-reviewers,owlish
This patch adds a createDefaultSettings() method to nsIPrinter to
initialize a default print settings object specific to that printer.
It implements the functionality for Linux and macOS but adds only stubs
for Windows.

Differential Revision: https://phabricator.services.mozilla.com/D87125
2020-08-20 06:11:08 +00:00
Bogdan Tara 48d00fff60 Backed out changeset ebf8dfa204ea (bug 1658299) for test_printer_default_settings.html failures CLOSED TREE 2020-08-20 05:36:37 +03:00
Erik Nordin 851b8f7c70 Bug 1658299 - Part 1: Add createDefaultSettings() to nsIPrinter for CUPS r=jwatt,emilio,geckoview-reviewers,owlish
This patch adds a createDefaultSettings() method to nsIPrinter to
initialize a default print settings object specific to that printer.
It implements the functionality for Linux and macOS but adds only stubs
for Windows.

Differential Revision: https://phabricator.services.mozilla.com/D87125
2020-08-20 00:23:59 +00:00
Chun-Min Chang f0910370b4 Bug 1635209 - Implement SetSupportedMediaKeys on Windows r=alwu
Enable the media keys on the SMTC UI panel only when their key-press
handlers are set

Differential Revision: https://phabricator.services.mozilla.com/D86226
2020-08-18 18:28:19 +00:00
Razvan Maries 6742cf83d7 Backed out 2 changesets (bug 1656526) for build bustages on EarlyBlankWindow.cpp. CLOSED TREE
Backed out changeset b6d3b254ae8c (bug 1656526)
Backed out changeset abdc9c22078c (bug 1656526)
2020-08-18 19:10:37 +03:00
Doug Thayer b5e46bb95c Bug 1656526 - Show blank window prior to loading xul on Windows r=mhowell
See bug for justification. This patch aims to display a blank window prior to
loading/prefetching xul.dll. It also has a placeholder for drawing a
skeleton UI into that window. Note that this is disabled by default based on
a registry value, as there are still kinks to work out (for instance, what
happens if we aren't actually going to display a window, because, say, Firefox
is already running.) This just gives a basic implementation to dogfood, and
facilitates distributing work across multiple contributors.

Onto the details. The patch achieves its goal by creating a window and
assigning its handle to a static variable, which will be consumed inside
nsWindow::Create by the first toplevel window we want to make. nsWindow::Create
will take ownership of the window handle, restyle it to its own liking, and
then proceed as if everything is normal and it had created the window itself.

Differential Revision: https://phabricator.services.mozilla.com/D86263
2020-08-18 15:31:28 +00:00
Emily McDonough 2ec1d3923d Bug 1658073 - Add SupportsCollation to nsIPrinter r=jwatt,emilio
Differential Revision: https://phabricator.services.mozilla.com/D86643
2020-08-14 20:41:59 +00:00
Timothy Nikkel ee518dca41 Bug 1658225. Ensure that WidgetWheelEvents produced from PinchGestureInputs always have a non-zero deltaY. r=kats
See bug 1648489 for why we need this.

If we don't send a pinch we don't want to update the last scale so that when we do send an event it incorporates the full scale change from the last time we sent an event.

Even if aScale != mLastScale in SendPinch the computed deltaY ( = 100 * (aScale-mLastScale) * widgetscale) can be 0 seemingly because of floating point weirdness I guess.

Depends on D86495

Differential Revision: https://phabricator.services.mozilla.com/D86496
2020-08-10 13:21:45 +00:00
alwu 6154026e68 Bug 1657043 - part3 : implement a new wakelock listener with new API. r=jmathies
`PowerSetRequest` is a new API to request wakelock for Windows 7 and above versions. This new listener would use new API to request wakelock to solve the issue where old API doesn't work on certain users computer.

[1] https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-powersetrequest

Differential Revision: https://phabricator.services.mozilla.com/D85820
2020-08-12 20:57:17 +00:00
alwu e16fc13474 Bug 1657043 - part2 : rename listener to legacy listener. r=jmathies
This listener uses `SetThreadExecutionState`[1] to request wakelock, which is an old API. I would create a new listener to use new API in D85820 so rename this one as a legacy listener.

[1] https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setthreadexecutionstate

Differential Revision: https://phabricator.services.mozilla.com/D85819
2020-08-12 20:55:53 +00:00
alwu 80d3ed2b13 Bug 1657043 - part1 : only use wakelock listener in chrome process. r=jmathies
Whole firefox only needs one wakelock instance, requesting more wakelock doesn't help anything. As those notification would be sent to chrome process as well, so we would only need one listener in chrome process to prevent requesting unnecessary wakelock.

Differential Revision: https://phabricator.services.mozilla.com/D85818
2020-08-12 20:55:18 +00:00
Timothy Nikkel 9bd1260501 Bug 1658001. Populate wheelEvent.mLineOrPageDeltaY in PinchGestureInput::ToWidgetWheel for pinch gestures produced from direct manipulation. r=kats
We do this analogously to how PanGestureInput does it except that the delta's that we compute mLineOrPageDeltaY from are computed by us instead of provided to us.

mLineOrPageDeltaY being non-zero is what EventStateManager::DispatchLegacyMouseScrollEvents uses to decide to send legacy mouse events, so we need to populate it to get those legacy events to send.

This fix is Windows only on purpose as pinches on macOS don't seem to send wheel events (Windows sends ctrl+wheel). When Linux gets implemented it will need to be determined what to do.

Differential Revision: https://phabricator.services.mozilla.com/D86495
2020-08-11 09:08:06 +00:00
Timothy Nikkel 639e886daa Bug 1658647. Put the current keyboard modifiers on direct manipulation input events. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D86779
2020-08-11 23:30:57 +00:00
Kartikaya Gupta 0340074102 Bug 1653576 - Don't let dmanip events roll up popups if the events are inside the popup. r=tnikkel
The existing rollup-handling code in SendAnAPZEvent was mostly copied from
the DealWithPopups function, so this patch removes that duplication and reuses
the existing codepath. And it adds some extra checking for dmanip events that
mirrors the checking we do for other events, so that events that are targeted
inside the popup don't cause the popup to get rolled up.

Differential Revision: https://phabricator.services.mozilla.com/D86603
2020-08-11 21:44:30 +00:00
Kartikaya Gupta dd097ff37d Bug 1653576 - Generify EventIsInsideWindow to allow passing a point. r=tnikkel
This allows us to reuse this function and the GetPopupsToRollup function when
an event point is different than what comes out of GetMessagePos.

For instance, the WM_POINTERDOWN code can now reuse this functions properly.
This fixes a latent bug where it was calling GetPopupsToRollup which was using
an possibly-incorrect point internally.

Differential Revision: https://phabricator.services.mozilla.com/D86754
2020-08-11 22:15:51 +00:00
David Teller 54dbe87afb Bug 1647695 - Make Windows GetProcInfo a bit more resilient;r=tarek
GetProcInfo is designed to collect process & thread data while they're running,
which means that it needs to handle the case in which a thread shuts down while
we're looking at it.

By design, in case of failure, GetProcInfo return partial data in case of failure.
This patch ensures that we always either set the thread ID (which we use to display about:processes) correctly or remove
the thread entirely from the list.

Differential Revision: https://phabricator.services.mozilla.com/D86055
2020-08-10 10:15:44 +00:00
Emilio Cobos Álvarez 7b1b1b7d54 Bug 1658220 - Workaround old gcc which bogusly warns about hiding overloaded functions with different arguments by renaming a function.
MANUAL PUSH: Fix base toolchain build on a CLOSED TREE.
2020-08-10 01:34:04 +02:00
Emilio Cobos Álvarez 2b6c7db4e8 Bug 1657363 - Make nsIPrinterList.printers return a promise. r=jwatt
I intentionally removed the "move the default printer to the front" in
windows because that's not a guarantee that we provide in CUPS, but lmk
if you want it back.

I have zero idea about why the GlobalPrinters code was so ridiculously
complex.

Depends on D86396

Differential Revision: https://phabricator.services.mozilla.com/D86397
2020-08-09 22:05:57 +00:00
Jonathan Kew d049947f17 Bug 1656733 - Reimplement EnumerateNativePrinters (and GetDefaultPrinterName) in widget/windows code to use proper Win32 APIs. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D86019
2020-08-07 14:33:41 +00:00
Emilio Cobos Álvarez 05e2ab2186 Bug 1657874 - Unify printer list implementations between Mac and GTK, and add nsPrinterListBase. r=jwatt
nsPrinterListBase is where the CC setup and promises and such will be, I
think.

Differential Revision: https://phabricator.services.mozilla.com/D86336
2020-08-07 12:04:26 +00:00
Mike Hommey 5a5a1edd0e Bug 1656141 - Remove RESFILE. r=firefox-build-system-reviewers,rstewart
The resource file is always generated so being able to configure its name
is not useful. On the other hand, the way things are currently implemented,
the lack of RESFILE also makes RCFILE ignored, which we fix at the same
time.

And remove a spurious RESFILE in widget/windows/moz.build, where no binary
is produced, which means RESFILE had no meaning.

Differential Revision: https://phabricator.services.mozilla.com/D86154
2020-08-06 22:51:59 +00:00
Mihai Alexandru Michis c4e805857f Backed out 9 changesets (bug 1656141) for causing multiple failures.
CLOSED TREE

Backed out changeset 9033b0400339 (bug 1656141)
Backed out changeset e43dd57dc61a (bug 1656141)
Backed out changeset eb450457a9b7 (bug 1656141)
Backed out changeset 194a994cf9c9 (bug 1656141)
Backed out changeset ce6831acb5e3 (bug 1656141)
Backed out changeset 29653ea85d49 (bug 1656141)
Backed out changeset 704f28486bda (bug 1656141)
Backed out changeset de8899453150 (bug 1656141)
Backed out changeset 4b133eda46aa (bug 1656141)
2020-08-07 01:48:45 +03:00
Mike Hommey afe0ac845a Bug 1656141 - Remove RESFILE. r=firefox-build-system-reviewers,rstewart
The resource file is always generated so being able to configure its name
is not useful. On the other hand, the way things are currently implemented,
the lack of RESFILE also makes RCFILE ignored, which we fix at the same
time.

And remove a spurious RESFILE in widget/windows/moz.build, where no binary
is produced, which means RESFILE had no meaning.

Differential Revision: https://phabricator.services.mozilla.com/D86154
2020-08-06 15:59:02 +00:00