Index: chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js |
diff --git a/chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js b/chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js |
index 75a757ccb77155855a45f895bba0d4537c9a748e..f3f25590a05ec6ce981fc5fcc7229f864ddcac71 100644 |
--- a/chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js |
+++ b/chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js |
@@ -13,13 +13,13 @@ window.addEventListener('message', function(e) { |
} |
if (data == 'start-pointerlock') { |
- document.body.webkitRequestPointerLock(); |
+ document.body.requestPointerLock(); |
return; |
} |
}); |
-document.addEventListener('webkitpointerlockchange', function(e) { |
- if (!!document.webkitPointerLockElement) { |
+document.addEventListener('pointerlockchange', function(e) { |
+ if (!!document.pointerLockElement) { |
var msg = ['acquired-pointerlock']; |
embedder.postMessage(JSON.stringify(msg), '*'); |
return; |