Add a manual test for providing a stable state in print()

Gecko currently fails this test.
Add a manual test for providing a stable state in beforeunload