This integration test fails on Chrome 26.0.1410.63.
This integration test causes a return to #default with role set to "dialog" when window.history.back() is called to close the dialog displaying the contents of the large custom select menu.
As a result, #default, which is supposed to be a page, gets data-role="dialog" for subsequent tests.
This test fails on the latest Chrome. Not sure if this behaviour is related to the failure or not.
Strangely, the error goes away when I replace window.history.back() with $.mobile.activePage.find( "a:first" ).click() ...
With window.history.back() in place, however, it seems that a popstate right after having gone to the dialog is causing it to come back from the dialog with role=dialog ... very strange ...
OK. I think I have discovered another goes-back-twice-in-history scenario:
page1 -> page2 -> inject dialog-sized custom select -> open select <- back. At this point it goes back twice.
Dialog: Render un-closeable during pagebeforehide. Fixes #5956.
(cherry picked from commit ae059a1)