Index: Source/core/page/PointerLockController.cpp |
diff --git a/Source/core/page/PointerLockController.cpp b/Source/core/page/PointerLockController.cpp |
index 591f86419f8834d3bbdcfa6a4c4f82b171e62392..c6cb0dffea531689134847520defa03c1a8cd154 100644 |
--- a/Source/core/page/PointerLockController.cpp |
+++ b/Source/core/page/PointerLockController.cpp |
@@ -28,6 +28,7 @@ |
#include "core/dom/Element.h" |
#include "core/events/Event.h" |
#include "core/frame/LocalDOMWindow.h" |
+#include "core/inspector/ConsoleMessage.h" |
#include "core/page/Chrome.h" |
#include "core/page/ChromeClient.h" |
#include "core/page/Page.h" |
@@ -56,7 +57,7 @@ void PointerLockController::requestPointerLock(Element* target) |
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(SecurityMessageSource, ErrorMessageLevel, "Blocked pointer lock on an element because the element's frame is sandboxed and the 'allow-pointer-lock' permission is not set."); |
+ 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.")); |
enqueueEvent(EventTypeNames::pointerlockerror, target); |
enqueueEvent(EventTypeNames::webkitpointerlockerror, target); |
return; |