I can reproduce this like this:
/usr/bin/webbrowser-app -testability --desktop_file_hint=/usr/share/applications/webbrowser-app.desktop http://people.canonical.com/~brendan-donegan/browse.html
This is how autopilot launches the web browser from the test.
If I remove -testability:
/usr/bin/webbrowser-app --desktop_file_hint=/usr/share/applications/webbrowser-app.desktop http://people.canonical.com/~brendan-donegan/browse.html
Then it stays in portrait mode.
I can reproduce this like this:
/usr/bin/ webbrowser- app -testability --desktop_ file_hint= /usr/share/ applications/ webbrowser- app.desktop http:// people. canonical. com/~brendan- donegan/ browse. html
This is how autopilot launches the web browser from the test.
If I remove -testability:
/usr/bin/ webbrowser- app --desktop_ file_hint= /usr/share/ applications/ webbrowser- app.desktop http:// people. canonical. com/~brendan- donegan/ browse. html
Then it stays in portrait mode.