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

30908 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 368171d435 Bug 1800684 - Remove print_via_parent. r=dshin
For a while it was true everywhere but android, but it's been true
unconditionally since forever.

Differential Revision: https://phabricator.services.mozilla.com/D162116
2022-11-15 16:19:30 +00:00
stransky 88a8b923bd Bug 1800211 [XWayland] Keep open drag source popups on XWayland too r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162029
2022-11-15 08:14:45 +00:00
Emilio Cobos Álvarez 85c373ad11 Bug 1800416 - Ensure setting fullscreen actually ends up with a fullscreen sizemode. r=mhowell
When minimizing a fullscreen window, frame state is kept with
mFullscreenMode = true but mSizeMode = nsSizeMode_Minimized.

Calling EnsureSizeMode(nsSizeMode_Fullscreen) in this state would call
EnsureFullscreenMode(true), but that'd bail out without actually
setting the fullscreen sizemode, causing confusion.

Before the regressing patch that was papered over because
nsSizeMode_Fullscreen was passed explicitly to OnSizeModeChange(), but
the underlying state was already wrong before my patch.

Add some comments and documentation to the fullscreen-relevant members,
since initially I was rather confused about this code.

Differential Revision: https://phabricator.services.mozilla.com/D161982
2022-11-14 17:21:48 +00:00
Florian Queze ea6e6f4fa1 Bug 1671490 - Mark the GPU process as being in the foreground whenever the parent process is in the foreground to make their priorities (and priority boosts) match, r=bas.
Differential Revision: https://phabricator.services.mozilla.com/D161065
2022-11-14 16:05:34 +00:00
Masayuki Nakano f7d66877b9 Bug 1726297 - part 4: Make `ContentEventHandler::OnQueryTextRectArray` fills invisible character rects with caret rect before next visible character r=smaug
This patch does **not** make `ContentEventHandler` return consistent rect
for invisible text node, however, it should be okay for now because users
cannot put caret into invisible text node and cannot type text into it.

For avoiding the warning spam of `ContentCacheInChild` in automated tests,
`ContentEventHandler::OnQueryTextRectArray` shouldn't give it up correcting
character rects in invisible text nodes.  And as mentioned above, using
similar rects to visible character around there is okay.  Therefore, this
patch makes `OnQueryTextRectArray` fills invisible text rects with caret
rect before following visible character if they are followed by visible
characters.  Otherwise, i.e., if invisible text rects are the last things
in the range, make it use caret rect after the last visible character.

Note that if the range is completely in invisible nodes, the value will be
computed in the fallback part of the method.  It still has issues, but it
does not happen so many times in the automated tests.  Therefore, this patch
does not treat the case.

Differential Revision: https://phabricator.services.mozilla.com/D160593
2022-11-11 13:43:24 +00:00
Emilio Cobos Álvarez 7a74e2cfff Bug 1799901 - Enable panel animations on Linux configurations that support CSD. r=stransky
The problems we know about are about tiling WMs, this should work.

Depends on D161693

Differential Revision: https://phabricator.services.mozilla.com/D161694
2022-11-09 19:31:08 +00:00
Emilio Cobos Álvarez 7cc7492f55 Bug 1799901 - Make panel animations a LookAndFeel int. r=dao,Gijs
This will allow us to enable panel animations in some Linux
configurations but not others. Also, it's cleaner.

Differential Revision: https://phabricator.services.mozilla.com/D161693
2022-11-09 19:31:08 +00:00
Brad Werth 8a09886359 Bug 1798652: Make WinCompositorWindowThread::ShutDown timeout after 2 seconds. r=sotaro
This change also ensures that our thread is stopped, as long as shutdown
was successful.

Differential Revision: https://phabricator.services.mozilla.com/D161644
2022-11-09 01:14:42 +00:00
stransky 7d2d31927b Bug 1761877 [Linux] Add isWaylandDragSource and isWaylandPopup attributes to XULPopupElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D161127
2022-11-08 20:43:17 +00:00
stransky 908442a9d5 Bug 377621 [Linux] Don't advertise _NETSCAPE_URL MIME type for internal data r=emilio
_NETSCAPE_URL hints target application it should store URL link instead of copy the pointed data.
Don't use that for internal URL (mailbox:/// and similar).

Differential Revision: https://phabricator.services.mozilla.com/D161442
2022-11-08 19:23:01 +00:00
stransky 0092bf74f2 Bug 377621 [Linux] Log correctly MIME type conversions r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D161441
2022-11-08 19:23:01 +00:00
Brad Werth 06dd7edc6c Bug 1798651 Part 2: Make WinWindowOcclusionTracker::ShutDown timeout after 2 seconds. r=gfx-reviewers,sotaro
Differential Revision: https://phabricator.services.mozilla.com/D161195
2022-11-08 15:53:35 +00:00
stransky ddc86a0a4b Bug 1796130 [Wayland] Don't release callbacks registered at EnableVsync()/Refresh() r=emilio
Depends on D160364

Differential Revision: https://phabricator.services.mozilla.com/D161598
2022-11-08 15:26:26 +00:00
stransky 35f7c05de1 Bug 1796130 [Wayland] Track and release Vsync frame callbacks so we don't get frame callback after nsWindow::Destroy() r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160364
2022-11-08 15:26:25 +00:00
Emilio Cobos Álvarez ad59f2bd10 Bug 1767546 - Support XDG_ACTIVATION_TOKEN. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D159968
2022-11-08 12:43:24 +00:00
Makoto Kato b330c6558e Bug 1799379 - Update bug components for GeckoView. r=geckoview-reviewers,calu
There is no Core: Widget - Android now, so we should update bug component of
widget/android. Also, I add GVE for GVE path.

Differential Revision: https://phabricator.services.mozilla.com/D161413
2022-11-08 01:07:43 +00:00
Morgan Rae Reschenberg fd4344de10 Bug 1794626: Create invert_colors telemetry probe and maintain its value via LookAndFeel r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159292
2022-11-07 23:49:20 +00:00
Florian Quèze d44463651d Bug 1797814 - Allow setting a maximum frame rate frequency in Hz, r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D160556
2022-11-07 19:30:49 +00:00
Stephen A Pohl 0a408a0948 Bug 1642138: Improve integration with the macOS-level Window menu handling to unlock built-in OS functionality such as tiling of windows. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159723
2022-11-07 19:04:40 +00:00
stransky 0a8ecb871a Bug 1774777 [Linux] Remove temporary D&D files from /tmp r=emilio
- Use 5 min timeout value to mTempFileTimerID so D&D files from /tmp are removed after a longer period.
- Remove all temporary files from nsDragService destructor.
- Add more logs.

Differential Revision: https://phabricator.services.mozilla.com/D161409
2022-11-07 13:55:24 +00:00
Cosmin Sabou 00912675fd Merge mozilla-central to autoland. 2022-11-05 13:52:47 +02:00
Cosmin Sabou fbb44fc021 Backed out changeset 164d45cee724 (bug 1796130) for causing linux nightly crashes as Bug 1799252. a=backout 2022-11-05 13:41:58 +02:00
Nicolai Kasper 2911231d1c Bug 1746139 - Keeping filename ending intact when using windows with events like drag and drop. r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D141941
2022-11-05 03:21:35 +00:00
Iulian Moraru 1c8854ed1e Backed out changeset 46538d8cbaf1 (bug 1642138) as per dev's request. CLOSED TREE 2022-11-05 03:02:28 +02:00
Csoregi Natalia 5af60475bb Backed out changeset 28669f5f93e7 (bug 1794626) for bustage on nsLookAndFeel.mm. CLOSED TREE 2022-11-05 01:08:45 +02:00
Morgan Rae Reschenberg deee494c14 Bug 1794626: Create invert_colors telemetry probe and maintain its value via LookAndFeel r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159292
2022-11-04 21:51:17 +00:00
Razvan Cojocaru 1629218702 Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond
[Int]CoordTyped no longer inherits Units because otherwise
instances of [Int]IntPointTyped may get one Base subobject because
it inherits Units, and others because of BasePoint's Coord members,
which end up increasing the [Int]CoordTyped's objects size (since
according to the ISO C++ standard, different Base subobject are
required to have different addresses).

Differential Revision: https://phabricator.services.mozilla.com/D160713
2022-11-04 18:29:35 +00:00
stransky 6454294d92 Bug 1797978 [Wayland] Fire Vsync from idle callback r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160797
2022-11-04 10:28:32 +00:00
stransky 7718f60ba6 Bug 1796130 [Wayland] Track and release Vsync frame callbacks so we don't get frame callback after nsWindow::Destroy() r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160364
2022-11-04 10:15:23 +00:00
stransky c8f69c9460 Bug 1795645 [Wayland] Check nsWindow returned by get_window_for_gtk_widget() r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160886
2022-11-04 09:40:09 +00:00
stransky f88b044e04 Bug 1795066 [Wayland] Don't report monitor/screen shift to layout on Wayland r=emilio
We can't report monitor/screen shift to layout on Wayland. It causes wrong popup placement as all window/popup coordinates are used relatively to parent on Wayland.
Also we can't get/set position of toplevel windows on Wayland.

Differential Revision: https://phabricator.services.mozilla.com/D160784
2022-11-04 08:07:08 +00:00
Stephen A Pohl 177c2181ca Bug 1642138: Improve integration with the macOS-level Window menu handling to unlock built-in OS functionality such as tiling of windows. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159723
2022-11-03 19:32:27 +00:00
Narcis Beleuzu 321987cc8a Backed out changeset bfc380f167f3 (bug 1797806) for showing every browser window as private one (bug 1798819) 2022-11-03 11:46:14 +02:00
Arturo Mejia 74b761feb0 Bug 1798402 - Improve GeckoView Save to PDF error reporting r=ohall,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160854
2022-11-02 23:40:15 +00:00
Jamie Nicol f79eeda7cc Bug 1798714 - Ensure compositor is always resumed with correct size on Android. r=gfx-reviewers,geckoview-reviewers,calu,jrmuizel
On Android when SWGL is enabled, occasionally when switching tabs it
refuses to render the new tab. The user will instead be left with the
contents of the previous tab, or if they have just switched to firefox
they will be left with a black screen.

This occurs when SyncResumeResizeCompositor is called from java code
prior to the gecko compositor having been created. This results in us
delaying the call to UiCompositorController::ResumeAndResize().
Instead, once the compositor eventually gets created we call
UiCompositorController::Resume() (without the resize).

This means that the compositor widget is left with a zero size, and
RenderCompositorLayersSWGL bails early on compositing as a result.

To fix this, we cache the X, Y, width, and height arguments passed to
SyncResumeResizeCompositor. Then to resume the compositor when it
eventually gets created, we call ResumeAndResize() with the cached
values, rather than just calling Resume.

Differential Revision: https://phabricator.services.mozilla.com/D161046
2022-11-02 21:39:19 +00:00
Adam Vandolder 0be4513261 Bug 1665151 - Part 2: Expose custom element default accessibility attributes. r=edgar,Jamie,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D159237
2022-11-02 14:50:56 +00:00
Arturo Mejia 3307fe95de Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-11-02 13:20:13 +00:00
Ben Hearsum 22b049303e Bug 1797806: don't do private browsing specific things when private browsing is disabled r=mhowell
At the moment, launching with `-private-window` (which we now do more easily with `private_browsing.exe` and the associated shortcut) when private browsing is disabled will open a private-looking window that is not private...which is very misleading.

This includes:
* Shortcut creation (which will end up with private shortcuts that open non-private windows)
* Setting AUMID and window/taskbar icons

The latter is handled with a guard in the two places we do it (nsWindow.cpp & BrowserContentHandler.jsm). Ideally, no caller would ever request a private window when private browsing is disabled...but I don't think that's a realistic possibility.

I also noticed we're doing some unnecessary work in the jump list builder when private browsing is disabled, so I fixed that.

I don't think this is reasonably testable in automation (ultimately, AUMID and icons are attributes of the Windows API objects, and we don't have the scaffolding to retrieve those in tests) -- but I'd be happy to be wrong about this.

Differential Revision: https://phabricator.services.mozilla.com/D160568
2022-11-02 13:05:19 +00:00
Cristian Tuns 4d37cf70f1 Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE
Backed out changeset 08476fa2bc27 (bug 1541508)
Backed out changeset 0bf7514845db (bug 1541508)
Backed out changeset aa612a5e9ef7 (bug 1541508)
Backed out changeset 6bb9360473f7 (bug 1541508)
Backed out changeset b3d8e92f50c2 (bug 1541508)
Backed out changeset fa40dded133e (bug 1541508)
Backed out changeset 2e7db4aa8d4f (bug 1541508)
Backed out changeset 6098e2eb62ea (bug 1541508)
Backed out changeset 2c599ee639c4 (bug 1541508)
Backed out changeset 7d44f6e2644c (bug 1541508)
Backed out changeset c1279c3d674c (bug 1541508)
Backed out changeset 8bd08a62a590 (bug 1541508)
Backed out changeset 740010cb005c (bug 1541508)
Backed out changeset 0bfc7dd85c62 (bug 1541508)
Backed out changeset c4374a351356 (bug 1541508)
Backed out changeset 44ccfeca7364 (bug 1541508)
Backed out changeset e944e706a523 (bug 1541508)
Backed out changeset 2c59d66f43e4 (bug 1541508)
Backed out changeset a1896eacb6f1 (bug 1541508)
2022-11-01 22:38:52 -04:00
Barret Rennie 12a2e92d31 Bug 1541508 - Use Services.env in widget/ r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D160154
2022-11-02 02:08:59 +00:00
Emilio Cobos Álvarez 042fc35bec Bug 1798117 - Only flush clipboard for text data. r=smaug
Otherwise Chromium gets confused when pasting (Signal is an Electron
application).

I need to dig a bit more, but this doesn't prevent the fix for
bug 1774285 from working, and fixes the issue here.

It's probably a Chromium bug that this doesn't work tho since,
as mentioned in comment 0, it works on other Windows applications.

Differential Revision: https://phabricator.services.mozilla.com/D160808
2022-11-01 17:58:45 +00:00
Cristian Tuns 47601caf13 Backed out changeset 6d8714cc305a (bug 1788720) for causing geckoview failures on clickNotificationParceled CLOSED TREE 2022-11-01 14:00:27 -04:00
Arturo Mejia b2bb2aa95a Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-11-01 16:49:12 +00:00
Jonathan Watt 2b527f4d33 Bug 1755153 p2 - Prevent saving print settings to prefs if print.save_print_settings=false. r=emilio
Depends on D146943

Differential Revision: https://phabricator.services.mozilla.com/D146944
2022-10-30 10:32:28 +00:00
Jonathan Watt 17f8eb8dec Bug 1755153 p1 - Centralize saving of last used printer name. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D146943
2022-10-30 10:32:28 +00:00
Emilio Cobos Álvarez 49e9630d14 Bug 1798160 - Avoid flushing the clipboard sync for images and files. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D160666
2022-10-29 19:48:32 +00:00
Cosmin Sabou 76db5a7d62 Backed out changeset c7074f4cf73c (bug 1788720) for causing geckoview failures on PermissionDelegateTest. CLOSED TREE 2022-10-28 22:03:56 +03:00
Greg Stoll e74b38cd42 Bug 1788271 - Part 3: richer logging for a bunch of Windows messages r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D159199
2022-10-28 18:19:40 +00:00
Greg Stoll 87d8e86585 Bug 1788271 - Part 2.5: add tests for Window message logging utilities r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D159609
2022-10-28 18:19:40 +00:00
Greg Stoll 8a57084885 Bug 1788271 - Part 2: set up utilities to log more info about Windows messages r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D159198
2022-10-28 18:19:40 +00:00