Red Hat Bugzilla – Bug 832109
The F5 key resets the Console button in the RHEV-M User Portal
Last modified: 2016-05-31 21:31:13 EDT
Description of problem:
I access a RHEV-M user portal and launch a VM. I then hit F5 on the user portal and refreshes with the now ACTIVE console button of the VM I just launched!
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Access a RHEV-M user portal and launch a VM.
2. Once the VM is launched and running, go back to the User Portal and press F5.
The Console button is no longer "greyed out" and the VM will launch again closing the original window.
The Console button is "greyed out" and the VM will not launch again.
This behavior can be seen on any version of spice-xpi plugin. The explanation is simple: when a web page is loaded, there is a plugin instance created. Console button is blue (active), because the plugin instance returns "connected status" of non-running process (-2). When a process is launched, the button is gray due to positive connected status variable. When you reload the page, the plugin is shut, and once again loaded. In that state, the connected status is initialized to -2 and Console button is blue (active). It is hard to pair newly loaded plugin instance to running session, because, there can be multiple instances loaded in multiple tabs, windows, etc of firefox.