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

4290 Коммитов

Автор SHA1 Сообщение Дата
Richard Marti c922b5bf64 Bug 1744435 - Give the HTML buttons a padding-inline on Windows. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D132867
2021-12-06 12:00:01 +00:00
sotaro f7a279d285 Bug 1743557 - Make task dispatching of SerializedTaskDispatcher more explicit r=gfx-reviewers,bradwerth
Use data->mCurrentRunnable to check if SerializedTaskDispatcher has a dispatching tasks.

Differential Revision: https://phabricator.services.mozilla.com/D132456
2021-12-02 04:03:14 +00:00
Emilio Cobos Álvarez c9d4405306 Bug 1743310 - Remove paint flashing. r=gfx-reviewers,lsalzman
It's only meaningfully read in two places:

 * WebRender fallback code.
 * Some widget DEBUG-only code, which on Linux is ifdef'd and on Windows does
   some rather sketchy things like sleeping for 30ms

So I think it should be ok to remove, since WR fallback has its own flashing
pref as well, IIUC.

Differential Revision: https://phabricator.services.mozilla.com/D132313
2021-11-30 11:46:08 +00:00
sotaro 2d813f179a Bug 1743075 - Update log of ProcessEventHookCallback() r=gfx-reviewers,aosmond
Add aEvent value to log.

Differential Revision: https://phabricator.services.mozilla.com/D132214
2021-11-29 00:12:20 +00:00
sotaro 46903a643e Bug 1743057 - Notify windows visibility change to WindowOcclusionTracker when window is activated r=gfx-reviewers,jrmuizel
When Firefox was activated by Alt+Tabbing, there was a case that event hook of WindowOcclusionCalculator could not detect an event of window activated. Then it is necessary to trigger window occlusion calculation from nsWindows.

Differential Revision: https://phabricator.services.mozilla.com/D132206
2021-11-27 02:24:22 +00:00
sotaro 5477d7dc1d Bug 1742440 - Add debug capability to check window visibility state by overlay r=gfx-reviewers,nical
It is helpful if window visibility state could be checked by debug overlay.
For now, it works only on Windows with compositor.

Differential Revision: https://phabricator.services.mozilla.com/D131807
2021-11-25 11:33:46 +00:00
Emilio Cobos Álvarez 8c9d1b38e8 Bug 1741900 - Ensure color-scheme is initialized in a couple callers which might not have initialized LookAndFeel yet. r=mhowell
The previous patch would be a better fix, but it causes some xpcshell
crashes on Linux which I haven't figured out yet (because initializing
LookAndFeel initializes gfxPlatform).

This should be less risky and still fix the bug.

Differential Revision: https://phabricator.services.mozilla.com/D132011
2021-11-24 16:50:38 +00:00
ssummar b9d6fce436 Bug 1530209 - Removed context argument from various methods. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D129797
2021-11-24 11:25:41 +00:00
Ben Hearsum c178143375 Bug 1721488: Windows taskbar jumplists are not created when running as an app package r=mhowell
This patch simply avoids calling SetAppID and SetCurrentProcessExplicitAppUserModelID when we're running from a packaged app. For `SetCurrentProcessExplicitAppUserModelID`, I ended up skipping the calls to the functions that call it because I thought it was less surprising behaviour given the names (eg: I might be surprised if `SetTaskbarGroupId` silently didn't set the taskbar group id). It's easy enough to switch up if skipping the calls at a lower level makes more sense.

I couldn't find any automated tests around the Jump List functionality (and we don't have any tests running within MSIX packages yet anyways...), but it worked just fine in my manual test. I also tested the scenario where the AppxManifest.xml ID changes during an upgrade (which will probably happen when https://bugzilla.mozilla.org/show_bug.cgi?id=1736113 gets done). This causes Jump Lists to stop working at first restart, but they appear to rebuilt after the usual few minute wait.

Differential Revision: https://phabricator.services.mozilla.com/D131693
2021-11-23 16:21:01 +00:00
Nick Alexander bf47ece634 Bug 1733284: Part 1: Expose Windows packaged app utilities to code outside of XUL. r=mhowell
This re-arranges some deckchairs, allowing to have the launcher
process query the Windows packaged app environment.

Depends on D129882

Differential Revision: https://phabricator.services.mozilla.com/D130187
2021-11-18 14:37:36 +00:00
sotaro 79ce913ffa Bug 1741799 - Remove SupportsThreadSafeWeakPtr from WinWindowOcclusionTracker r=nical,gfx-reviewers
SupportsThreadSafeWeakPtr is not necessary for current WinWindowOcclusionTracker.

Differential Revision: https://phabricator.services.mozilla.com/D131469
2021-11-18 14:19:59 +00:00
sotaro 4f3833aa2f Bug 1741111 - Remove LayersBackend::LAYERS_BASIC r=gfx-reviewers,bradwerth
LayersBackend::LAYERS_BASIC is not used any more.

Differential Revision: https://phabricator.services.mozilla.com/D131104
2021-11-17 22:05:47 +00:00
Emilio Cobos Álvarez d026785d01 Bug 1741495 - Follow-up: clang-format fixes.
MANUAL PUSH: trivial whitespace-only patch DONTBUILD
2021-11-17 02:18:50 +01:00
sotaro 103781c95e Bug 1741349 - Add logs to WindowOcclusionCalculator r=gfx-reviewers,jrmuizel
Logs for debugging help.

Differential Revision: https://phabricator.services.mozilla.com/D131209
2021-11-17 00:59:38 +00:00
Emilio Cobos Álvarez 446bae08de Bug 1741495 - Make ThemeDrawsFocusForWidget return the right thing when drawing non-native widgets on Linux and Windows. r=spohl
Noticed this while digging into bug 1741359.

Differential Revision: https://phabricator.services.mozilla.com/D131277
2021-11-17 00:55:26 +00:00
Jeff Muizelaar 9715040b35 Bug 1740612 - Switch WebRender on Intel from allowlist to blocklist. r=aosmond
This ends up enabling hw-wr on nightly on gen6 which was left disabled
for testing sw-wr, but should otherwise have no (or at least limited)
impact.

Differential Revision: https://phabricator.services.mozilla.com/D130926
2021-11-16 20:16:08 +00:00
Bob Owen 6233ec443f Bug 1669149 p7: Always use size from device context for print paper size on Windows. r=jwatt
This is always available and makes it more consistent for comparing print
settings.
Also change to round when converting back to DEVMODE for better accuracy.

Depends on D99810

Differential Revision: https://phabricator.services.mozilla.com/D99811
2021-11-16 08:17:05 +00:00
Bob Owen 8efc00817c Bug 1669149 p1: Introduce nsIPrintSettings::EquivalentTo and nsIPrinter::CopyFromWithValidation. r=jwatt
This is to allow settings saved in prefs to be validated against a printer and
for print preview to be updated if any changes affecting layout occur.

Differential Revision: https://phabricator.services.mozilla.com/D98458
2021-11-16 08:17:02 +00:00
sotaro 096f8e103f Bug 1741121 - LayersBackend::LAYERS_CLIENT r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D131106
2021-11-15 22:39:40 +00:00
Stephen A Pohl b739277c24 Bug 1719427: Refactor scrollbar drawing code across platforms. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D129265
2021-11-15 12:39:38 +00:00
criss 8ace361058 Backed out 4 changesets (bug 1719427) for causing build bustages. CLOSED TREE
Backed out changeset d6948ef7f495 (bug 1719427)
Backed out changeset 4df7017f6bc9 (bug 1719427)
Backed out changeset 8c5bb08f80e9 (bug 1719427)
Backed out changeset e32004dd2014 (bug 1719427)
2021-11-15 13:46:20 +02:00
Stephen A Pohl 0468798e53 Bug 1719427: Refactor scrollbar drawing code across platforms. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D129265
2021-11-15 11:15:54 +00:00
Emilio Cobos Álvarez b3a074211b Bug 1740245 - Don't warn when nsLookAndFeel doesn't know about a color. r=mstange
This is a expected situation specially after RemoteLookAndFeel was
enabled (which queries the whole int range).

No point in spamming the console.

Differential Revision: https://phabricator.services.mozilla.com/D130739
2021-11-10 10:20:10 +00:00
sotaro 5358043005 Bug 1739930 - Disable CompositorSession in popup parent widget r=gfx-reviewers,bradwerth
From nsDocumentViewer::ShouldAttachToTopLevel(), content rendering of popup is always done by child widget.

Differential Revision: https://phabricator.services.mozilla.com/D130714
2021-11-09 22:58:10 +00:00
Nika Layzell fbf35b573d Bug 1732343 - Part 9: Directly use DuplicateHandle in RemoteBackbuffer, r=cmartin
Previously this code was using ipc::DuplicateHandle, which was unnecessary, as
the code is being run in the parent process which has access to perform direct
handle transfers. After this patch we'd like to remove ipc::DuplicateHandle and
rely only on attached handles for serialization, so the code is converted to
instead directly use DuplicateHandle.

Differential Revision: https://phabricator.services.mozilla.com/D126571
2021-11-09 14:17:35 +00:00
Nika Layzell 9e22b53305 Bug 1732343 - Part 8: Use attached handles for Windows RemoteBackbufferHandles serialization, r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D126570
2021-11-09 14:17:34 +00:00
James Teh 8722866e32 Bug 1739920: Fire a focus win event when the real UI replaces the skeleton UI. r=mhowell,dthayer
Differential Revision: https://phabricator.services.mozilla.com/D130570
2021-11-09 02:07:13 +00:00
Doug Thayer 55195fbeed Bug 1739030 - Call ::SetForegroundWindow before systemstatusbarclick event r=mconley
Essentially, we just want to make sure that one of our windows has focus before
we run this handler, as it will likely want to focus a specific window. We can
focus any window we want as long as *one* of our windows has been focused
already with ::SetForegroundWindow. This patch just does that.

Additionally, per cmartin's request, I added MOZ_DIAGNOSTIC_ASSERTs before some
of the early exits here, as I don't think they should be reachable? But please
do let me know if you'd prefer to keep them out or if I'm wrong about them
being reachable.

Differential Revision: https://phabricator.services.mozilla.com/D130222
2021-11-07 20:35:02 +00:00
Cristian Tuns cbd178830f Backed out 10 changesets (bug 1732343) for causing coverage build bustages (Bug 1739590).
Backed out changeset bba94c79f3e1 (bug 1732343)
Backed out changeset d30fa1e1f605 (bug 1732343)
Backed out changeset ed0b4f757c4b (bug 1732343)
Backed out changeset a272da134c34 (bug 1732343)
Backed out changeset ccb259d73843 (bug 1732343)
Backed out changeset a292990b62de (bug 1732343)
Backed out changeset 7d1854782ca8 (bug 1732343)
Backed out changeset 29eaabd9ffb3 (bug 1732343)
Backed out changeset 1aa26657a7a6 (bug 1732343)
Backed out changeset 7a6708dc620a (bug 1732343)
2021-11-05 07:21:04 -04:00
Nika Layzell 6fb92ec807 Bug 1732343 - Part 9: Directly use DuplicateHandle in RemoteBackbuffer, r=cmartin
Previously this code was using ipc::DuplicateHandle, which was unnecessary, as
the code is being run in the parent process which has access to perform direct
handle transfers. After this patch we'd like to remove ipc::DuplicateHandle and
rely only on attached handles for serialization, so the code is converted to
instead directly use DuplicateHandle.

Differential Revision: https://phabricator.services.mozilla.com/D126571
2021-11-04 19:20:20 +00:00
Nika Layzell 7b9b550a9c Bug 1732343 - Part 8: Use attached handles for Windows RemoteBackbufferHandles serialization, r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D126570
2021-11-04 19:20:20 +00:00
Emilio Cobos Alvarez eaf8c1e314 Bug 1696786 - Fix a couple bugs in Windows rollup code. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D130310
2021-11-04 17:53:43 +00:00
ssummar c7c477296e Bug 1738840 - Replaces mozilla::Tuple with std::tuple in accessible/ r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D130152
2021-11-04 13:39:19 +00:00
sotaro c92b63066f Bug 1739310 - Fix WindowOcclusionCalculator::ComputeNativeWindowOcclusionStatus() r=nical,gfx-reviewers
Fix a mistake during porting the ComputeNativeWindowOcclusionStatus() from chromium to gecko. chromium uses (left, top right, bottom), but gecko needs to use (x, y, width, height).

Differential Revision: https://phabricator.services.mozilla.com/D130331
2021-11-04 10:41:52 +00:00
Emilio Cobos Álvarez c308704902 Bug 1738614 - Remove other Widget* colors. r=mstange
These are only used for frameset painting and the non-e10s <select>
dropdown focus codepath. We have other more appropriate standard
colors for this.

Differential Revision: https://phabricator.services.mozilla.com/D129992
2021-11-02 18:08:07 +00:00
Emilio Cobos Álvarez 923cf5df84 Bug 1738614 - Remove TextForeground/Background system colors. r=mstange
Same thing, there's nor reason these should be different from other
CSS-exposed colors.

Differential Revision: https://phabricator.services.mozilla.com/D129991
2021-11-02 18:08:07 +00:00
Emilio Cobos Álvarez ac14d7e42d Bug 1738614 - Remove WindowBackground/Foreground system colors. r=mstange
There's no reason for these to be different to the CSS-exposed
Window/WindowText.

Differential Revision: https://phabricator.services.mozilla.com/D129990
2021-11-02 18:08:07 +00:00
David Parks 08989409e1 Bug 1661127: Cache Windows IVirtualDesktopManager::GetWindowDesktopId value r=cmartin
GetWindowDesktopId is a slow function and is called on the UI thread during WM_CLOSE message handing (as part of SessionStore). This was causing Windows to assume we are stalled and it abandons some messages, namely future WM_CLOSE messages sent for other windows during a "Close All Windows" operation.

In this patch, GetWorkspaceId uses a cached value for GetWindowDesktopId (if available) but also queues an update for that cache value if one isn't already in progress. Since SessionStore already regularly calls GetWorkspaceId in response to window moves, this keeps the value fresh in plases where it might change. (The SessionStore architecture is designed that way because Windows does not notify the application if the user moves the window to another virtual desktop.)

Differential Revision: https://phabricator.services.mozilla.com/D128955
2021-11-02 17:18:23 +00:00
Masayuki Nakano 4341d6fb0c Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug
Currently, checking whether an `EventTarget` is `nsINode` (or its concrete
classes) or not requires a QI, but it's expensive and used a lot while we
handle each event.  Therefore, it'd be nicer for creating a virtual method,
`EventTarget::IsNode()` and use it for the check.

If trying to convert `EventTarget` to a concrete class, it may require two
virtual method calls.  I'm not sure whether it's cheaper than a QI, but at
least, it won't depend on the UUID check order of `QueryInterface()` when
multiple interfaces are implemented.

Differential Revision: https://phabricator.services.mozilla.com/D129781
2021-11-02 13:03:43 +00:00
Gabriele Svelto b49d7a0b90 Bug 1722208 - Fix automatically displaying the on-screen keyboard on Windows 11 when running on convertible slates r=cmartin
This fix simply ignores tablet mode when running on Windows 11. The
reasoning behind this is that per Microsoft documentation tablet mode
is specific to Windows 10 and not supported anymore on Windows 11. This
seems consistent in the behavior of the APIs we use to detect the
presence of a keyboard: Windows 10-specific APIs return unexpected
results while APIs that predate them return values that seem consistent
and reliable.

Differential Revision: https://phabricator.services.mozilla.com/D128229
2021-10-28 21:08:12 +00:00
Doug Thayer 90b2905a58 Bug 1737501 - Allow contextmenu option on Windows SystemStatusBar r=mconley
We want to be able to have a different behavior for interactions with an entry
in the Windows system tray - specifically, we want to be able to open a window
on left click, and show a menu on right click. This patch allows us to control
this with a "contextmenu" attribute on the menu passed in to `AddItem`, and
receive a "systemstatusbarclick" event in the case of a left click.

Regarding tests, I don't know that we have a good way of testing this?
Suggestions are of course welcome here.

Differential Revision: https://phabricator.services.mozilla.com/D129413
2021-10-28 16:07:31 +00:00
sotaro e58ea79f59 Bug 1737526 - Add support of dynamic enabling/disabling window occlusion by pref r=jrmuizel,gfx-reviewers
For Bug 1733955, we need a support of dynamic enabling/disabling window occlusion by pref. It is for enabling/disabling window occlusion for some mochitests by pref.

Differential Revision: https://phabricator.services.mozilla.com/D129369
2021-10-26 02:37:42 +00:00
sotaro d346bc61a7 Bug 1737236 - Add WinWindowOcclusionTracker::DumpOccludingWindows() r=gfx-reviewers,jrmuizel
WinWindowOcclusionTracker::DumpOccludingWindows() could be used to check occluding windows.

Differential Revision: https://phabricator.services.mozilla.com/D129238
2021-10-26 02:35:25 +00:00
Emilio Cobos Álvarez 736cd85309 Bug 1736141 - Derive a content theme from newtab page background, and use it for non-chrome docshells. r=mstange,dao
We use "is-in-chrome-docshell" rather than "is a chrome doc" so that about:
pages that are loaded in the content area (like about:addons etc) follow the
general content theme as well.

Cache the relevant color schemes since having that many branches on the default
system theme made me a bit uncomfortable, and this code can be called quite a
lot... Though it probably isn't such a huge deal. This makes us initialize the
theme right away, so make sure subclasses do the right thing. This in practice
was only an issue for GTK, which does cache the "system theme is dark" bit.

Differential Revision: https://phabricator.services.mozilla.com/D128674
2021-10-20 08:25:57 +00:00
Emilio Cobos Álvarez 4f423be17e Bug 1736441 - Add back two incorrectly-removed cases statements.
MANUAL PUSH: Trivial assertion orange fix CLOSED TREE
2021-10-19 14:43:24 +02:00
Emilio Cobos Álvarez 6c858f9e0c Bug 1736441 - Remove a bunch of dead plugins code from widget/. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D128863
2021-10-19 11:19:13 +00:00
Marian-Vasile Laza 0f2876e6ca Backed out changeset 115b43608ec1 (bug 1736441) for causing build bustages on nsWindow.cpp. CLOSED TREE 2021-10-19 13:54:23 +03:00
Emilio Cobos Álvarez c70d201838 Bug 1736441 - Remove a bunch of dead plugins code from widget/. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D128863
2021-10-19 10:06:50 +00:00
David Parks c1263c2e4c Bug 1736128: Ignore APZ detection in Windows touch event sent for window buttons r=emk
Since we don't handle WM_NCPOINTER* touch events, Windows resends them as WM_NCLBUTTON* events but leaves the special touch-indicators set in thread extra data (::GetMessageExtraInfo).  This extra data causes our event to be ignored as a "touch-generated mouse event" that isn't part of an APZ drag.  This patch skips that check for these specific window-button mouse events.

Differential Revision: https://phabricator.services.mozilla.com/D128771
2021-10-18 18:02:42 +00:00
Jeff Muizelaar 6ff665fec1 Bug 1736086 - Rename CreateBasicLayerManager to CreateFallbackRenderer. r=gfx-reviewers,mstange
That's what it actually does now

Differential Revision: https://phabricator.services.mozilla.com/D128634
2021-10-16 00:02:45 +00:00