Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3e090482f9ab6835ae897abb05bf801fdce5a8d6
https://github.com/WebKit/WebKit/commit/3e090482f9ab6835ae897abb05bf801fdce5a8d6
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2025-05-05 (Mon, 05 May 2025)
Changed paths:
M Source/WebKit/UIProcess/PDF/WKPDFPageNumberIndicator.mm
Log Message:
-----------
REGRESSION(294462@main): UI process may crash with
'NSInvalidArgumentException': -[WKPDFPageNumberIndicator
canUseVisualEffectViewForBackdrop] :: unrecognized selector
https://bugs.webkit.org/show_bug.cgi?id=292531
rdar://150637116
Reviewed by David Kilzer.
Under certain configurations, the `canUserVisualEffectViewForBackdrop`
getter is not implemented, even though we still do have support for the
page number indicator at large. This results in the UI process crashing
with an `unrecognized selector` exception during indicator bring-up.
This patch mitigates said crash by ensuring there is a definition for
the property getter in question before calling into it. We default to
using an UIVisualEffectView for the indicator's backdrop in case the
getter is not implemented.
* Source/WebKit/UIProcess/PDF/WKPDFPageNumberIndicator.mm:
(-[WKPDFPageNumberIndicator initWithFrame:view:pageCount:]):
Canonical link: https://commits.webkit.org/294516@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