[webkit-changes] [WebKit/WebKit] c4bb21: REGRESSION(262334 at main): Fix leak of SecurityOrigi...

Loïc Yhuel noreply at github.com
Fri Feb 9 12:57:28 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c4bb21451b149aca0fae578bf6e555c6858ba7ad
      https://github.com/WebKit/WebKit/commit/c4bb21451b149aca0fae578bf6e555c6858ba7ad
  Author: Loïc Yhuel <loic.yhuel at softathome.com>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M Source/WebCore/page/DOMWindow.cpp

  Log Message:
  -----------
  REGRESSION(262334 at main): Fix leak of SecurityOrigin with postMessage
https://bugs.webkit.org/show_bug.cgi?id=268915

Reviewed by Charlie Wolfe.

DOMWindow::createTargetOriginForPostMessage could return a new
SecurityOrigin with two refs.
It is only used with RefPtr, so we only need to have one ref.

* Source/WebCore/page/DOMWindow.cpp:
(WebCore::DOMWindow::createTargetOriginForPostMessage):

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




More information about the webkit-changes mailing list