[webkit-changes] [WebKit/WebKit] ea1f43: Fix use-after-move in WebExtensionTab::captureVisi...

Commit Queue noreply at github.com
Sun Jan 21 19:23:17 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ea1f43afcb3f71686bf2f0db189c1385479f526c
      https://github.com/WebKit/WebKit/commit/ea1f43afcb3f71686bf2f0db189c1385479f526c
  Author: David Kilzer <ddkilzer at apple.com>
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
    M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionTabCocoa.mm

  Log Message:
  -----------
  Fix use-after-move in WebExtensionTab::captureVisibleWebpage
https://bugs.webkit.org/show_bug.cgi?id=267823
<rdar://121324738>

Reviewed by Timothy Hatcher.

* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionTabCocoa.mm:
(WebKit::WebExtensionTab::captureVisibleWebpage):
- Rearrange the logic in the method to move the early return that calls
  completionHandler() to the top of the method.

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




More information about the webkit-changes mailing list