Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
GNOME:STABLE:3.26
gnome-shell
CVE-2024-36472.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2024-36472.patch of Package gnome-shell
Index: gnome-shell-3.26.2+20180130.0d9c74212/js/ui/status/network.js =================================================================== --- gnome-shell-3.26.2+20180130.0d9c74212.orig/js/ui/status/network.js +++ gnome-shell-3.26.2+20180130.0d9c74212/js/ui/status/network.js @@ -1709,6 +1709,7 @@ var NMApplet = new Lang.Class({ this._mainConnectionStateChangedId = 0; this._notification = null; + this._PortalNotification = null; this._nmDevices = []; this._devices = { }; @@ -1926,6 +1927,8 @@ var NMApplet = new Lang.Class({ _mainConnectionStateChanged: function() { if (this._mainConnection.state == NetworkManager.ActiveConnectionState.ACTIVATED && this._notification) this._notification.destroy(); + if (this._mainConnection.state == NetworkManager.ActiveConnectionState.ACTIVATED && this._PortalNotification) + this._PortalNotification.destroy(); }, _ignoreConnection: function(connection) { @@ -2079,12 +2082,35 @@ var NMApplet = new Lang.Class({ if (!isPortal || Main.sessionMode.isGreeter) return; + let name = this._mainConnection.get_id(); let path = this._mainConnection.get_path(); for (let item of this._connectivityQueue) { if (item == path) return; } + if (this._PortalNotification) + this._PortalNotification.destroy(); + const source = new MessageTray.Source( + _('Network Manager'), 'network-wireless-acquiring-symbolic'); + source.policy = + new MessageTray.NotificationApplicationPolicy('gnome-network-panel') + + this._PortalNotification = new MessageTray.Notification(source, + _('Sign Into Wi–Fi Network'), + _(name)); + this._PortalNotification.connect('destroy', function() { + this._PortalNotification = null; + }); + this._PortalNotification.connect('activated', function() { + this._onNotificationActivated(path); + }); + + Main.messageTray.add(source); + source.notify(this._PortalNotification) + }, + + _onNotificationActivated: function(path) { let timestamp = global.get_current_time(); if (this._portalHelperProxy) { this._portalHelperProxy.AuthenticateRemote(path, '', timestamp);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor