Bug 1751121
Summary: | Various JS WARNING from gnome-shell | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Yaniv Ferszt <yferszt> |
Component: | gnome-shell | Assignee: | Florian Müllner <fmuellner> |
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 7.6 | CC: | casantos, fmuellner, jadahl, mboisver, mclasen, ofalk, pvlasin, rstrode, tpelka, yzheng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | gnome-shell-3.28.3-29.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-09-29 20:21:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yaniv Ferszt
2019-09-11 08:44:49 UTC
System update and tested again. [yf@cb-rhel7 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.7 (Maipo) [yf@cb-rhel7 ~]$ rpm -qa | grep gnome-shell gnome-shell-3.28.3-11.el7.x86_64 [yf@cb-rhel7 ~]$ journalctl -b | grep "JS WARNING" Sep 11 11:40:13 cb-rhel7.6 gnome-shell[1924]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined property "MetaWindowX11" RESULT: There are still "JS WARNING's" (In reply to Yaniv Ferszt from comment #3) > [yf@cb-rhel7 ~]$ journalctl -b | grep "JS WARNING" > Sep 11 11:40:13 cb-rhel7.6 gnome-shell[1924]: JS WARNING: > [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined > property "MetaWindowX11" This cannot be fixed in gnome-shell. The issue is that only the "MetaWindow" type is introspected and public, but none of the subtypes that are actually used by windows ("MetaWindowX11", "MetaWindowWayland", "MetaWindowXwayland"). Either mutter needs to expose those types to introspection, or gjs needs changing to avoid the warning. *** Bug 1845490 has been marked as a duplicate of this bug. *** *** Bug 1845487 has been marked as a duplicate of this bug. *** *** Bug 1845484 has been marked as a duplicate of this bug. *** > Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING: > [resource:///org/gnome/shell/gdm/realmd.js 130]: reference to undefined > property "_loginFormat" > Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING: > [resource:///org/gnome/shell/gdm/realmd.js 142]: reference to undefined > property "_loginFormat" gnome-shell-3.28.3-28.el7 fixes those and all "regular" JS warnings that were mentioned in the bugs marked as duplicates. However as mentioned earlier, the type of warnings that are triggered by encountering a non-introspected subtype like this one: > Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING: > [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined > property "MetaWindowX11" cannot be addressed in gnome-shell. Some of those warnings that are mentioned in the subject were addressed in https://gitlab.gnome.org/GNOME/mutter/commit/7655e09d004ec1, but others are still present; mostly because making the types public requires code churn that's not proportional to the minor benefit (avoid a harmless warning). Ideally gjs should be fixed to not trigger those warnings, as keeping subtypes private and expecting any manipulation to be done through API on the public parent type is perfectly legitimate. *** Bug 1845660 has been marked as a duplicate of this bug. *** Using gnome-shell-3.28.3-28.el7 I do not see any unexpected JS warnings in the journal. After testing gnome-shell-3.28.3-29.el7, there are no unexpected warnings in the journal. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (GNOME bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:3987 *** Bug 1883641 has been marked as a duplicate of this bug. *** |