Index: LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html |
diff --git a/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html b/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html |
index 6d4a1e5e73e62d86751c3250307cbb9887915ff0..760d952481f8a37f4fc3245184ff42a2bb063375 100644 |
--- a/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html |
+++ b/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html |
@@ -1,6 +1,6 @@ |
<!DOCTYPE html> |
<script> |
- window.addEventListener("orientationchange", function() { |
- parent.window.postMessage(screen.orientation, "*"); |
+ window.screen.orientation.addEventListener('change', function() { |
+ parent.window.postMessage(screen.orientation.type, "*"); |
}); |
</script> |