Bug 1054334 (ffwayland)
Description
Alexander Larsson
2014-01-16 16:18:36 UTC
Here are general docs on how to write backend-specific code in gtk3 if needed: https://developer.gnome.org/gtk3/stable/ch24s02.html#id-1.6.3.4.9 This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Upstream bug - https://bugzilla.mozilla.org/show_bug.cgi?id=635134 Created attachment 988853 [details]
patch
I have this one so far. Should work but it does not :(
Alex, any idea why I'm getting a broken? cairo context from expose events here? When I run Firefox with this patch inside broadway, I'm getting in expose event: (gdb) p mGdkWindow $3 = 0x7fffead3fb40 [GdkBroadwayWindow] (gdb) p gdkVisual $4 = 0x7ffff6b03aa0 [GdkBroadwayVisual] but when I try to create a cairo surface from the given *cr context in the expose event: cairo_surface_t *surf = cairo_get_target(cr); the surface is 0x0 pixels wide which is apparently wrong. Any idea here? Thanks. This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 Martin, it would be helpful to more concrete what backend functions you have problems with. As one example, randomly picked from the upstream bug, I see workarea being discussed - we have gdk_screen_get_monitor_workarea now which provides a backend-agnostic way to get at the information. Thanks.First of all, is it possible to open GDK display before gtk_init? Because I can open only X display by such way. How is actually the broadway/wayland display opened? Mozilla reads the DISPLAY variable and tries to open it: http://mxr.mozilla.org/mozilla-central/source/toolkit/xre/nsAppRunner.cpp#3716 But that fails on wayland/broadway. (I tried to set DISPLAY to opened broadway display). I use the info here: https://developer.gnome.org/gtk3/stable/gtk-broadway.html opened the broadway display (launch gedit there to make sure it works), set DISPLAY to the actual broadway display (DISPLAY=:5) and also set the GDK_BACKEND=broadway env. But gdk_display_open(":5") just fails here. Looks like there's a problem with some signals connected to the window. Guys, what's status of the Wayland backend? I see some bugs (new windows painted behind the main application for instance) which works on broadway backend. Actually Firefox works very well on broadway backend now (with some extra patches of course), so can I take the broadway backend a reference and expect Wayland will be fixed for it? (In reply to Martin Stransky from comment #11) > Guys, what's status of the Wayland backend? I see some bugs (new windows > painted behind the main application for instance) which works on broadway > backend. How are the windows that are supposed to be mapped above the main window created? I.e. what type/hint and whether they main window is set as a parent. Manual stacking order won't work, so it has to be done with a parent-child relationship (i.e. transient for). What other bugs are you experiencing? (In reply to Jonas Ådahl from comment #12) > (In reply to Martin Stransky from comment #11) > > Guys, what's status of the Wayland backend? I see some bugs (new windows > > painted behind the main application for instance) which works on broadway > > backend. > > How are the windows that are supposed to be mapped above the main window > created? I.e. what type/hint and whether they main window is set as a > parent. Manual stacking order won't work, so it has to be done with a > parent-child relationship (i.e. transient for). It's a pretty much standard way - create a window by gtk_window_new() and then set it transient for parent by gtk_window_set_transient_for(). see: http://mxr.mozilla.org/mozilla-central/source/widget/gtk/nsWindow.cpp#3516 http://mxr.mozilla.org/mozilla-central/source/widget/gtk/nsWindow.cpp#3592 The same code is used for Gtk2/Gtk3 and works well on broadway as well. Ony wayland has this issue. btw. Is correct the assumption that I can use broadway as a reference backend? It much easier to develop there than on Wayland session, where clipboard between X/Wayland apps does not work. (In reply to Martin Stransky from comment #14) > btw. Is correct the assumption that I can use broadway as a reference > backend? It much easier to develop there than on Wayland session, where > clipboard between X/Wayland apps does not work. I'm going to assume not. Broadway is AFAIK an experimental backend. Also X/Wayland clipboard integration has been available for a few 3.17. versions of mutter. Have you tried how it works on newer versions? There has been quite a few improvements from 3.16 already. I run rawhide so I have gtk 3.17.7. I tested the Firefox on Wayland right now and I still see the same problem with transient windows. I tried building firefox from git with the patch from earlier this month linked in the upstream bug report, but it just crashes on startup. Running on X11 without the patch seems to work fine. Is there some other version I can test? It would also be helpful it you could describe the issues (and how to reproduce) you are seeing. Okay, I'll provide a copr repo for that. There's the copr repo: http://copr-fe.cloud.fedoraproject.org/coprs/stransky/firefox-wayland/ You can also build your own package with enabled debug (edit the spec file) from: https://stransky.fedorapeople.org/firefox-wayland-43-0a1.fc22.src.rpm Git repo with latest fixes is available at https://github.com/stransky/gecko-dev See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/54P3DQEOHXJQNUPUMHLA2GSQCWU4ZKXE/ and https://copr.fedorainfracloud.org/coprs/stransky/firefox-wayland/ for updates / recent firefox builds for wayland. Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'. Created attachment 1283571 [details]
A patch for fixing to miximize request does not hanlde on weston.
Hi, I've tested latest stransky/gecko-dev (09204a8) on Debian Stretch with weston 1.12.0.
I've noticed that maximizing firefox does not work in weston.
This does not occur in GNOME on Wayland.
I've also found that child menu does not appear with weston 1.12.0 and gnome-shell 3.22.3. (In reply to Hiroshi Hatake from comment #25) > I've also found that child menu does not appear with weston 1.12.0 and > gnome-shell 3.22.3. I'm working on that now. (In reply to Hiroshi Hatake from comment #24) > Created attachment 1283571 [details] > A patch for fixing to miximize request does not hanlde on weston. > > Hi, I've tested latest stransky/gecko-dev (09204a8) on Debian Stretch with > weston 1.12.0. > I've noticed that maximizing firefox does not work in weston. > This does not occur in GNOME on Wayland. Thanks. I used a slightly different patch, added as commit 36ab77590d39adb2e4775b2e2e10845788b07092 Created attachment 1287203 [details]
Patch for adding error handling against posix_fallocate.
I've found that MOZ_RELEASE_ASSERT(ret == 0, "Mapping file allocation failed."); always fail when firing "open in new window" event.
Created attachment 1287508 [details]
Popup window sometimes grayed out when clicking repeatedly and rapidly.
I've found another issue for pop up window.
Pop up windows sometimes grayed out when clicking repeatedly and rapidly.
Sometimes grayed out them before firefox is launched completely.
But latter is rarely occurred.
Please see attached screenshot in more detail.
(In reply to Hiroshi Hatake from comment #28) > Created attachment 1287203 [details] > Patch for adding error handling against posix_fallocate. > > I've found that MOZ_RELEASE_ASSERT(ret == 0, "Mapping file allocation > failed."); always fail when firing "open in new window" event. Thanks for the patch. Please open a new bug for each issue next time, this bug is just for tracking purpose. Is this something that can be targeted for Firefox quantum's release? I'm sure if the Firefox-Wayland copr repository were updated with FF57, many people would be eager to help test! (In reply to kxra from comment #31) > Is this something that can be targeted for Firefox quantum's release? I'm > sure if the Firefox-Wayland copr repository were updated with FF57, many > people would be eager to help test! Mozilla is not taking the Wayland patches to Quantum release. The Wayland tree (https://github.com/stransky/gecko-dev.git) is updated to latest trunk which is Firefox 58 right now. I'll resubmit the copr builds for better testing. But you can find our testing builds (Nightly, Wayland, CSD) at flatpak at https://firefox-flatpak.mojefedora.cz/ Ah, I see. Well, the copr builds are appreciated! Looking forward to that Are you still able to get a working build available on copr? I do hope that Mozilla starts supporting flatpak natively as well (In reply to kxra from comment #34) > Are you still able to get a working build available on copr? I do hope that > Mozilla starts supporting flatpak natively as well Copr is broken somehow when building from github but I don't have to solve it now. It fails to compile after I set "enable-default-toolkit=cairo-gtk3-wayland" in my build script https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=firefox-wayland-git This is the compile log: https://git.project-insanity.org/snippets/24 Thank you for your work Martin! (In reply to Jonas Heinrich from comment #36) > It fails to compile after I set "enable-default-toolkit=cairo-gtk3-wayland" > in my build script > https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=firefox-wayland-git > This is the compile log: https://git.project-insanity.org/snippets/24 > > Thank you for your work Martin! That's caused by https://bugzilla.mozilla.org/show_bug.cgi?id=1341234 You can use workaround we have in Fedora [1] or build without system nspr/nss. [1] https://src.fedoraproject.org/rpms/firefox/blob/stransky-firefox-57/f/firefox-mozconfig#_24 This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'. Wayland enabled build is available here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c0674d672f (In reply to Martin Stransky from comment #40) > Wayland enabled build is available here: > > https://bodhi.fedoraproject.org/updates/FEDORA-2018-c0674d672f That build does NOT use wayland when run in a GNOME/wayland session by default. Is there any option or environment variable one needs to set? (In reply to Martin Stransky from comment #42) > (In reply to Christian Stadelmann from comment #41) > > That build does NOT use wayland when run in a GNOME/wayland session by default. Is there any option or environment variable one needs to set? > > Yes, run "Firefox on Wayland" instead of "Firefox" :) Nice, many thanks! Where does one report bugs against the wayland version? Here or upstream? Please report upstream and make it block Bug 635134. Wayland is default in Fedora 30 now (rawhide). For those having an issue with Wayland, run Firefox for instance like this: env GDK_BACKEND=x11 firefox In my case, I have an issue with cursor not being propagated to the overall window (it disappears when moving over the window boundary inwards, and it's apparently not silently active either). Not sure if this may be because of Sway window manager. firefox-62.0.3-2.fc30.x86_64 gtk3-3.24.1-1.fc30.x86_64 xorg-x11-server-Xwayland.x86_64 libwayland-client.x86_64 (In reply to Jan Pokorný from comment #47) > For those having an issue with Wayland, run Firefox for instance like > this: env GDK_BACKEND=x11 firefox > > In my case, I have an issue with cursor not being propagated to the > overall window (it disappears when moving over the window boundary > inwards, and it's apparently not silently active either). > Not sure if this may be because of Sway window manager. > > firefox-62.0.3-2.fc30.x86_64 > gtk3-3.24.1-1.fc30.x86_64 > xorg-x11-server-Xwayland.x86_64 > libwayland-client.x86_64 You can simply install firefox-x11 package which provides such functionality. You can set Firefox X11 as a default applications, there's a menu entry for it, has its own firefox-x11 launcher... re [comment 48]: I don't use menu entries, but I see it's a prevalent use case so that's indeed nice to have something convenient like that. That suggestions for those going the more direct route. Anyway, I am now using sway 1.0 beta and can happily confirm that since 63.0.3-3, Firefox works like a charm there modulo some known issues: - https://github.com/swaywm/sway/issues/3197 (on the sway side) - and that's all for now Thank you very much for that 63.0.3-3! [FTR. I am using COPR build https://copr.fedorainfracloud.org/coprs/jpokorny/sway-testing/build/820081/ and wlroots-0.1-4.fc30.x86_64 I've just updated with patches from https://github.com/swaywm/wlroots/pull/1384 (referred from https://github.com/swaywm/sway/issues/3115) and https://github.com/swaywm/wlroots/pull/1380 (since I suffered from clipboard related issues nonetheless)] Let's open that for tracking purposes. This bug appears to have been reported against 'rawhide' during the Fedora 30 development cycle. Changing version to '30. This message is a reminder that Fedora 31 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '31'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 31 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Since this is a tracker bug, I guess it should stay open. This message is a reminder that Fedora 33 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '33'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 33 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This message is a reminder that Fedora 33 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '33'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 33 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |