Use SharedBuffer!=() in CachedResource::tryReplaceEncodedData() instead of duplicating its logic. SharedBuffer==() is also potentially more efficient since it doesn't requires combining the SharedBuffers' data segments.
Created attachment 431235 [details]
Comment on attachment 431235 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=431235&action=review
> + // We have to do the compare the buffers because we can't tell if the replacement file backed data is for the
to do the compare the buffers => compare the buffers
Created attachment 431236 [details]
Committed r278793 (238750@main): <https://commits.webkit.org/238750@main>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 431236 [details].