| Index: third_party/WebKit/Source/core/page/PointerLockController.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/PointerLockController.cpp b/third_party/WebKit/Source/core/page/PointerLockController.cpp
|
| index c68327bcaaffce82c92d234231f6daf72f3a7c98..a52319c5e4bb93c6cc0678f63c056be8d6396ea9 100644
|
| --- a/third_party/WebKit/Source/core/page/PointerLockController.cpp
|
| +++ b/third_party/WebKit/Source/core/page/PointerLockController.cpp
|
| @@ -52,6 +52,8 @@ void PointerLockController::requestPointerLock(Element* target)
|
| return;
|
| }
|
|
|
| + UseCounter::countCrossOriginIframe(target->document(), UseCounter::ElementRequestPointerLockIframe);
|
| +
|
| if (target->document().isSandboxed(SandboxPointerLock)) {
|
| // FIXME: This message should be moved off the console once a solution to https://bugs.webkit.org/show_bug.cgi?id=103274 exists.
|
| target->document().addConsoleMessage(ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, "Blocked pointer lock on an element because the element's frame is sandboxed and the 'allow-pointer-lock' permission is not set."));
|
|
|