Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6ca136fcd7bf6b7d6a5cbbe19c5e57f944584165
      
https://github.com/WebKit/WebKit/commit/6ca136fcd7bf6b7d6a5cbbe19c5e57f944584165
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-01 (Wed, 01 Jul 2026)

  Changed paths:
    M Source/WebCore/dom/UIEvent.cpp

  Log Message:
  -----------
  UIEvent::initUIEvent copies RefPtr<WindowProxy>&& viewArg instead of moving it
https://bugs.webkit.org/show_bug.cgi?id=318313
rdar://181102771

Reviewed by Charlie Wolfe and Abrar Rahman Protyasha.

initUIEvent takes its view argument as RefPtr<WindowProxy>&& but assigned it
to m_view by copy, causing needless ref-count churn. Move it into place, as
the two UIEvent constructors taking the same parameter already do.

* Source/WebCore/dom/UIEvent.cpp:
(WebCore::UIEvent::initUIEvent):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to