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

30968 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe ae5bdfff82 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-21 03:10:07 +00:00
Hiroyuki Ikezoe 3fb8018d34 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-21 03:10:06 +00:00
Hiroyuki Ikezoe df505b470b 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-21 03:10:06 +00:00
Hiroyuki Ikezoe 23934b8a4d 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-21 03:10:06 +00:00
Hiroyuki Ikezoe b317e88da3 Bug 1794070 - Fix preference name typos in browser_test_swipe_gesture.js. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D161750
2022-11-21 03:10:05 +00:00
Hiroyuki Ikezoe 7b3134f7c1 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-21 03:10:04 +00:00
stransky 7c817ca2a7 Bug 1800966 [Linux] Allow webp in GTK file chooser dialog r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162372
2022-11-18 09:56:02 +00:00
Emilio Cobos Álvarez 3c1ba0605d Bug 1800368 - Disable panel animations on Wayland for regressions. r=stransky
I don't have time to dig into them right now so disable there for now.

I could repro the flickering on Arch Linux, but I couldn't repro the
incorrectly-transparent popup or the incorrectly-open extension popup...

Differential Revision: https://phabricator.services.mozilla.com/D162240
2022-11-17 15:26:46 +00:00
Mark Banner ec76a72706 Bug 1799314 - Convert consumers of testing modules to import ES modules direct (miscellaneous). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D161917
2022-11-17 12:00:32 +00:00
Emilio Cobos Álvarez a8a5c8fe6a Bug 1798213 - For widget-less pages keep defaulting to primary screen scale factor. r=tnikkel,layout-reviewers,extension-reviewers,robwu
This restores the previous behavior in a somewhat more principled way.

The extensions code is still broken in multi-monitor cases, but that's a
more complicated fix.

Differential Revision: https://phabricator.services.mozilla.com/D161997
2022-11-16 15:52:07 +00:00
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
Greg Stoll 290dbe1b3c Bug 1788271 - Part 1: log some Windows messages before and after we process them r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D159197
2022-10-28 18:19:39 +00:00
Daniel Holbert 16170f25a6 Bug 1797840: Replace stray tab characters with spaces in IDL files throughout the tree. r=mccr8,necko-reviewers,credential-management-reviewers,smaug,sgalich,valentin
DONTBUILD because this is just whitespace cleanup.

I found the files to fix up here using this command:
    grep -r '   ' * 2>/dev/null | grep -v "other-licenses" | grep "idl:"

I replaced the tab characters with however many spaces seemed consistent with
the indentation in the surrounding code (and did some minor space-indentation
cleanup in contextual lines to preserve alignment, in a few cases).

Differential Revision: https://phabricator.services.mozilla.com/D160577
2022-10-28 18:08:17 +00:00
Arturo Mejia fd35bab7a0 Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-10-28 14:00:45 +00:00
James Teh 681e69a5ca Bug 1774285 - Avoid a11y instantiation after clipboard copy. r=nlapre,jamie CLOSED TREE
This prevents a11y from getting instantiated shortly after clipboard paste, in
order to prevent hangs with the Windows 11 suggested actions feature.

When combined with the previous patch, the behavior is the following:

 * For users with a11y already-enabled:

   * No hang (due to clipboard flush).
   * Quick actions menu is positioned at selection offset.

 * For users with a11y disabled (most):

   * No hang (due to no a11y instantiation + clipboard flush).
   * Quick actions menu is positioned at pointer (cursor) offset.

Co-Authored-By: Emilio Cobos Álvarez <emilio@crisal.io>

Differential Revision: https://phabricator.services.mozilla.com/D160652

Depends on D160646
2022-10-28 14:48:25 +00:00
James Teh 307f9e48aa Bug 1774285 - On Windows 11 22H2, flush the Windows clipboard immediately after setting it. r=neildeakin
This works around a windows 11 suggested actions bug, see comment.

Differential Revision: https://phabricator.services.mozilla.com/D160646
2022-10-28 14:17:54 +00:00
Andrew Osmond 77b6b3ccc7 Bug 1794722 - Part 3. Remove all uses of GfxInfo::GetWebRenderEnabled. r=jrmuizel,webcompat-reviewers,twisniewski
This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160122
2022-10-28 12:36:06 +00:00
Andrew Osmond 9d245b8325 Bug 1794722 - Part 2. Remove all uses of gfxVars::UseWebRender(). r=jrmuizel,media-playback-reviewers,alwu
This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160121
2022-10-28 12:36:06 +00:00
Andrew Osmond 53608b802f Bug 1794722 - Part 1. Remove WebRender from the GfxInfo allowlist. r=jrmuizel
WebRender is a mature feature. We should start blocking it on known bad
devices over allowlisting known good devices. This may enable WebRender
in a few more obscure places than we shipped before.

Differential Revision: https://phabricator.services.mozilla.com/D160120
2022-10-28 12:36:05 +00:00
Cristian Tuns 1303ee58d8 Backed out 3 changesets (bug 1794722) for causing multiple failures on RemoteProcessMonitor CLOSED TREE
Backed out changeset 0217af5b1aa6 (bug 1794722)
Backed out changeset d7805be9dfb3 (bug 1794722)
Backed out changeset 0093f071f1a5 (bug 1794722)
2022-10-27 20:52:36 -04:00
Andrew Osmond f8dc716e8d Bug 1794722 - Part 3. Remove all uses of GfxInfo::GetWebRenderEnabled. r=jrmuizel,webcompat-reviewers,twisniewski
This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160122
2022-10-28 00:08:04 +00:00
Andrew Osmond 93abf26cbc Bug 1794722 - Part 2. Remove all uses of gfxVars::UseWebRender(). r=jrmuizel,media-playback-reviewers,alwu
This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160121
2022-10-28 00:08:03 +00:00
Andrew Osmond b01099b79d Bug 1794722 - Part 1. Remove WebRender from the GfxInfo allowlist. r=jrmuizel
WebRender is a mature feature. We should start blocking it on known bad
devices over allowlisting known good devices. This may enable WebRender
in a few more obscure places than we shipped before.

Differential Revision: https://phabricator.services.mozilla.com/D160120
2022-10-28 00:08:03 +00:00
sotaro 9f92330280 Bug 1797464 - Enable/disable window occlusion only when compositor session exists on Windows r=gfx-reviewers,lsalzman
When compositor session exists, gfxConfig is already initialized.

If first AppWindow is destroyed in nsAppShellService::JustCreateTopWindow() because of error, the first window could be destroyed before calling gfxConfig::Init(). gfxConfig::Init() is called from gfxPlatform::GetPlatform(). gfxPlatform::GetPlatform() is called just before creating compositor by nsBaseWidget::CreateCompositor()

Differential Revision: https://phabricator.services.mozilla.com/D160453
2022-10-27 12:06:42 +00:00
sotaro 41bf2e8ee2 Bug 1796527 - Let reuse decoder device to release on non-intel GPUs on Windows r=jrmuizel,gfx-reviewers
Reuse decoder device is already enabled on Intel and AMD GPUs on release.

Differential Revision: https://phabricator.services.mozilla.com/D160010
2022-10-27 10:12:05 +00:00
Jamie Nicol 6511f3c4e5 Bug 1797055 - Force crash early if compositor is resumed with abandoned Surface. r=geckoview-reviewers,m_kato
In bug 1772839 we were seeing a large number of crashes due to
encountering a webrender error after exhausting all fallback
configurations. At least in some cases, this was due to the compositor
being resumed with an Android Surface that was already in an abandoned
state, meaning we can never succeed in creating an EGL Surface.

We added a check for this condition, and a workaround, to the
GeckoView java code. However, we are still seeing crash reports
matching this signature. To help determine whether these are also due
to the Surface being abandoned, or due to some other reason, this
patch adds a deliberate crash much earlier in the pipeline if we
detect an abandoned Surface.

Differential Revision: https://phabricator.services.mozilla.com/D160042
2022-10-27 08:01:28 +00:00
Andrew Osmond a377b7bb98 Bug 1797580 - Fix broken assumptions with allowlists and the downloadable blocklist. r=jrmuizel
Ensure that when we evaluate the downloadable blocklist, we actually
only use the downloadable blocklist. We should not include any platform
specific checks in these prefs, as it causes confusion about why the
prefs were set in the first place. Allowlisted features should be
ignored when evaluating the downloadable blocklist; if we wish to
override the ALLOW/ALLOW_QUALIFIED/DENIED statuses, we should use OK or
BLOCKED_DEVICE or similar instead.

This caused allowlisted features (like WebRender) to be taken away from
users in the most recent nightly.

Differential Revision: https://phabricator.services.mozilla.com/D160408
2022-10-27 01:12:50 +00:00
Emilio Cobos Álvarez 1731cea050 Bug 1797463 - Prevent windows widget sizemode from getting out of sync. r=cmartin
If we get via OnFrameChanging, we compute a new sizemode, but never store it on
the widget, yet we notify that it has changed.

We were relying on a call to mWindow->SetSizeMode from the widget delegate
which I removed in:

  c9785cd100

Instead, call EnsureSizeMode to make sure we already have the right sizemode
when notifying our listener.

Differential Revision: https://phabricator.services.mozilla.com/D160365
2022-10-26 23:09:57 +00:00
Marian-Vasile Laza a0fe811cf3 Backed out changeset 9cda62240050 (bug 1788720) for causing linting failures. CLOSED TREE 2022-10-27 01:49:08 +03:00
Arturo Mejia bd826e4068 Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-10-26 21:56:06 +00:00
Marian-Vasile Laza babfa4a3b5 Backed out changeset cf1b318a7a98 (bug 1797463) for causing mochitest failures on test_sizemode_events.xhtml. CLOSED TREE 2022-10-27 01:15:50 +03:00
Marian-Vasile Laza b17847153a Backed out changeset 71b829538175 (bug 1797580) for causing xpcshell failures on test_gfxBlacklist_Version.js. 2022-10-27 01:14:25 +03:00
Emilio Cobos Álvarez 245ba2bb1f Bug 1797463 - Prevent windows widget sizemode from getting out of sync. r=cmartin
If we get via OnFrameChanging, we compute a new sizemode, but never store it on
the widget, yet we notify that it has changed.

We were relying on a call to mWindow->SetSizeMode from the widget delegate
which I removed in:

  c9785cd100

Instead, call EnsureSizeMode to make sure we already have the right sizemode
when notifying our listener.

Differential Revision: https://phabricator.services.mozilla.com/D160365
2022-10-26 20:32:16 +00:00
Andrew Osmond 351c4a5bac Bug 1797580 - Fix broken assumptions with allowlists and the downloadable blocklist. r=jrmuizel
Ensure that when we evaluate the downloadable blocklist, we actually
only use the downloadable blocklist. We should not include any platform
specific checks in these prefs, as it causes confusion about why the
prefs were set in the first place. Allowlisted features should be
ignored when evaluating the downloadable blocklist; if we wish to
override the ALLOW/ALLOW_QUALIFIED/DENIED statuses, we should use OK or
BLOCKED_DEVICE or similar instead.

This caused allowlisted features (like WebRender) to be taken away from
users in the most recent nightly.

Differential Revision: https://phabricator.services.mozilla.com/D160408
2022-10-26 20:29:13 +00:00
stransky 3cc418b893 Bug 1796751 [Wayland] Apply negative coordinates workaround to GdkWindow too r=emilio
Depends on D160343

Differential Revision: https://phabricator.services.mozilla.com/D160344
2022-10-26 11:47:33 +00:00
stransky 5e9381b0ad Bug 1796751 [Wayland] Apply negative coordinates workaround to GDK_WINDOW_TEMP GdkWindow r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160343
2022-10-26 11:47:33 +00:00
stransky 6f3cbe6f22 Bug 1797470 Remove MOZ_GTK_DRAG_RESULT_* r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160348
2022-10-26 11:00:01 +00:00
stransky c5fd68828c Bug 1794613 [Wayland] Don't make tooltips modal r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160328
2022-10-26 09:01:16 +00:00
stransky e5f83b8dd1 Bug 1796103 [Wayland] Log move-to-rect params r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D159691
2022-10-26 08:58:24 +00:00
stransky fda76755db Bug 1797309 [Wayland] Use correct popup to calculate parent position for wl_subsurface popups r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160223
2022-10-25 18:36:51 +00:00
Andrew Osmond 4d2f660e66 Bug 1793218 - Refactor gfx blocklist pref management to avoid missing features/status codes. r=gfx-reviewers,lsalzman
We have added a number of new status codes, for the allowlist and new
errors that were not previously handled by the code managing the gfx
blocklist prefs. We also now iterate over the range of features instead
of manually listing the features, as some were missed during previous
additions.

Differential Revision: https://phabricator.services.mozilla.com/D160053
2022-10-25 15:32:18 +00:00
stransky 0970447a78 Bug 1797046 [Wayland] Use mBounds to get Wayland popup coordinates for nsWindow::WidgetToScreenOffset() r=emilio
Due to https://gitlab.gnome.org/GNOME/gtk/-/issues/5287 we can't use gdk_window_get_origin() on wl_subsurface Wayland popups.
In this patch we switch to mBounds to return popup position by nsWindow::WidgetToScreenOffset().

Differential Revision: https://phabricator.services.mozilla.com/D160048
2022-10-25 12:00:32 +00:00
Masayuki Nakano 6facd41997 Bug 1796044 - part 16: Make `intl.tsf.enable` a static pref and rename it r=m_kato
Some users may keep disabling TSF while we were improving TSF implementation due
to avoiding some bugs.

Currently, we don't test IMM handler.  Therefore, I think that we should rename
the pref and make users run well-tested path to handle IME.

Depends on D159818

Differential Revision: https://phabricator.services.mozilla.com/D159819
2022-10-25 07:07:01 +00:00
Masayuki Nakano a7a7af15f2 Bug 1796044 - part 15: Make `intl.tsf.support_imm` a static pref r=m_kato
This pref is used for behavior check of how newer TSF behave without IMC.
Therefore, this shouldn't be used by users.  However, like bug 1367692 and
bug 1409155, this may be useful when we meet a critical bug of old IME in
newer Windows.  Thus we should keep this pref.

Depends on D159817

Differential Revision: https://phabricator.services.mozilla.com/D159818
2022-10-25 07:07:00 +00:00
Masayuki Nakano 4deece589a Bug 1796044 - part 14: Get rid of `intl.tsf.associate_imc_only_when_imm_ime_is_active` r=m_kato
It's introduced in bug 1367692 to make it possible to test the bug of old
MS-IME on Windows 10 with later versions.  Now, the bug and the old versions
have gone.  Therefore, we don't need this pref anymore.

Depends on D159816

Differential Revision: https://phabricator.services.mozilla.com/D159817
2022-10-25 07:07:00 +00:00
Masayuki Nakano b224ff9c39 Bug 1796044 - part 13: Make `intl.tsf.hack.atok.search_input_scope_disabled` a static pref r=m_kato
Depends on D159815

Differential Revision: https://phabricator.services.mozilla.com/D159816
2022-10-25 07:06:59 +00:00
Masayuki Nakano 8edfa64e2d Bug 1796044 - part 12: Make `intl.tsf.hack.ms_traditional_chinese.query_insert_result` a static pref r=m_kato
Depends on D159814

Differential Revision: https://phabricator.services.mozilla.com/D159815
2022-10-25 07:06:59 +00:00
Masayuki Nakano 64a548a89f Bug 1796044 - part 11: Make `intl.tsf.hack.ms_simplified_chinese.query_insert_result` a static pref r=m_kato
Depends on D159813

Differential Revision: https://phabricator.services.mozilla.com/D159814
2022-10-25 07:06:58 +00:00
Masayuki Nakano 17b4be5465 Bug 1796044 - part 10: Make `intl.tsf.hack.ms_japanese_ime.do_not_return_no_layout_error_at_caret` a static pref r=m_kato
Depends on D159812

Differential Revision: https://phabricator.services.mozilla.com/D159813
2022-10-25 07:06:58 +00:00
Masayuki Nakano aac0e8ae24 Bug 1796044 - part 9: Make `intl.tsf.hack.ms_japanese_ime.do_not_return_no_layout_error_at_first_char` a static pref r=m_kato
Depends on D159811

Differential Revision: https://phabricator.services.mozilla.com/D159812
2022-10-25 07:06:58 +00:00
Masayuki Nakano d1bf8d6ac4 Bug 1796044 - part 8: Make `intl.tsf.hack.ms_traditional_chinese.do_not_return_no_layout_error_of_composition_string` a static pref r=m_kato
Depends on D159810

Differential Revision: https://phabricator.services.mozilla.com/D159811
2022-10-25 07:06:57 +00:00