GNOME Bugzilla – Bug 787871
Warning from workspaceThumbnail: reference to undefined property "_switchWorkspaceNotifyId"
Last modified: 2018-05-02 18:08:15 UTC
After you log out and log in again, there is a JS WARNING. JS WARNING: [resource:///org/gnome/shell/ui/workspaceThumbnail.js 892]: reference to undefined property "_switchWorkspaceNotifyId"
Created attachment 360029 [details] [review] Avoid JS WARNING
Review of attachment 360029 [details] [review]: The canonical way to fix the warning would be to initialize the signal ID variables to 0 in _init() - I'm a bit wary that the shortcut may leak signal handlers in some cases (say, for example, an exception in _ensurePorthole()), although it should work fine under normal circumstances. The commit message needs some fixes though, something along the lines of: workspaceThumbnails: Avoid access to undefined variables If thumbnails haven't been created, they don't need to be destroyed.
Created attachment 360095 [details] [review] Avoid JS WARNING
Review of attachment 360095 [details] [review]: I'm still a bit worried about lingering signal handlers in case of errors, but OK.