[webkit-changes] [WebKit/WebKit] 7d464f: [WPE] frameDisplayed may be called after View has ...

Yury Semikhatsky noreply at github.com
Thu Nov 9 17:44:12 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7d464f717df9050f11fe11af583b82cd7800edc4
      https://github.com/WebKit/WebKit/commit/7d464f717df9050f11fe11af583b82cd7800edc4
  Author: Yury Semikhatsky <yurys at chromium.org>
  Date:   2023-11-09 (Thu, 09 Nov 2023)

  Changed paths:
    M Source/WebKit/UIProcess/API/wpe/WPEView.cpp

  Log Message:
  -----------
  [WPE] frameDisplayed may be called after View has been deleted
https://bugs.webkit.org/show_bug.cgi?id=264360

Reviewed by Michael Catanzaro.

WKWPE::View is set as a client to wpe_view_backend in the view's
constructor. Since the backend may live longer than the view,
we reset clear the client in the view destuctor to avoid use
after free similar to the one mentioned in the bug.

* Source/WebKit/UIProcess/API/wpe/WPEView.cpp:
(WKWPE::View::~View):

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




More information about the webkit-changes mailing list