Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ea1f43afcb3f71686bf2f0db189c1385479f526c
      
https://github.com/WebKit/WebKit/commit/ea1f43afcb3f71686bf2f0db189c1385479f526c
  Author: David Kilzer <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to