Title: [292163] trunk
Revision
292163
Author
[email protected]
Date
2022-03-31 12:49:26 -0700 (Thu, 31 Mar 2022)

Log Message

[PlayStation] Enable WebDriver
https://bugs.webkit.org/show_bug.cgi?id=238615

Reviewed by Alex Christensen.

.:

Enable WebDriver by default. Set values for input interactions.

* Source/cmake/OptionsPlayStation.cmake:

Source/WebDriver:

Fix compilation errors due to interface changes. Load up JSC when its built as a shared
library.

* playstation/WebDriverServicePlayStation.cpp:
(WebDriver::WebDriverService::platformInit):
(WebDriver::WebDriverService::platformValidateCapability const):
(WebDriver::WebDriverService::platformMatchCapability const):

Modified Paths

Diff

Modified: trunk/ChangeLog (292162 => 292163)


--- trunk/ChangeLog	2022-03-31 18:52:06 UTC (rev 292162)
+++ trunk/ChangeLog	2022-03-31 19:49:26 UTC (rev 292163)
@@ -1,3 +1,14 @@
+2022-03-31  Don Olmstead  <[email protected]>
+
+        [PlayStation] Enable WebDriver
+        https://bugs.webkit.org/show_bug.cgi?id=238615
+
+        Reviewed by Alex Christensen.
+
+        Enable WebDriver by default. Set values for input interactions.
+
+        * Source/cmake/OptionsPlayStation.cmake:
+
 2022-03-30  Don Olmstead  <[email protected]>
 
         Turn DEVELOPER_MODE ON for all non-Apple ports in build-webkit

Modified: trunk/Source/WebDriver/ChangeLog (292162 => 292163)


--- trunk/Source/WebDriver/ChangeLog	2022-03-31 18:52:06 UTC (rev 292162)
+++ trunk/Source/WebDriver/ChangeLog	2022-03-31 19:49:26 UTC (rev 292163)
@@ -1,3 +1,18 @@
+2022-03-31  Don Olmstead  <[email protected]>
+
+        [PlayStation] Enable WebDriver
+        https://bugs.webkit.org/show_bug.cgi?id=238615
+
+        Reviewed by Alex Christensen.
+
+        Fix compilation errors due to interface changes. Load up JSC when its built as a shared
+        library.
+
+        * playstation/WebDriverServicePlayStation.cpp:
+        (WebDriver::WebDriverService::platformInit):
+        (WebDriver::WebDriverService::platformValidateCapability const):
+        (WebDriver::WebDriverService::platformMatchCapability const):
+
 2022-02-09  Carlos Garcia Campos  <[email protected]>
 
         WebDriver: add a _javascript_ atom to get the visible text

Modified: trunk/Source/WebDriver/playstation/WebDriverServicePlayStation.cpp (292162 => 292163)


--- trunk/Source/WebDriver/playstation/WebDriverServicePlayStation.cpp	2022-03-31 18:52:06 UTC (rev 292162)
+++ trunk/Source/WebDriver/playstation/WebDriverServicePlayStation.cpp	2022-03-31 19:49:26 UTC (rev 292163)
@@ -36,6 +36,10 @@
 void WebDriverService::platformInit()
 {
     dlopen("PosixWebKit", RTLD_NOW);
+
+#if defined(ENABLE_STATIC_JSC) && !ENABLE_STATIC_JSC
+    dlopen("libJavaScriptCore", RTLD_NOW);
+#endif
 }
 
 Capabilities WebDriverService::platformCapabilities()
@@ -51,12 +55,12 @@
     return true;
 }
 
-bool WebDriverService::platformValidateCapability(const String&, const RefPtr<JSON::Value>&) const
+bool WebDriverService::platformValidateCapability(const String&, const Ref<JSON::Value>&) const
 {
     return true;
 }
 
-bool WebDriverService::platformMatchCapability(const String&, const RefPtr<JSON::Value>&) const
+bool WebDriverService::platformMatchCapability(const String&, const Ref<JSON::Value>&) const
 {
     return true;
 }

Modified: trunk/Source/cmake/OptionsPlayStation.cmake (292162 => 292163)


--- trunk/Source/cmake/OptionsPlayStation.cmake	2022-03-31 18:52:06 UTC (rev 292162)
+++ trunk/Source/cmake/OptionsPlayStation.cmake	2022-03-31 19:49:26 UTC (rev 292163)
@@ -48,6 +48,7 @@
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INTELLIGENT_TRACKING_PREVENTION PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_REMOTE_INSPECTOR PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_RESOURCE_USAGE PRIVATE ON)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBDRIVER PRIVATE ${ENABLE_WEBKIT})
 
 # Experimental features
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_APPLICATION_MANIFEST PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES})
@@ -185,6 +186,13 @@
 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_GL ON)
 SET_AND_EXPOSE_TO_BUILD(USE_TILED_BACKING_STORE ON)
 
+if (ENABLE_WEBDRIVER)
+    SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS ON)
+    SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS ON)
+    SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS OFF)
+    SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_WHEEL_INTERACTIONS ON)
+endif ()
+
 # Create a shared _javascript_Core with WTF and bmalloc exposed through it.
 #
 # Use OBJECT libraries for bmalloc and WTF. This is the modern CMake way to emulate
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to