Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3af0ad5a857e5a940b35e8f57ffbe92680221794
      
https://github.com/WebKit/WebKit/commit/3af0ad5a857e5a940b35e8f57ffbe92680221794
  Author: Abrar Rahman Protyasha <a_protya...@apple.com>
  Date:   2024-07-24 (Wed, 24 Jul 2024)

  Changed paths:
    M 
Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFPresentationController.h
    M 
Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFPresentationController.mm
    M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm

  Log Message:
  -----------
  [UnifiedPDF] Plugin should delegate releasing page previews to the 
presentation controller
https://bugs.webkit.org/show_bug.cgi?id=277049
rdar://132443805

Reviewed by Sammy Gill.

Following 281282@main, the PDF plugin performs a no-op when it gets
forwarded a memory pressure warning from the web page. In this patch, we
restore the previous behavior of having the async renderer clean up page
previews upon a memory pressure warning. We facilitate this behavior by
having the plugin delegate `::releaseMemory` to the presentation
controller, which simply forwards the duty to the async renderer.

* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFPresentationController.h:
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFPresentationController.mm:
(WebKit::PDFPresentationController::releaseMemory):
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:
(WebKit::UnifiedPDFPlugin::releaseMemory):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to