WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
216097
Simplify some editing code
https://bugs.webkit.org/show_bug.cgi?id=216097
Summary
Simplify some editing code
Darin Adler
Reported
2020-09-02 14:12:54 PDT
Simplify some editing code
Attachments
Patch
(7.79 KB, patch)
2020-09-02 14:15 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2020-09-02 14:15:54 PDT
Created
attachment 407810
[details]
Patch
Darin Adler
Comment 2
2020-09-02 14:19:23 PDT
Came from one of the things Sam Weinig asked for in my last patch.
EWS
Comment 3
2020-09-02 18:32:46 PDT
Committed
r266498
: <
https://trac.webkit.org/changeset/266498
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 407810
[details]
.
Radar WebKit Bug Importer
Comment 4
2020-09-02 18:33:46 PDT
<
rdar://problem/68246474
>
Truitt Savell
Comment 5
2020-09-03 10:31:16 PDT
It looks like the changes in
https://trac.webkit.org/changeset/266498/webkit
has caused editing/inserting/insert-paragraph-separator-crash.html to crash constantly with an assertion on Mac and iOS debug History:
https://results.webkit.org/?suite=layout-tests&test=editing%2Finserting%2Finsert-paragraph-separator-crash.html
Log:
https://build.webkit.org/results/Apple-Catalina-Debug-WK1-Tests/r266517%20(6843)/editing/inserting/insert-paragraph-separator-crash-crash-log.txt
Truitt Savell
Comment 6
2020-09-03 10:37:16 PDT
Created
https://bugs.webkit.org/show_bug.cgi?id=216128
to track this
Darin Adler
Comment 7
2020-09-03 14:08:26 PDT
Lets roll this out. I will re-land after fixing.
WebKit Commit Bot
Comment 8
2020-09-03 14:33:52 PDT
Re-opened since this is blocked by
bug 216143
Darin Adler
Comment 9
2020-09-04 10:22:34 PDT
Comment on
attachment 407810
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407810&action=review
> Source/WebCore/page/DOMSelection.cpp:344 > + frame->selection().setSelectedRange(makeSimpleRange(selectedRange->start), Affinity::Upstream, FrameSelection::ShouldCloseTyping::No);
Turns out this needs to be Affinity::Downstream to preserve behavior. Might be correct to have it be upstream, but requires changes elsewhere. Landing with Affinity::Downstream to preserve behavior.
Darin Adler
Comment 10
2020-09-04 10:22:56 PDT
Committed
r266618
: <
https://trac.webkit.org/changeset/266618
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug