[webkit-changes] [WebKit/WebKit] d2700e: Win32Handle must use move semantics for IPC

Don Olmstead noreply at github.com
Fri Jun 16 10:32:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d2700e00b8421158a5c71f78f5fd4dc935bbcba1
      https://github.com/WebKit/WebKit/commit/d2700e00b8421158a5c71f78f5fd4dc935bbcba1
  Author: Don Olmstead <don.olmstead at sony.com>
  Date:   2023-06-16 (Fri, 16 Jun 2023)

  Changed paths:
    M Source/WebKit/Platform/IPC/win/ArgumentCodersWin.cpp
    M Source/WebKit/Platform/IPC/win/ArgumentCodersWin.h
    M Source/WebKit/Platform/IPC/win/IPCSemaphoreWin.cpp
    M Source/WebKit/Scripts/webkit/messages.py

  Log Message:
  -----------
  Win32Handle must use move semantics for IPC
https://bugs.webkit.org/show_bug.cgi?id=258147

Reviewed by Fujii Hironori.

Mark `Win32Handle` as a type that needs to use move semantics when
generating messages. Remove encoder for `const Win32Handle&`. Update
encoding of `Semaphore` to copy the handle before encoding.

* Source/WebKit/Platform/IPC/win/ArgumentCodersWin.cpp:
* Source/WebKit/Platform/IPC/win/ArgumentCodersWin.h:
* Source/WebKit/Platform/IPC/win/IPCSemaphoreWin.cpp:
(IPC::Semaphore::encode const):
* Source/WebKit/Scripts/webkit/messages.py:

Canonical link: https://commits.webkit.org/265251@main




More information about the webkit-changes mailing list