1description('Tests for a crash where an event is fired after the page has been navigated away when the original page is in the page cache.'); 2 3if (window.layoutTestController) 4 layoutTestController.overridePreference('WebKitUsesPageCachePreferenceKey', 1); 5else 6 debug('This test can not be run without the LayoutTestController'); 7 8document.body.onload = function() { 9 window.addEventListener('deviceorientation', function() { } ); 10 window.location = "resources/event-after-navigation-new.html"; 11} 12 13window.jsTestIsAsync = true; 14window.successfullyParsed = true; 15