After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700190 - Removable Devices' right-click triggers JS errors, disables context menu
Removable Devices' right-click triggers JS errors, disables context menu
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 700538 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-05-12 16:55 UTC by Pedro F.
Modified: 2013-06-08 08:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Video showing triggering of JS backtrace (1.05 MB, video/webm)
2013-05-12 16:55 UTC, Pedro F.
  Details
messageTray: Check if the clicked summary item has a right click menu (2.44 KB, patch)
2013-05-24 19:07 UTC, Rui Matos
committed Details | Review

Description Pedro F. 2013-05-12 16:55:57 UTC
Created attachment 243931 [details]
Video showing triggering of JS backtrace

Right clicking "Removable Devices" on Message Tray and hovering the list with the mouse triggers JS errors.

Context menu, with left or right click, will then stop working until gnome-shell is restarted.

Version: gnome-shell-3.8.1-4.fc19.i686

-----------------
Video attached.
-----------------
Description of steps made in video:
1. Windows+M, left click, hovering of list does nothing to the console in background.
2. Windows+M, right click, hovering of list triggers JS errors.
3. Windows+M, left and right click do nothing.
4. Right-clicking on Dropbox works (clicked just to be sure).


DO NOTE: due to bug #692706 I'm running a custom clutter (clutter+20 line patch on cally_stage_notify_key_focus_cb), but I've tried with old clutter and problem persists. If needed I can test again with old clutter.

-----------------
JS below:
-----------------

$ Recording to ~/Screencast from 12-05-2013 17:43:08.webm
    JS ERROR: !!!   Exception was: TypeError: this._summaryBoxPointerItem is null
    JS ERROR: !!!     message = '"this._summaryBoxPointerItem is null"'
    JS ERROR: !!!     fileName = '"/usr/share/gnome-shell/js/ui/messageTray.js"'
    JS ERROR: !!!     lineNumber = '2646'
    JS ERROR: !!!     stack = '"()@/usr/share/gnome-shell/js/ui/messageTray.js:2646
wrapper()@/usr/share/gjs-1.0/lang.js:213
()@/usr/share/gnome-shell/js/ui/messageTray.js:2263
wrapper()@/usr/share/gjs-1.0/lang.js:213
()@/usr/share/gnome-shell/js/ui/messageTray.js:2187
wrapper()@/usr/share/gjs-1.0/lang.js:213
"'
    JS ERROR: !!!   Error calling onComplete
    JS ERROR: !!!     message = '"this._summaryBoxPointerItem is null"'
    JS ERROR: !!!     fileName = '"/usr/share/gnome-shell/js/ui/messageTray.js"'
    JS ERROR: !!!     lineNumber = '2780'
    JS ERROR: !!!     stack = '"()@/usr/share/gnome-shell/js/ui/messageTray.js:2780
wrapper()@/usr/share/gjs-1.0/lang.js:213
()@/usr/share/gnome-shell/js/ui/boxpointer.js:157
()@/usr/share/gnome-shell/js/ui/tweener.js:113
_callOnFunction((function () {oldHandler.apply(eventScope, oldParams);handler(target);}),"onComplete",(void 0),[object Object],(void 0))@/usr/share/gjs-1.0/tweener/tweener.js:202
_updateTweenByIndex(0)@/usr/share/gjs-1.0/tweener/tweener.js:332
_updateTweens()@/usr/share/gjs-1.0/tweener/tweener.js:344
_onEnterFrame([object Object])@/usr/share/gjs-1.0/tweener/tweener.js:359
_emit("prepare-frame")@/usr/share/gjs-1.0/signals.js:124
(220)@/usr/share/gnome-shell/js/ui/tweener.js:253
wrapper(220)@/usr/share/gjs-1.0/lang.js:213
([object GObject_Object],220)@/usr/share/gnome-shell/js/ui/tweener.js:228
"'
Comment 1 Pedro F. 2013-05-19 14:28:47 UTC
Using JHbuild's gnome-shell I have the same error/behaviour.

$ jhbuild run gnome-shell --version
GNOME Shell 3.8.2
Comment 2 Branko Grubic (bitlord) 2013-05-24 14:52:34 UTC
I can confirm this behaviour, tested on F19 with gnome-shell-3.8.2-3.fc19.x86_64
Comment 3 Rui Matos 2013-05-24 19:07:05 UTC
Created attachment 245260 [details] [review]
messageTray: Check if the clicked summary item has a right click menu

Commit e71129aa6879b62a04d2fc3b43ff25edd6611987 introduced the
possibility of having summary items without a right click menu so we
should check for one before trying to show it.

--

I haven't tried to reproduce on master yet, but this fixes it for me
on 3.8. I also added a few more checks to be sure that we don't access
properties on a potentially null variable there.
Comment 4 Claudio 2013-05-24 20:43:08 UTC
DimStar on #opensuse-gnome found that the issue is fixed in master by commit 
1b135095
Comment 5 Jasper St. Pierre (not reading bugmail) 2013-05-24 21:02:09 UTC
Review of attachment 245260 [details] [review]:

OK.
Comment 6 Rui Matos 2013-05-24 22:20:38 UTC
Attachment 245260 [details] pushed as 2eb7797 - messageTray: Check if the clicked summary item has a right click menu
Comment 7 Florian Müllner 2013-05-31 13:01:09 UTC
*** Bug 700538 has been marked as a duplicate of this bug. ***