Changeset 262166 in webkit


Ignore:
Timestamp:
May 26, 2020 3:43:40 PM (4 years ago)
Author:
yoshiaki.jitsukawa@sony.com
Message:

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

Reviewed by Don Olmstead.

  • API/JSRemoteInspectorServer.cpp:

Fix compile error.

  • PlatformPlayStation.cmake:

Add JSRemoteInspectorServer.h to the public header list.

  • inspector/remote/socket/posix/RemoteInspectorSocketPOSIX.cpp:

Set PlayStation specific socket option.

Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSRemoteInspectorServer.cpp

    r257809 r262166  
    3131uint16_t JSRemoteInspectorServerStart(const char* address, uint16_t port)
    3232{
    33     const auto& server = Inspector::RemoteInspectorServer::singleton();
     33    auto& server = Inspector::RemoteInspectorServer::singleton();
    3434    if (!server.start(address, port))
    3535        return 0;
  • trunk/Source/JavaScriptCore/ChangeLog

    r262165 r262166  
     12020-05-26  Yoshiaki JITSUKAWA  <yoshiaki.jitsukawa@sony.com>
     2
     3        [PlayStation] Enable RemoteWebInspector
     4        https://bugs.webkit.org/show_bug.cgi?id=212312
     5
     6        Reviewed by Don Olmstead.
     7
     8        * API/JSRemoteInspectorServer.cpp:
     9        Fix compile error.
     10        * PlatformPlayStation.cmake:
     11        Add JSRemoteInspectorServer.h to the public header list.
     12        * inspector/remote/socket/posix/RemoteInspectorSocketPOSIX.cpp:
     13        Set PlayStation specific socket option.
     14
    1152020-05-26  Alexey Shvayka  <shvaikalesh@gmail.com>
    216
  • trunk/Source/JavaScriptCore/PlatformPlayStation.cmake

    r256579 r262166  
     1list(APPEND JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
     2    API/JSRemoteInspectorServer.h
     3)
     4
    15list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
    26    "${JAVASCRIPTCORE_DIR}/inspector/remote/socket"
     
    1923list(APPEND JavaScriptCore_SOURCES
    2024    API/JSRemoteInspector.cpp
     25    API/JSRemoteInspectorServer.cpp
    2126
    2227    inspector/remote/RemoteAutomationTarget.cpp
  • trunk/Source/JavaScriptCore/inspector/remote/socket/posix/RemoteInspectorSocketPOSIX.cpp

    r253281 r262166  
    8686        return WTF::nullopt;
    8787    }
     88
    8889    error = setsockopt(fdListen, SOL_SOCKET, SO_REUSEPORT, &enabled, sizeof(enabled));
    8990    if (error < 0) {
     
    9293        return WTF::nullopt;
    9394    }
     95
     96#if PLATFORM(PLAYSTATION)
     97    if (setsockopt(fdListen, SOL_SOCKET, SO_USE_DEVLAN, &enabled, sizeof(enabled)) < 0) {
     98        LOG_ERROR("setsocketopt() SO_USE_DEVLAN, errno = %d", errno);
     99        ::close(fdListen);
     100        return WTF::nullopt;
     101    }
     102#endif
    94103
    95104    // FIXME: Support AF_INET6 connections.
Note: See TracChangeset for help on using the changeset viewer.