Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c7082cab7fe7d2f9225fde8a9ad2833113bb5553
      
https://github.com/WebKit/WebKit/commit/c7082cab7fe7d2f9225fde8a9ad2833113bb5553
  Author: Abrar Rahman Protyasha <[email protected]>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

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

  Log Message:
  -----------
  REGRESSION(275085@main): [UnifiedPDF] Certain internal macOS builds don't 
track selections on drag
https://bugs.webkit.org/show_bug.cgi?id=270624
rdar://124197851

Reviewed by Tim Horton.

Specifically, this can be seen in internal builds that satisfy the
HAVE(PDFDOCUMENT_SELECTION_WITH_GRANULARITY) platform condition but don't
actually have an implementation for
-[PDFDocument selectionFromPage:atPoint:toPage:atPoint:withGranularity:].

275085@main failed to specify a fallback behavior for such builds
because the -[PDFDocument selectionFromPage:atPoint:toPage:atPoint:]
call was placed behind the #else branch of the platform condition.

This patch ensures all builds can fallback correctly to the older
PDFDocument API, either if the API is missing from the SDK or has not
been implemented.

* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:
(WebKit::UnifiedPDFPlugin::extendCurrentSelectionIfNeeded):

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



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

Reply via email to