From: | "Pacho Ramos (pacho)" <pacho@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-shell/files: gnome-shell-3.8.4-close-rundialog.patch |
Date: | Fri, 27 Dec 2013 21:11:41 |
Message-Id: | 20131227211136.A8C382004E@flycatcher.gentoo.org |
1 | pacho 13/12/27 21:11:36 |
2 | |
3 | Added: gnome-shell-3.8.4-close-rundialog.patch |
4 | Log: |
5 | Fix security bug #496168 |
6 | |
7 | (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
8 | |
9 | Revision Changes Path |
10 | 1.1 gnome-base/gnome-shell/files/gnome-shell-3.8.4-close-rundialog.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.8.4-close-rundialog.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.8.4-close-rundialog.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gnome-shell-3.8.4-close-rundialog.patch |
16 | =================================================================== |
17 | From efdf1ff755943fba1f8a9aaeff77daa3ed338088 Mon Sep 17 00:00:00 2001 |
18 | From: Florian Müllner <fmuellner@×××××.org> |
19 | Date: Wed, 18 Sep 2013 17:47:59 +0000 |
20 | Subject: main: Close runDialog as necessary on session mode changes |
21 | |
22 | We already do this for looking glass, but it makes even less sense |
23 | for the normal run dialog - if a mode sets runDialog to false, the |
24 | intention is to not allow executing aribitrary commands. |
25 | |
26 | https://bugzilla.gnome.org/show_bug.cgi?id=708218 |
27 | --- |
28 | diff --git a/js/ui/main.js b/js/ui/main.js |
29 | index bca2b22..6f961be 100644 |
30 | --- a/js/ui/main.js |
31 | +++ b/js/ui/main.js |
32 | @@ -90,8 +90,12 @@ function _sessionUpdated() { |
33 | Shell.KeyBindingMode.OVERVIEW, |
34 | sessionMode.hasRunDialog ? openRunDialog : null); |
35 | |
36 | - if (!sessionMode.hasRunDialog && lookingGlass) |
37 | - lookingGlass.close(); |
38 | + if (!sessionMode.hasRunDialog) { |
39 | + if (runDialog) |
40 | + runDialog.close(); |
41 | + if (lookingGlass) |
42 | + lookingGlass.close(); |
43 | + } |
44 | } |
45 | |
46 | function start() { |
47 | -- |
48 | cgit v0.9.2 |