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): spice-xpi-2.7-2.fc17.x86_64 How reproducible: 100% 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. 3. Actual results: The Console button is no longer "greyed out" and the VM will launch again closing the original window. Expected results: The Console button is "greyed out" and the VM will not launch again. Additional info:
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.