History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SEL-230
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Dan Fabulich
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium

TestGoBack fails in IE HTA mode

Created: 12/May/06 08:05 PM   Updated: 27/Nov/06 07:57 PM
Component/s: MS HTA Mode
Affects Version/s: 0.7.0
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Run TestGoBack in the IE HTA mode. The test will fail.

I watched this in the debugger; the "goBack" command just doesn't seem to work. The browser does not, in fact, go back, even after we call history.back().

 All   Comments   Work Log   Change History      Sort Order:
Dan Fabulich - 14/May/06 12:33 AM
Examining more closely in the debugger, the window history for the embedded iframe appears to be empty in HTA mode; this seems to be true regardless of whether application="true" for the iframe in TestRunner.hta. It may just be a quirk about HTAs that they have no history...?

Preet - 15/May/06 12:55 PM
HTA indeed does not support browser history.
I have tried to implement a basic History object for HTAs which is basically an Array and a pointer to the current item in the array.
Whenever the OnLoad event occurs, I append that URL in the array.
This is not a great implementation, but it seems to work for most simple cases.

Also, since the arrays in Javascript are not really dynamic, Items that should no longer in the history must be set to null or some sort of standard string indicating that it is null.

Dan Fabulich - 27/Nov/06 07:57 PM
This bug is happening because IE HTA doesn't have a "history" to go back to. Fixing this bug would require us to simulate a history; I don't think it's every going to be worth it to implement something like that.