[webkit-changes] [WebKit/WebKit] 668204: REGRESSION (285996 at main): Readjusting the text sel...
Ryosuke Niwa
noreply at github.com
Tue Jan 28 20:30:18 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 668204deb7e9719144e14d5ad2a8612c20d7575a
https://github.com/WebKit/WebKit/commit/668204deb7e9719144e14d5ad2a8612c20d7575a
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2025-01-28 (Tue, 28 Jan 2025)
Changed paths:
M Source/WebCore/editing/FrameSelection.cpp
M Source/WebCore/editing/FrameSelection.h
M Source/WebCore/page/Quirks.cpp
M Source/WebCore/page/Quirks.h
M Source/WebCore/page/QuirksData.h
Log Message:
-----------
REGRESSION (285996 at main): Readjusting the text selection boundaries moves the highlighted text box on Scribd.com
https://bugs.webkit.org/show_bug.cgi?id=286590
Reviewed by Megan Gardner and Wenson Hsieh.
Add a quirk for scribd.com to preserve the behavior prior to 285996 at main.
The crux of this issue is that the selection extent momentarily moves to the beginning of the document when the user
extends the selection downwards. This causes website's code to reverse selection base and extent to kick in.
The same bug exists in macOS Safari as well as Firefox when extending upwards / backwards.
* Source/WebCore/editing/FrameSelection.cpp:
(WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance):
(WebCore::FrameSelection::updateOrDisassociateLiveRange):
* Source/WebCore/editing/FrameSelection.h:
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldReuseLiveRangeForSelectionUpdate const):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/page/QuirksData.h:
Canonical link: https://commits.webkit.org/289483@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list