WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
237951
[selection] Change form's selection attribute to unsigned long
https://bugs.webkit.org/show_bug.cgi?id=237951
Summary
[selection] Change form's selection attribute to unsigned long
zsun
Reported
2022-03-16 02:47:21 PDT
We should use unsigned long for the type of selectionStart and selectionEnd.
Attachments
Patch
(28.92 KB, patch)
2022-03-16 07:35 PDT
,
zsun
no flags
Details
Formatted Diff
Diff
Patch
(28.82 KB, patch)
2022-03-17 04:01 PDT
,
zsun
no flags
Details
Formatted Diff
Diff
Patch
(28.82 KB, patch)
2022-03-17 04:20 PDT
,
zsun
no flags
Details
Formatted Diff
Diff
Patch
(28.75 KB, patch)
2022-03-17 04:30 PDT
,
zsun
no flags
Details
Formatted Diff
Diff
Patch
(28.48 KB, patch)
2022-03-17 04:55 PDT
,
zsun
no flags
Details
Formatted Diff
Diff
Patch
(28.04 KB, patch)
2022-03-17 06:00 PDT
,
zsun
no flags
Details
Formatted Diff
Diff
Patch
(29.12 KB, patch)
2022-03-17 07:12 PDT
,
zsun
no flags
Details
Formatted Diff
Diff
Patch
(22.91 KB, patch)
2022-03-23 08:09 PDT
,
zsun
darin
: review-
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-03-16 05:40:18 PDT
<
rdar://problem/90364891
>
zsun
Comment 2
2022-03-16 07:35:44 PDT
Created
attachment 454832
[details]
Patch
zsun
Comment 3
2022-03-17 04:01:43 PDT
Created
attachment 454954
[details]
Patch
zsun
Comment 4
2022-03-17 04:20:29 PDT
Created
attachment 454955
[details]
Patch
zsun
Comment 5
2022-03-17 04:30:39 PDT
Created
attachment 454957
[details]
Patch
zsun
Comment 6
2022-03-17 04:55:45 PDT
Created
attachment 454960
[details]
Patch
zsun
Comment 7
2022-03-17 06:00:16 PDT
Created
attachment 454963
[details]
Patch
zsun
Comment 8
2022-03-17 07:12:00 PDT
Created
attachment 454968
[details]
Patch
zsun
Comment 9
2022-03-21 11:56:49 PDT
Any chance for a review? Thank you.
Chris Dumez
Comment 10
2022-03-21 12:15:37 PDT
Comment on
attachment 454968
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=454968&action=review
r=me
> Source/WebCore/html/HTMLTextFormControlElement.h:183 > + bool m_hasCachedSelection { false };
I think personally I would have gone with a `std::optional<std::pair<unsigned, unsigned>>` but this is fine too.
EWS
Comment 11
2022-03-22 02:44:37 PDT
Committed
r291609
(
248702@main
): <
https://commits.webkit.org/248702@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 454968
[details]
.
zsun
Comment 12
2022-03-23 08:09:45 PDT
Reopening to attach new patch.
zsun
Comment 13
2022-03-23 08:09:49 PDT
Created
attachment 455500
[details]
Patch
Darin Adler
Comment 14
2022-03-23 08:44:17 PDT
Comment on
attachment 455500
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=455500&action=review
Looks pretty good. One question.
> Source/WebCore/html/HTMLTextFormControlElement.cpp:327 > if (!isTextField()) > - return; > + return false;
Is it OK here that we already did the cacheSelection operation? The old code would not have done that. What tests cover this change in behavior?
Darin Adler
Comment 15
2022-03-23 08:45:11 PDT
Comment on
attachment 455500
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=455500&action=review
> Source/WebCore/ChangeLog:986 > + [selection] Fire Select event when selection extent or direction changes > +
https://bugs.webkit.org/show_bug.cgi?id=238142
Looks like this new patch to review got attached to the wrong bug.
zsun
Comment 16
2022-03-23 09:06:23 PDT
(In reply to Darin Adler from
comment #15
)
> Comment on
attachment 455500
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=455500&action=review
> > > Source/WebCore/ChangeLog:986 > > + [selection] Fire Select event when selection extent or direction changes > > +
https://bugs.webkit.org/show_bug.cgi?id=238142
> > Looks like this new patch to review got attached to the wrong bug.
Ah...I was careless. Just changed the status of the patch to obsolete.
zsun
Comment 17
2022-03-23 09:07:39 PDT
(In reply to Darin Adler from
comment #14
)
> Comment on
attachment 455500
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=455500&action=review
> > Looks pretty good. One question. > > > Source/WebCore/html/HTMLTextFormControlElement.cpp:327 > > if (!isTextField()) > > - return; > > + return false; > > Is it OK here that we already did the cacheSelection operation? The old code > would not have done that. What tests cover this change in behavior?
Let me check on this.
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