Bug 832109

Summary: The F5 key resets the Console button in the RHEV-M User Portal
Product: [Fedora] Fedora Reporter: Bill Sanford <bsanford>
Component: spice-xpiAssignee: Peter Hatina <phatina>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: hdegoede, marcandre.lureau, mkrcmari, phatina, pvine, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-09 08:20:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bill Sanford 2012-06-14 14:24:57 UTC
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:

Comment 1 Peter Hatina 2012-06-18 11:28:06 UTC
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.